1
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/enterprise"
|
||||
"git.rosy.net.cn/jx-callback/business/enterprise_session"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
|
||||
@@ -39,3 +41,23 @@ func (c *SessionController) GetEnterpriseToken() {
|
||||
return map[string]string{"minToken": mintoken, "enterpriseToken": token}, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 校验平台商品和京西系统商品的差异
|
||||
// @Description 校验平台商品和京西系统商品的差异
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeId formData int false "门店ID列表"
|
||||
// @Param vendorIDs formData string true "厂商ID列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CheckVendorSkuDiffer [post]
|
||||
func (c *SessionController) CheckVendorSkuDiffer() {
|
||||
c.callCheckVendorSkuDiffer(func(params *tSessionCheckVendorSkuDifferParams) (retVal interface{}, errCode string, err error) {
|
||||
var vendorIDs []int
|
||||
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDs); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
|
||||
err = enterprise.CompareJxVendorSku(params.StoreId, vendorIDs)
|
||||
return nil, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user