fix: some api bug
This commit is contained in:
@@ -76,10 +76,6 @@ func init() {
|
||||
shops.DefaultDispatchMode = shopsDescDispatchMode.Default.(string)
|
||||
// shops.DispatchModeValidator is a validator for the "dispatch_mode" field. It is called by the builders before save.
|
||||
shops.DispatchModeValidator = shopsDescDispatchMode.Validators[0].(func(string) error)
|
||||
// shopsDescAnnouncements is the schema descriptor for announcements field.
|
||||
shopsDescAnnouncements := shopsFields[13].Descriptor()
|
||||
// shops.DefaultAnnouncements holds the default value on creation for the announcements field.
|
||||
shops.DefaultAnnouncements = shopsDescAnnouncements.Default.([]string)
|
||||
// shopsDescCreatedAt is the schema descriptor for created_at field.
|
||||
shopsDescCreatedAt := shopsFields[15].Descriptor()
|
||||
// shops.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
|
||||
Reference in New Issue
Block a user