新查询接口,
This commit is contained in:
@@ -811,3 +811,37 @@ func (c *StoreSkuController) SyncMatterC4ToGy() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到商家商品修改价格请求信息
|
||||
// @Description 得到商家商品修改价格请求信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param applyTimeStart query string false "申请开始时间"
|
||||
// @Param applyTimeEnd query string false "申请结束时间"
|
||||
// @Param auditTimeStart query string false "审核开始时间"
|
||||
// @Param auditTimeEnd query string false "审核结束时间"
|
||||
// @Param name query string false "审核人"
|
||||
// @Param remark query string false "不通过原因"
|
||||
// @Param storeIDs query string false "门店ID列表"
|
||||
// @Param nameIDs query string false "id列表对象,当前指skuname id"
|
||||
// @Param status query int false "审核状态"
|
||||
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoreSkuAudit [get]
|
||||
func (c *StoreSkuController) GetStoreSkuAudit() {
|
||||
c.callGetStoreSkuAudit(func(params *tStoreSkuGetStoreSkuAuditParams) (retVal interface{}, errCode string, err error) {
|
||||
var (
|
||||
timeList []time.Time
|
||||
storeIDs, nameIDs []int
|
||||
)
|
||||
if timeList, err = jxutils.BatchStr2Time(params.ApplyTimeStart, params.ApplyTimeEnd, params.AuditTimeStart, params.AuditTimeEnd); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.NameIDs, &nameIDs); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
retVal, err = cms.GetStoreSkuAudit(params.Ctx, storeIDs, nameIDs, nil, params.Status, params.Name, params.Remark, timeList[0], timeList[1], timeList[2], timeList[3], params.PageSize, params.Offset)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user