- initdata.InitVendorCategory

This commit is contained in:
gazebo
2018-12-13 16:47:27 +08:00
parent c0effbbf2b
commit 03198c0683
4 changed files with 53 additions and 1 deletions

View File

@@ -37,3 +37,16 @@ func (c *InitDataController) InitSkuName() {
return retVal, "", err
})
}
// @Title 初始化vendor category
// @Description 初始化vendor category当前只有美团外卖的通过这个设置
// @Param token header string true "认证token"
// @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) {
err = initdata.InitVendorCategory(params.Ctx)
return retVal, "", err
})
}