ChangeUserName function in db.go fixed, corresponding test added
This commit is contained in:
parent
ef6c3951fd
commit
88f232e21b
3 changed files with 47 additions and 15 deletions
|
@ -32,3 +32,8 @@ type PublicUser struct {
|
|||
type Token struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type StrNameChange struct {
|
||||
PrevName string `json:"prevName" db:"prevName"`
|
||||
NewName string `json:"newName" db:"newName"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue