feat:多项功能优化

This commit is contained in:
zhoujianjin
2026-09-18 18:54:54 +08:00
parent 672cd23329
commit 543655d441
48 changed files with 1289 additions and 447 deletions
+9 -1
View File
@@ -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.