- first edition of weimob wsc.
This commit is contained in:
@@ -42,12 +42,13 @@ func (c *InitDataController) InitSkuName() {
|
||||
// @Title 初始化vendor category
|
||||
// @Description 初始化vendor category(当前只有美团外卖的通过这个设置)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID formData int true "厂商ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /InitVendorCategory [post]
|
||||
func (c *InitDataController) InitVendorCategory() {
|
||||
c.callInitVendorCategory(func(params *tInitdataInitVendorCategoryParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = initdata.InitVendorCategory(params.Ctx)
|
||||
retVal, err = initdata.InitVendorCategory(params.Ctx, params.VendorID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
@@ -87,3 +88,18 @@ func (c *InitDataController) Change2JDSPU4Store() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 将SkuName的图片上传到微盟
|
||||
// @Description 将SkuName的图片上传到微盟
|
||||
// @Param token header string true "认证token"
|
||||
/// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UploadWeimobImg4SkuName [post]
|
||||
func (c *InitDataController) UploadWeimobImg4SkuName() {
|
||||
c.callUploadWeimobImg4SkuName(func(params *tInitdataUploadWeimobImg4SkuNameParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = initdata.UploadWeimobImg4SkuName(params.Ctx, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user