+ user2/GetUsers

This commit is contained in:
gazebo
2019-08-05 09:38:48 +08:00
parent be9f2408f4
commit 73169746c9
7 changed files with 72 additions and 7 deletions

View File

@@ -50,3 +50,20 @@ func (c *User2Controller) GetBindAuthInfo() {
return retVal, "", err
})
}
// @Title 得到用户列表
// @Description 得到用户列表
// @Param token header string true "认证token"
// @Param userType query int true "用户类型"
// @Param userID2 query string faslse "用户id2"
// @Param mobile query string faslse "用户手机,必须全匹配"
// @Param userName query string faslse "用户名,可以部分匹配"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetUsers [get]
func (c *User2Controller) GetUsers() {
c.callGetUsers(func(params *tUser2GetUsersParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetUsers(params.Ctx, params.UserType, params.UserID2, params.Mobile, params.UserName)
return retVal, "", err
})
}