Files
jx-callback/controllers/event.go
2020-01-16 11:26:04 +08:00

49 lines
2.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package controllers
import (
"git.rosy.net.cn/jx-callback/business/jxstore/event"
"git.rosy.net.cn/jx-callback/business/jxutils"
"github.com/astaxie/beego"
)
// 操作事件明细相关API
type EventController struct {
beego.Controller
}
// @Title 查询操作日志事件明细
// @Description 查询操作日志事件明细
// @Param token header string true "认证token"
// @Param apiFunction query string false "功能名"
// @Param name query string false "操作人姓名,支持模糊查询"
// @Param operateType query int 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)"
// @Param toTime query string false "结束日期包含格式2006-01-02 00:00:00)"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为30)"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetOperateEvents [get]
func (c *EventController) GetOperateEvents() {
var storeIDList, skuIDList []int
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)
}
return retVal, "", err
})
}
// @Title 各平台Cookie检查
// @Description 各平台Cookie检查
// @Param token header string true "认证token"
// @Param vendorIDs query string false "平台ID列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetCheckVendorCookie [get]
func (c *EventController) GetCheckVendorCookie() {
}