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

@@ -89,17 +89,29 @@ func (c *User2Controller) GetUsers() {
// @Title 得到用户自己的门店列表
// @Description 得到用户自己的门店列表
// @Param token header string true "认证token"
// @Param mobile query string false "电话"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetMyStoreList [get]
func (c *User2Controller) GetMyStoreList() {
c.callGetMyStoreList(func(params *tUser2GetMyStoreListParams) (retVal interface{}, errCode string, err error) {
retVal, errCode, err = cms.GetMyStoreListNew(params.Ctx, params.Mobile)
retVal, errCode, err = cms.GetMyStoreListNew(params.Ctx)
return retVal, errCode, err
})
}
// @Title 用户手机号为空,不行
// @Description 用户手机号为空,不行
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /SolveNullMobileUser [post]
func (c *User2Controller) SolveNullMobileUser() {
c.callSolveNullMobileUser(func(params *tUser2SolveNullMobileUserParams) (retVal interface{}, errCode string, err error) {
err = cms.SolveNullMobileUser(params.Ctx)
return retVal, "", err
})
}
// @Title 得到可用的门店角色列表
// @Description 得到可用的门店角色列表
// @Param token header string true "认证token"