package res import "gitea.ddegame.cn/open/servicebase/pkg/datasource/fields" type UserRes struct { IDBody UserType string `gorm:"column:user_type;type:char(1);not null;comment:P=person C= crop" json:"user_type"` Truename string `gorm:"column:truename;type:varchar(60);not null" json:"truename"` Nickname string `gorm:"column:nickname;type:varchar(60);not null" json:"nickname"` Password string `gorm:"column:password;type:varchar(60);not null" json:"password"` Phone string `gorm:"column:phone;type:varchar(20);not null" json:"phone"` Email string `gorm:"column:email;type:varchar(100);not null;uniqueIndex:EMAIL_idx,priority:1" json:"email"` Birthday string `gorm:"column:birthday;type:varchar(20);not null" json:"birthday"` Gender string `gorm:"column:gender;type:char(1);not null" json:"gender"` Position string `gorm:"column:position;type:varchar(100);not null" json:"position"` PostCode string `gorm:"column:post_code;type:varchar(20);not null" json:"post_code"` Prefecture string `gorm:"column:prefecture;type:varchar(100);not null" json:"prefecture"` Address string `gorm:"column:address;type:varchar(255);not null" json:"address"` Building string `gorm:"column:building;type:varchar(100);not null" json:"building"` Status string `gorm:"column:status;type:char(1);not null;default:1" json:"status"` CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null" json:"create_at"` UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null" json:"update_at"` InvoiceType string `gorm:"column:invoice_type;type:char(1);not null;comment:发票类型 1=可开 2=不可开" json:"invoice_type"` InvoiceNo string `gorm:"column:invoice_no;type:varchar(50);not null;comment:发票编号" json:"invoice_no"` AccountBank string `gorm:"column:account_bank;type:varchar(255);not null;comment:开户银行" json:"account_bank"` AccountBranch string `gorm:"column:account_branch;type:varchar(255);not null;comment:开户支行" json:"account_branch"` AccountType string `gorm:"column:account_type;type:char(1);not null;comment:账户类型 1= 普通預金 2=当座預金" json:"account_type"` AccountNo string `gorm:"column:account_no;type:varchar(100);not null;comment:银行账号" json:"account_no"` AccountName string `gorm:"column:account_name;type:varchar(100);not null;comment:开户人姓名" json:"account_name"` PersonalDocType string `gorm:"column:personal_doc_type;type:char(1);not null;comment:1=居民票的复印件2=驾驶证3=护照4=保险证5=在留卡" json:"personal_doc_type"` PersonalImage string `gorm:"column:personal_image;type:varchar(255);not null;comment:身份证照片" json:"personal_image"` PersonalEndDate string `gorm:"column:personal_end_date;type:varchar(255);not null;comment:身份证有效期" json:"personal_end_date"` PersonalImage2 string `gorm:"column:personal_image_2;type:varchar(255);not null;comment:身份证照片2" json:"personal_image_2"` } type AppUserRes struct { ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"` No string `gorm:"column:no;type:varchar(64);not null;index:uk,priority:1;comment:用户号、用户名" json:"no"` Nickname string `gorm:"column:nickname;type:varchar(64);not null;comment:昵称" json:"nickname"` Sign string `gorm:"column:sign;type:varchar(255);not null;comment:签名" json:"sign"` Avatar string `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"avatar"` Password string `gorm:"column:password;type:varchar(64);not null;comment:密码" json:"password"` PassSalt string `gorm:"column:pass_salt;type:varchar(32);not null;comment:密码盐" json:"pass_salt"` WxOpenID string `gorm:"column:wx_open_id;type:varchar(64);not null;comment:OPEN ID" json:"wx_open_id"` WxUnionID string `gorm:"column:wx_union_id;type:varchar(64);not null;comment:UNION ID" json:"wx_union_id"` CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` } type AppUserAuthRes struct { // 店铺商品-卡片 Token string `json:"token"` } type AppUserRelationApplyRes struct { ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"` Type string `gorm:"column:type;type:varchar(64);not null;comment:类型:CLAN=家 FRIEND=朋友" json:"type"` TypeID string `gorm:"column:type_id;type:char(32);not null;comment:团体ID" json:"type_id"` OpUserID string `gorm:"column:op_user_id;type:char(32);not null;comment:操作用户" json:"op_user_id"` ToUserID string `gorm:"column:to_user_id;type:char(32);not null;comment:目标用户" json:"to_user_id"` Message string `gorm:"column:message;type:varchar(255);not null;comment:申请内容" json:"message"` ReplyMsg string `gorm:"column:reply_msg;type:varchar(255);not null;comment:回复内容" json:"reply_msg"` Channel string `gorm:"column:channel;type:varchar(64);not null;comment:方式 APPLY=用户申请 INVITE=管理员邀请" json:"channel"` State string `gorm:"column:state;type:varchar(32);not null;comment:OK" json:"state"` CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` }