feat:多项功能优化
This commit is contained in:
@@ -1077,8 +1077,16 @@ func init() {
|
||||
station.DefaultStatus = stationDescStatus.Default.(string)
|
||||
// station.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
station.StatusValidator = stationDescStatus.Validators[0].(func(string) error)
|
||||
// stationDescIsBuiltin is the schema descriptor for isBuiltin field.
|
||||
stationDescIsBuiltin := stationFields[6].Descriptor()
|
||||
// station.DefaultIsBuiltin holds the default value on creation for the isBuiltin field.
|
||||
station.DefaultIsBuiltin = stationDescIsBuiltin.Default.(bool)
|
||||
// stationDescHasDock is the schema descriptor for hasDock field.
|
||||
stationDescHasDock := stationFields[7].Descriptor()
|
||||
// station.DefaultHasDock holds the default value on creation for the hasDock field.
|
||||
station.DefaultHasDock = stationDescHasDock.Default.(bool)
|
||||
// stationDescCreatedAt is the schema descriptor for createdAt field.
|
||||
stationDescCreatedAt := stationFields[6].Descriptor()
|
||||
stationDescCreatedAt := stationFields[8].Descriptor()
|
||||
// station.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
station.DefaultCreatedAt = stationDescCreatedAt.Default.(func() time.Time)
|
||||
// stationDescID is the schema descriptor for id field.
|
||||
|
||||
Reference in New Issue
Block a user