Skip to content

Commit 96c4c9c

Browse files
committed
modules/structs/user.go
1 parent 30efc96 commit 96c4c9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

modules/structs/user.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ type User struct {
1717
ID int64 `json:"id"`
1818
// the user's username
1919
UserName string `json:"login"`
20-
// the user's authentication sign-in name. default: empty
20+
// the user's authentication sign-in name.
21+
// default: empty
2122
LoginName string `json:"login_name"`
2223
// the user's full name
2324
FullName string `json:"full_name"`

templates/swagger/v1_json.tmpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -18480,8 +18480,9 @@
1848018480
"x-go-name": "UserName"
1848118481
},
1848218482
"login_name": {
18483-
"description": "the user's login name",
18483+
"description": "the user's authentication sign-in name.",
1848418484
"type": "string",
18485+
"default": "empty",
1848518486
"x-go-name": "LoginName"
1848618487
},
1848718488
"prohibit_login": {

0 commit comments

Comments
 (0)