添加前端小接口

This commit is contained in:
邹宗楠
2022-07-01 17:20:37 +08:00
parent b9a4ad39ae
commit 9fe5997ae8
3 changed files with 40 additions and 0 deletions

View File

@@ -3475,6 +3475,18 @@ func GetStoreCategoryMap(ctx *jxcontext.Context, parentID, level int, storeID in
return storeCatMaps, err
}
func GetStoreCategoryMapNoDefault(ctx *jxcontext.Context, parentID, level int, storeID int) (storeCatMaps []*model.StoreCategoryMap, err error) {
db := dao.GetDB()
storeCatMaps, err = dao.GetStoreCategoryMap(db, parentID, level, storeID, 0)
if err != nil {
return nil, err
}
if ctx.GetLoginType() != weixin.AuthTypeMP && ctx.GetLoginType() != weixin.AuthTypeMini && ctx.GetLoginType() != weixin.AuthTypeWxApp && ctx.GetLoginType() != auth2.AuthTypeMobile {
return storeCatMaps, err
}
return storeCatMaps, err
}
func AddStoreCategoryMap(ctx *jxcontext.Context, storeCategoryMap *model.StoreCategoryMap) (result *model.StoreCategoryMap, err error) {
var (
db = dao.GetDB()