- 活动商品后台分页,GetActStoreSkuInfo分页,添加keyword
This commit is contained in:
@@ -169,6 +169,9 @@ func (c *ActController) CancelAct() {
|
||||
// @Param token header string true "认证token"
|
||||
// @Param actID query int true "活动id"
|
||||
// @Param vendorIDs query string false "厂商ID列表"
|
||||
// @Param keyword query string false "查询关键字(可以为空,为空表示不限制)"
|
||||
// @Param offset query int false "起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int false "表页大小(缺省全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetActStoreSkuInfo [get]
|
||||
@@ -176,7 +179,10 @@ func (c *ActController) GetActStoreSkuInfo() {
|
||||
c.callGetActStoreSkuInfo(func(params *tActGetActStoreSkuInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
var vendorIDs []int
|
||||
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDs); err == nil {
|
||||
retVal, err = act.GetActStoreSkuInfo(params.Ctx, params.ActID, vendorIDs)
|
||||
if params.PageSize == 0 {
|
||||
params.PageSize = -1
|
||||
}
|
||||
retVal, err = act.GetActStoreSkuInfo(params.Ctx, params.ActID, vendorIDs, params.Keyword, params.Offset, params.PageSize)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user