Remove disabled property and sync up field ordering and numbering (#259)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-12 13:00:49 -04:00
1 parent 012967e91b
commit c195c4bc9b
44 files changed
+742 -1056

No files matched your search

-12
View File
@@ -65,18 +65,6 @@ func DefaultDescription() Option {
}
}
func WithDisabled(inDisabled bool) Option {
return func(o *options) {
o.valueMap["disabled"] = inDisabled
}
}
func DefaultDisabled() Option {
return func(o *options) {
o.valueMap["disabled"] = nil
}
}
func WithName(inName string) Option {
return func(o *options) {
o.valueMap["name"] = inName
-1
View File
@@ -21,7 +21,6 @@ type User struct {
Description string `json:"description,omitempty"`
CreatedTime time.Time `json:"created_time,omitempty"`
UpdatedTime time.Time `json:"updated_time,omitempty"`
Disabled bool `json:"disabled,omitempty"`
Version uint32 `json:"version,omitempty"`
}
-1
View File
@@ -68,7 +68,6 @@ func comparableSlice(in []*users.User) []users.User {
Description: i.Description,
CreatedTime: i.CreatedTime,
UpdatedTime: i.UpdatedTime,
Disabled: i.Disabled,
}
filtered = append(filtered, p)
}