aa
This commit is contained in:
@@ -556,3 +556,90 @@ func (c *SkuController) UpdateSkuExinfoMap() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到平台类别
|
||||
// @Description 得到平台类别
|
||||
// @Param token header string true "认证token"
|
||||
// @Param parentID query int false "父ID"
|
||||
// @Param level query int false "分类等级"
|
||||
// @Param vendorOrgCode query string true "账号ID"
|
||||
// @Param vendorID query int true "平台ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetVendorCategoryMap [get]
|
||||
func (c *SkuController) GetVendorCategoryMap() {
|
||||
c.callGetVendorCategoryMap(func(params *tSkuGetVendorCategoryMapParams) (retVal interface{}, errCode string, err error) {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 新增平台类别
|
||||
// @Description 新增平台类别
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID formData int true "平台ID"
|
||||
// @Param vendorOrgCode formData string true "账号ID"
|
||||
// @Param categroyID formData int false "京西分类id"
|
||||
// @Param level formData int true "分类级别"
|
||||
// @Param parentID formData int true "分类父ID"
|
||||
// @Param vendorCategroyName formData string true "类别name"
|
||||
// @Param vendorCategroySeq formData int true "类别序号"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /AddVendorCategoryMap [post]
|
||||
func (c *SkuController) AddVendorCategoryMap() {
|
||||
c.callAddVendorCategoryMap(func(params *tSkuAddVendorCategoryMapParams) (retVal interface{}, errCode string, err error) {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 修改平台类别
|
||||
// @Description 修改平台类别
|
||||
// @Param token header string true "认证token"
|
||||
// @Param ID formData int true "记录ID"
|
||||
// @Param categoryID formData int false "京西分类id"
|
||||
// @Param vendorCategroyName formData string false "类别name"
|
||||
// @Param level formData int true "分类级别"
|
||||
// @Param parentID formData int true "分类父ID"
|
||||
// @Param isDelete formData bool false "是否是删除操作,默认false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateVendorCategoryMap [put]
|
||||
func (c *SkuController) UpdateVendorCategoryMap() {
|
||||
c.callUpdateVendorCategoryMap(func(params *tSkuUpdateVendorCategoryMapParams) (retVal interface{}, errCode string, err error) {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 平台类别重排序
|
||||
// @Description 平台类别重排序
|
||||
// @Param token header string true "认证token"
|
||||
// @Param categoryID formData int true "父ID"
|
||||
// @Param vendorID formData int true "平台ID"
|
||||
// @Param vendorOrgCode formData string true "账号ID"
|
||||
// @Param categoryIDs formData string true "同一父类别下的所有子类别ID列表([1,2,3,4])"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /ReorderVendorCategories [put]
|
||||
func (c *SkuController) ReorderVendorCategories() {
|
||||
c.callReorderVendorCategories(func(params *tSkuReorderVendorCategoriesParams) (retVal interface{}, errCode string, err error) {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 复制平台类别
|
||||
// @Description 复制平台类别
|
||||
// @Param token header string true "认证token"
|
||||
// @Param fromVendorOrgCode formData int true "源平台ID"
|
||||
// @Param vendorID formData int true "平台ID"
|
||||
// @Param toVendorOrgCodes formData string true "目标平台的IDs"
|
||||
// @Param categoryIDs formData string false "原平台的分类IDs,不传代表整个复制"
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CopyVendorCategories [put]
|
||||
func (c *SkuController) CopyVendorCategories() {
|
||||
c.callCopyVendorCategories(func(params *tSkuCopyVendorCategoriesParams) (retVal interface{}, errCode string, err error) {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user