fix: some api bug
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user