操作日志记录增加门店相关

This commit is contained in:
苏尹岚
2020-01-17 16:16:56 +08:00
parent 05ebeeb77c
commit 3aec482720
7 changed files with 33 additions and 23 deletions

View File

@@ -14,9 +14,9 @@ type EventController struct {
// @Title 查询操作日志事件明细
// @Description 查询操作日志事件明细
// @Param token header string true "认证token"
// @Param apiFunction query string false "功能名"
// @Param apiFunctions query string false "功能名列表"
// @Param name query string false "操作人姓名,支持模糊查询"
// @Param operateType query int false "操作类型1为修改2为新增4为删除"
// @Param operateTypes query string false "操作类型列表1为修改2为新增4为删除"
// @Param skuIDs query string false "商品ID列表"
// @Param storeIDs query string false "门店ID列表"
// @Param fromTime query string false "开始日期包含格式2006-01-02 00:00:00)"
@@ -27,10 +27,11 @@ type EventController struct {
// @Failure 200 {object} controllers.CallResult
// @router /GetOperateEvents [get]
func (c *EventController) GetOperateEvents() {
var storeIDList, skuIDList []int
var storeIDList, skuIDList, operateTypeList []int
var apiFunctionList []string
c.callGetOperateEvents(func(params *tEventGetOperateEventsParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList, params.SkuIDs, &skuIDList); err == nil {
retVal, err = event.GetOperateEvents(params.Ctx, params.ApiFunction, params.Name, params.OperateType, skuIDList, storeIDList, params.FromTime, params.ToTime, params.Offset, params.PageSize)
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList, params.SkuIDs, &skuIDList, params.ApiFunctions, &apiFunctionList, params.OperateTypes, &operateTypeList); err == nil {
retVal, err = event.GetOperateEvents(params.Ctx, params.Name, apiFunctionList, operateTypeList, skuIDList, storeIDList, params.FromTime, params.ToTime, params.Offset, params.PageSize)
}
return retVal, "", err
})