aa
This commit is contained in:
@@ -79,6 +79,13 @@ var (
|
||||
// return ebaiUploadRTFShopID
|
||||
// }
|
||||
|
||||
func GetVendorCategoriesWithMap(ctx *jxcontext.Context, vendorID int) (vendorCats []*dao.GetVendorCategoriesWithMapResult, err error) {
|
||||
if vendorID != model.VendorIDMTWM {
|
||||
return nil, fmt.Errorf("只支持美团!")
|
||||
}
|
||||
return dao.GetVendorCategoriesWithMap(dao.GetDB(), vendorID)
|
||||
}
|
||||
|
||||
// parentID 为-1表示所有
|
||||
func GetVendorCategories(ctx *jxcontext.Context, vendorID int, parentID string) (vendorCats []*model.SkuVendorCategory, err error) {
|
||||
cond := map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user