Commit fa80c3870ffaf8949757b7d6827f360e0f09ae09
1 parent
23d1901b
Exists in
v1.2
and in
2 other branches
..
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
API/User.go
@@ -89,7 +89,7 @@ var Regular = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|1 | @@ -89,7 +89,7 @@ var Regular = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|1 | ||
89 | // @Produce json | 89 | // @Produce json |
90 | // @Param mobile aaron string true "手机号" | 90 | // @Param mobile aaron string true "手机号" |
91 | // @Param password 1 string true "密码或验证码(使用验证码的新手机号自动注册)" | 91 | // @Param password 1 string true "密码或验证码(使用验证码的新手机号自动注册)" |
92 | -// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Username":"admin","Password":"123","Birthday":"","FullName":"","Mobile":"","Openid":"","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}} 调用其它需要登陆的接口时携带token,有过期时间" | 92 | +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}} 调用其它需要登陆的接口时携带token,有过期时间" |
93 | // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" | 93 | // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" |
94 | // @Router /LoginUser? [post] | 94 | // @Router /LoginUser? [post] |
95 | func LoginUser(c *gin.Context) { | 95 | func LoginUser(c *gin.Context) { |
@@ -180,7 +180,7 @@ func LoginUser(c *gin.Context) { | @@ -180,7 +180,7 @@ func LoginUser(c *gin.Context) { | ||
180 | // @Accept json | 180 | // @Accept json |
181 | // @Produce json | 181 | // @Produce json |
182 | // @Param id aaron string true "用户id" | 182 | // @Param id aaron string true "用户id" |
183 | -// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Username":"admin","Password":"123","Birthday":"","FullName":"","Mobile":"","Openid":"","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}}" | 183 | +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}}" |
184 | // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" | 184 | // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" |
185 | // @Router /UserInfo? [get] | 185 | // @Router /UserInfo? [get] |
186 | func UserInfo(c *gin.Context) { | 186 | func UserInfo(c *gin.Context) { |