商品审核

This commit is contained in:
苏尹岚
2020-05-28 18:15:43 +08:00
parent abb15c11e4
commit 30edb70d31
2 changed files with 42 additions and 2 deletions

View File

@@ -812,8 +812,8 @@ func (c *StoreSkuController) SyncMatterC4ToGy() {
})
}
// @Title 得到商家商品修改价格请求信息
// @Description 得到商家商品修改价格请求信息
// @Title 查询商品审核信息
// @Description 查询商品审核信息
// @Param token header string true "认证token"
// @Param applyTimeStart query string false "申请开始时间"
// @Param applyTimeEnd query string false "申请结束时间"
@@ -845,3 +845,25 @@ func (c *StoreSkuController) GetStoreSkuAudit() {
return retVal, "", err
})
}
// @Title 审核商品
// @Description 审核商品
// @Param token header string true "认证token"
// @Param storeIDs formData string false "门店ID列表"
// @Param nameIDs formData string false "id列表对象当前指skuname id"
// @Param status formData int false "审核标志1通过-1 不通过"
// @Param isAsync formData bool false "是否异步,缺省是同步"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /StoreSkuPriceAudit [post]
func (c *StoreSkuController) StoreSkuPriceAudit() {
c.callStoreSkuPriceAudit(func(params *tStoreSkuStoreSkuPriceAuditParams) (retVal interface{}, errCode string, err error) {
var storeIDs, nameIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.NameIDs, &nameIDs); err != nil {
return retVal, "", err
}
retVal, err = cms.StoreSkuPriceAudit(params.Ctx, storeIDs, nameIDs, params.Status, params.IsAsync, params.IsContinueWhenError)
return retVal, "", err
})
}