From 96c4c9c6993826f37db1fc2aa0364f36cbd9073b Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 14 Jul 2022 18:46:29 +0200 Subject: [PATCH] modules/structs/user.go --- modules/structs/user.go | 3 ++- templates/swagger/v1_json.tmpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/structs/user.go b/modules/structs/user.go index 75341c28daebc..81516894a58f9 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -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"` diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 3623b058d663a..7ef547b676c82 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -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": {