This commit is contained in:
suyl
2021-04-28 17:45:26 +08:00
parent 64a251da34
commit 88d600d00c
3 changed files with 30 additions and 4 deletions

View File

@@ -466,11 +466,11 @@ func GetStoreList4User(ctx *jxcontext.Context, mobileNum, userID string) (storeL
return storeList, err
}
func GetMyStoreListNew(ctx *jxcontext.Context, mobile string) (storesInfo interface{}, errCode string, err error) {
func GetMyStoreListNew(ctx *jxcontext.Context) (storesInfo interface{}, errCode string, err error) {
if !auth2.IsV2Token(ctx.GetToken()) {
return nil, model.ErrCodeTokenIsInvalid, model.ErrTokenIsInvalid
}
userID := ctx.GetUserID()
mobile, userID := ctx.GetMobileAndUserID()
if mobile == "" {
return nil, "", fmt.Errorf("不能得到用户手机号")
}
@@ -495,6 +495,11 @@ func GetMyStoreListNew(ctx *jxcontext.Context, mobile string) (storesInfo interf
return storesInfo, "", err
}
func SolveNullMobileUser(ctx *jxcontext.Context) (err error) {
return err
}
func GetStoreRoleList(ctx *jxcontext.Context) (roleList []*authz.RoleInfo, err error) {
return authz.StoreRoleList, nil
}