1
0

Change all json fields to snake_case

This commit is contained in:
kolaente
2020-04-12 22:48:46 +02:00
parent 0bfb3a4709
commit fb8ac92abf
5 changed files with 14 additions and 14 deletions

View File

@ -27,7 +27,7 @@ type ListUser struct {
// The unique, numeric id of this list <-> user relation.
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"namespace"`
// The username.
Username string `xorm:"-" json:"userID" param:"user"`
Username string `xorm:"-" json:"user_id" param:"user"`
// Used internally to reference the user
UserID int64 `xorm:"int(11) not null INDEX" json:"-"`
// The list id.