Skip to content

Commit

Permalink
fix: user login doc
Browse files Browse the repository at this point in the history
  • Loading branch information
2637309949 committed May 9, 2020
1 parent 8e40d52 commit bd3df10
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
6 changes: 2 additions & 4 deletions platform/app/sys_user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 18 additions & 13 deletions platform/doc/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
definitions:
model.Login:
properties:
domain:
description:
type: string
name:
description: 名字
type: string
password:
description: 密码
type: string
type: object
model.Response:
properties:
code:
Expand Down Expand Up @@ -3365,20 +3377,13 @@ paths:
/api/sys/user/login:
post:
consumes:
- multipart/form-data
- application/json
parameters:
- description: 用户名称
in: formData
name: username
type: string
- description: 用户密码
in: formData
name: password
type: string
- description: 用户域
in: formData
name: domain
type: string
- description: 用户信息
in: body
name: payload
schema:
$ref: '#/definitions/model.Login'
responses:
"200":
description: OK
Expand Down
4 changes: 1 addition & 3 deletions platform/xml/controllers/sys_user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
</return>
</api>
<api name="login" desc="用户认证" method="post" auth="false">
<param name="username" type="string" desc="用户名称" />
<param name="password" type="string" desc="用户密码" />
<param name="domain" type="string" desc="用户域" />
<param name="payload" type="$login" desc="用户信息" />
<return>
<success type="$response"/>
<failure type="$response"/>
Expand Down

0 comments on commit bd3df10

Please sign in to comment.