refactor🎨:登陆模块接口文档整理

This commit is contained in:
zhangwenjian committed 2021-06-25 11:34:26 +08:00
1 parent acdcd0c867
commit 9591be883f
3 files changed
+8 -2

No files matched your search

+7
View File
@@ -10,6 +10,13 @@ type System struct {
api.Api
}
// GenerateCaptchaHandler 获取验证码
// @Summary 获取验证码
// @Description 获取验证码
// @Tags 登陆
// @Success 200 {object} response.Response{data=string,id=string,msg=string} "{"code": 200, "data": [...]}"
// @Router /api/v1/captcha [get]
// @Security Bearer
func (e System) GenerateCaptchaHandler(c *gin.Context) {
err := e.MakeContext(c).Errors
if err != nil {
-2
View File
@@ -415,8 +415,6 @@ func (e SysUser) GetInfo(c *gin.Context) {
permissions[0] = "*:*:*"
var buttons = make([]string, 1)
buttons[0] = "*:*:*"
//RoleMenu := models.RoleMenu{}
//RoleMenu.RoleId = user.GetRoleId(c)
var mp = make(map[string]interface{})
mp["roles"] = roles
+1
View File
@@ -57,6 +57,7 @@ func IdentityHandler(c *gin.Context) interface{} {
// @Description Reply will be of the form {"token": "TOKEN"}.
// @Description dev mode:It should be noted that all fields cannot be empty, and a value of 0 can be passed in addition to the account password
// @Description 注意:开发模式:需要注意全部字段不能为空,账号密码外可以传入0值
// @Tags 登陆
// @Accept application/json
// @Product application/json
// @Param account body Login true "account"