Skip to content

Commit

Permalink
modules/structs/user.go
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jul 14, 2022
1 parent 30efc96 commit 96c4c9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/structs/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ type User struct {
ID int64 `json:"id"`
// the user's username
UserName string `json:"login"`
// the user's authentication sign-in name. default: empty
// the user's authentication sign-in name.
// default: empty
LoginName string `json:"login_name"`
// the user's full name
FullName string `json:"full_name"`
Expand Down
3 changes: 2 additions & 1 deletion templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18480,8 +18480,9 @@
"x-go-name": "UserName"
},
"login_name": {
"description": "the user's login name",
"description": "the user's authentication sign-in name.",
"type": "string",
"default": "empty",
"x-go-name": "LoginName"
},
"prohibit_login": {
Expand Down

0 comments on commit 96c4c9c

Please sign in to comment.