feat: add the 'karma' prop to table User (#518)

* feature: feat : add the 'karma' prop to table User

* feat: add the 'karma' prop to table User
This commit is contained in:
Nekotoxin 2022-02-28 16:25:09 +08:00 committed by GitHub
parent c14bf9fdab
commit 759a1421e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,7 @@ func (c *ApiController) Signup() {
IsDeleted: false,
SignupApplication: application.Name,
Properties: map[string]string{},
Karma: 0,
}
if application.GetSignupItemRule("Display name") == "First, last" {

View File

@ -55,6 +55,7 @@ type User struct {
Birthday string `xorm:"varchar(100)" json:"birthday"`
Education string `xorm:"varchar(100)" json:"education"`
Score int `json:"score"`
Karma int `json:"karma"`
Ranking int `json:"ranking"`
IsDefaultAvatar bool `json:"isDefaultAvatar"`
IsOnline bool `json:"isOnline"`