|
@@ -156,41 +156,13 @@ func init() {
|
|
|
// addwechatfriendlog.DefaultNickName holds the default value on creation for the nick_name field.
|
|
|
addwechatfriendlog.DefaultNickName = addwechatfriendlogDescNickName.Default.(string)
|
|
|
// addwechatfriendlog.NickNameValidator is a validator for the "nick_name" field. It is called by the builders before save.
|
|
|
- addwechatfriendlog.NickNameValidator = func() func(string) error {
|
|
|
- validators := addwechatfriendlogDescNickName.Validators
|
|
|
- fns := [...]func(string) error{
|
|
|
- validators[0].(func(string) error),
|
|
|
- validators[1].(func(string) error),
|
|
|
- }
|
|
|
- return func(nick_name string) error {
|
|
|
- for _, fn := range fns {
|
|
|
- if err := fn(nick_name); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- }
|
|
|
- return nil
|
|
|
- }
|
|
|
- }()
|
|
|
+ addwechatfriendlog.NickNameValidator = addwechatfriendlogDescNickName.Validators[0].(func(string) error)
|
|
|
// addwechatfriendlogDescAvatar is the schema descriptor for avatar field.
|
|
|
addwechatfriendlogDescAvatar := addwechatfriendlogFields[16].Descriptor()
|
|
|
// addwechatfriendlog.DefaultAvatar holds the default value on creation for the avatar field.
|
|
|
addwechatfriendlog.DefaultAvatar = addwechatfriendlogDescAvatar.Default.(string)
|
|
|
// addwechatfriendlog.AvatarValidator is a validator for the "avatar" field. It is called by the builders before save.
|
|
|
- addwechatfriendlog.AvatarValidator = func() func(string) error {
|
|
|
- validators := addwechatfriendlogDescAvatar.Validators
|
|
|
- fns := [...]func(string) error{
|
|
|
- validators[0].(func(string) error),
|
|
|
- validators[1].(func(string) error),
|
|
|
- }
|
|
|
- return func(avatar string) error {
|
|
|
- for _, fn := range fns {
|
|
|
- if err := fn(avatar); err != nil {
|
|
|
- return err
|
|
|
- }
|
|
|
- }
|
|
|
- return nil
|
|
|
- }
|
|
|
- }()
|
|
|
+ addwechatfriendlog.AvatarValidator = addwechatfriendlogDescAvatar.Validators[0].(func(string) error)
|
|
|
// addwechatfriendlogDescOrganizationID is the schema descriptor for organization_id field.
|
|
|
addwechatfriendlogDescOrganizationID := addwechatfriendlogFields[17].Descriptor()
|
|
|
// addwechatfriendlog.DefaultOrganizationID holds the default value on creation for the organization_id field.
|