ChangeUserName function in db.go fixed, corresponding test added

This commit is contained in:
dDogge 2024-03-20 16:46:17 +01:00
parent ef6c3951fd
commit 88f232e21b
3 changed files with 47 additions and 15 deletions

View file

@ -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"`
}