Skip to content

Commit 230f01e

Browse files
committed
linter
1 parent 2884713 commit 230f01e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/structs/user.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func (u User) MarshalJSON() ([]byte, error) {
5656
}{shadow(u), u.UserName})
5757
}
5858

59+
// UserSettingsOptions represents user settings
60+
// swagger:model
5961
type UserSettings struct {
6062
FullName string `json:"full_name"`
6163
Website string `json:"website"`
@@ -69,6 +71,8 @@ type UserSettings struct {
6971
HideActivity bool `json:"hide_activity"`
7072
}
7173

74+
// UserSettingsOptions represents options to change user settings
75+
// swagger:model
7276
type UserSettingsOptions struct {
7377
FullName *string `json:"full_name" binding:"MaxSize(100)"`
7478
Website *string `json:"website" binding:"OmitEmpty;ValidUrl;MaxSize(255)"`

0 commit comments

Comments
 (0)