fix(region): remove nullable tag

This commit is contained in:
ioito
2022-03-09 11:49:59 +08:00
parent e3b53ccf42
commit 3dfdcd18fc
33 changed files with 50 additions and 57 deletions
+4 -4
View File
@@ -101,14 +101,14 @@ type SReceiver struct {
Lang string `width:"8" charset:"ascii" nullable:"false" list:"user" update:"user"`
// swagger:ignore
EnabledEmail tristate.TriState `nullable:"false" default:"false" update:"user"`
EnabledEmail tristate.TriState `default:"false" update:"user"`
// swagger:ignore
VerifiedEmail tristate.TriState `nullable:"false" default:"false" update:"user"`
VerifiedEmail tristate.TriState `default:"false" update:"user"`
// swagger:ignore
EnabledMobile tristate.TriState `nullable:"false" default:"false" update:"user"`
EnabledMobile tristate.TriState `default:"false" update:"user"`
// swagger:ignore
VerifiedMobile tristate.TriState `nullable:"false" default:"false" update:"user"`
VerifiedMobile tristate.TriState `default:"false" update:"user"`
// swagger:ignore
subContactCache map[string]*SSubContact `json:"-"`
+2 -2
View File
@@ -33,8 +33,8 @@ type SSubContact struct {
Type string `width:"16" nullable:"false" index:"true"`
Contact string `width:"128" nullable:"false"`
ParentContactType string `width:"16" nullable:"false"`
Enabled tristate.TriState `nullable:"false" default:"false"`
Verified tristate.TriState `nullable:"false" default:"false"`
Enabled tristate.TriState `default:"false"`
Verified tristate.TriState `default:"false"`
VerifiedNote string `width:"1024"`
}