fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -60,6 +60,10 @@ func init() {
players.DefaultStatus = playersDescStatus.Default.(string)
// players.StatusValidator is a validator for the "status" field. It is called by the builders before save.
players.StatusValidator = playersDescStatus.Validators[0].(func(string) error)
// playersDescGender is the schema descriptor for gender field.
playersDescGender := playersFields[3].Descriptor()
// players.DefaultGender holds the default value on creation for the gender field.
players.DefaultGender = playersDescGender.Default.(bool)
// playersDescRating is the schema descriptor for rating field.
playersDescRating := playersFields[4].Descriptor()
// players.DefaultRating holds the default value on creation for the rating field.