|
|
@@ -117,3 +117,97 @@ type Taaccountmarket struct {
|
|
|
func (Taaccountmarket) TableName() string {
|
|
|
return "TAACCOUNTMARKET"
|
|
|
}
|
|
|
+
|
|
|
+// Useraccount 用户表
|
|
|
+type Useraccount struct {
|
|
|
+ Userid uint64 `json:"userid" xorm:"'USERID'" binding:"required"` // 用户ID
|
|
|
+ Usertype uint32 `json:"usertype" xorm:"'USERTYPE'"` // 账户类型 - 1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者 6:客户
|
|
|
+ Accountname string `json:"accountname" xorm:"'ACCOUNTNAME'"` // 账户名称(机构名称)
|
|
|
+ Parentuserid uint64 `json:"parentuserid" xorm:"'PARENTUSERID'"` // 所属机构ID
|
|
|
+ Broker uint64 `json:"broker" xorm:"'BROKER'"` // 所属经纪人ID
|
|
|
+ Subarealevelpath string `json:"subarealevelpath" xorm:"'SUBAREALEVELPATH'"` // 子机构层级路径(逗号分隔,首尾加逗号)
|
|
|
+ Refereeuserid uint64 `json:"refereeuserid" xorm:"'REFEREEUSERID'"` // 推荐人ID
|
|
|
+ Memberuserid uint64 `json:"memberuserid" xorm:"'MEMBERUSERID'"` // 所属会员ID
|
|
|
+ Accountstatus uint32 `json:"accountstatus" xorm:"'ACCOUNTSTATUS'"` // 账户状态 - 1:待激活 2:待审核 3:待复审 4:正常 5:审核拒绝 6:注销
|
|
|
+ Reckonaccountid uint64 `json:"reckonaccountid" xorm:"'RECKONACCOUNTID'"` // 默认结算资金账号ID(机构分润使用) 作废
|
|
|
+ Modifystatus uint32 `json:"modifystatus" xorm:"'MODIFYSTATUS'"` // 变更状态 1 未变更 2 变更中 3 变更待审核 4 变更待复核(投资者)
|
|
|
+ Createtime time.Time `json:"createtime" xorm:"'CREATETIME'"` // 创建时间
|
|
|
+ Creatorid uint64 `json:"creatorid" xorm:"'CREATORID'"` // 创建人
|
|
|
+ Audittime time.Time `json:"audittime" xorm:"'AUDITTIME'"` // 审核时间
|
|
|
+ Audituserid uint64 `json:"audituserid" xorm:"'AUDITUSERID'"` // 审核人
|
|
|
+ Auditremark string `json:"auditremark" xorm:"'AUDITREMARK'"` // 审核备注
|
|
|
+ Canceltime time.Time `json:"canceltime" xorm:"'CANCELTIME'"` // 销户时间
|
|
|
+ Canceluserid uint64 `json:"canceluserid" xorm:"'CANCELUSERID'"` // 销户人
|
|
|
+ Modifytime time.Time `json:"modifytime" xorm:"'MODIFYTIME'"` // 修改时间
|
|
|
+ Modifierid uint64 `json:"modifierid" xorm:"'MODIFIERID'"` // 修改人
|
|
|
+ Modifyremark string `json:"modifyremark" xorm:"'MODIFYREMARK'"` // 变更备注
|
|
|
+ Maxinvestornum uint64 `json:"maxinvestornum" xorm:"'MAXINVESTORNUM'"` // 最大用户数(经纪会员下投资者个数)
|
|
|
+ Hasauth uint32 `json:"hasauth" xorm:"'HASAUTH'"` // 是否已实名认证 - 0:未认证 1:已认证 2:已提交(待审核) 3:已拒绝
|
|
|
+ Refercount uint32 `json:"refercount" xorm:"'REFERCOUNT'"` // 推荐总人数
|
|
|
+ Refernum string `json:"refernum" xorm:"'REFERNUM'"` // 推荐码
|
|
|
+}
|
|
|
+
|
|
|
+// TableName is USERACCOUNT
|
|
|
+func (Useraccount) TableName() string {
|
|
|
+ return "USERACCOUNT"
|
|
|
+}
|
|
|
+
|
|
|
+// Userinfo 用户信息表
|
|
|
+type Userinfo struct {
|
|
|
+ Userid uint64 `json:"userid" xorm:"'USERID'" binding:"required"` // 用户ID
|
|
|
+ Userinfotype uint32 `json:"userinfotype" xorm:"'USERINFOTYPE'"` // 用户信息类型 - 1:个人 2:企业
|
|
|
+ Customername string `json:"customername" xorm:"'CUSTOMERNAME'"` // 客户名称(企业名称)
|
|
|
+ Userstatus uint32 `json:"userstatus" xorm:"'USERSTATUS'"` // 用户状态 - 1:正常 2:注销
|
|
|
+ Usertype uint32 `json:"usertype" xorm:"'USERTYPE'"` // 账户类型 - 1:交易所 2:机构 3:会员子机构 4:经纪人 5:投资者 6:客户
|
|
|
+ Openmode uint32 `json:"openmode" xorm:"'OPENMODE'"` // 开户方式 - 1:管理端开户 2:网上开户注册(会员官网) 3:微信开户 4:网页交易端注册 5:安卓手机端注册 6:苹果手机端注册 7:PC交易端注册 8:微信快速开户 9:支付宝快速开户 10:手机号快速开户
|
|
|
+ Cardtypeid uint32 `json:"cardtypeid" xorm:"'CARDTYPEID'"` // 证件类型ID
|
|
|
+ Cardnum string `json:"cardnum" xorm:"'CARDNUM'"` // 证件号码(加密存储)
|
|
|
+ Halfbodyphotourl string `json:"halfbodyphotourl" xorm:"'HALFBODYPHOTOURL'"` // 半身照地址
|
|
|
+ Cardfrontphotourl string `json:"cardfrontphotourl" xorm:"'CARDFRONTPHOTOURL'"` // 证件正面图片地址
|
|
|
+ Cardbackphotourl string `json:"cardbackphotourl" xorm:"'CARDBACKPHOTOURL'"` // 证件背面图片地址
|
|
|
+ Biznature uint32 `json:"biznature" xorm:"'BIZNATURE'"` // 企业性质( 企业) - 1:国有控股企业 2:集体控股企业 3:私人控股企业 4:港澳台商控股企业 5:外商控股企业 6:其它
|
|
|
+ Bizscope string `json:"bizscope" xorm:"'BIZSCOPE'"` // 企业经营范围(企业)
|
|
|
+ Legalpersonname string `json:"legalpersonname" xorm:"'LEGALPERSONNAME'"` // 法人姓名(企业)
|
|
|
+ Contactname string `json:"contactname" xorm:"'CONTACTNAME'"` // 联系人
|
|
|
+ Sex uint32 `json:"sex" xorm:"'SEX'"` // 用户性别 0: 女 1: 男
|
|
|
+ Telphone string `json:"telphone" xorm:"'TELPHONE'"` // 联系电话(加密存储)
|
|
|
+ Mobile string `json:"mobile" xorm:"'MOBILE'"` // 手机号码(加密存储)
|
|
|
+ Fax string `json:"fax" xorm:"'FAX'"` // 传真(加密存储)
|
|
|
+ Email string `json:"email" xorm:"'EMAIL'"` // 邮件(加密存储)
|
|
|
+ Qq string `json:"qq" xorm:"'QQ'"` // QQ(加密存储
|
|
|
+ Wechat string `json:"wechat" xorm:"'WECHAT'"` // 微信(加密存储)
|
|
|
+ Countryid uint32 `json:"countryid" xorm:"'COUNTRYID'"` // 国家
|
|
|
+ Provinceid uint32 `json:"provinceid" xorm:"'PROVINCEID'"` // 省
|
|
|
+ Cityid uint32 `json:"cityid" xorm:"'CITYID'"` // 市
|
|
|
+ Districtid uint32 `json:"districtid" xorm:"'DISTRICTID'"` // 地区
|
|
|
+ Company string `json:"company" xorm:"'COMPANY'"` // 公司(个人)
|
|
|
+ Address string `json:"address" xorm:"'ADDRESS'"` // 地址
|
|
|
+ Postalcode string `json:"postalcode" xorm:"'POSTALCODE'"` // 邮政编码
|
|
|
+ Createtime time.Time `json:"createtime" xorm:"'CREATETIME'"` // 创建时间
|
|
|
+ Creatorid uint64 `json:"creatorid" xorm:"'CREATORID'"` // 创建人
|
|
|
+ Modifiertime time.Time `json:"modifiertime" xorm:"'MODIFIERTIME'"` // 修改时间
|
|
|
+ Modifierid uint64 `json:"modifierid" xorm:"'MODIFIERID'"` // 修改人
|
|
|
+ Remark string `json:"remark" xorm:"'REMARK'"` // 备注
|
|
|
+ Wskhinfo string `json:"wskhinfo" xorm:"'WSKHINFO'"` // 开户申请信息(JSON)
|
|
|
+ Signpdfurl string `json:"signpdfurl" xorm:"'SIGNPDFURL'"` // 签约pdf文件
|
|
|
+ Legalcardfrontphotourl string `json:"legalcardfrontphotourl" xorm:"'LEGALCARDFRONTPHOTOURL'"` // 法人身份证正面照地址
|
|
|
+ Legalcardbackphotourl string `json:"legalcardbackphotourl" xorm:"'LEGALCARDBACKPHOTOURL'"` // 法人身份证背面照地址
|
|
|
+ Otherurl string `json:"otherurl" xorm:"'OTHERURL'"` // 其它图片地址[使用分号分隔]
|
|
|
+ Hasencrypt uint32 `json:"hasencrypt" xorm:"'HASENCRYPT'"` // 数据是否已加密 - 0:未加密 1:已加密
|
|
|
+ Bankname string `json:"bankname" xorm:"'BANKNAME'"` // 银行名称
|
|
|
+ Bankaccount string `json:"bankaccount" xorm:"'BANKACCOUNT'"` // 银行帐号 (加密存储)
|
|
|
+ Bankcardfrontphotourl string `json:"bankcardfrontphotourl" xorm:"'BANKCARDFRONTPHOTOURL'"` // 银行卡正面照地址
|
|
|
+ Needinvoice uint32 `json:"needinvoice" xorm:"'NEEDINVOICE'"` // 是否需要发票 - 0:不需要 1:需要
|
|
|
+ Bankid string `json:"bankid" xorm:"'BANKID'"` // 银行编码
|
|
|
+ Attachment1 string `json:"attachment1" xorm:"'ATTACHMENT1'"` // 附件1
|
|
|
+ Attachment2 string `json:"attachment2" xorm:"'ATTACHMENT2'"` // 附件2
|
|
|
+ Bankaccountname string `json:"bankaccountname" xorm:"'BANKACCOUNTNAME'"` // 收款人名称
|
|
|
+ Headurl string `json:"headurl" xorm:"'HEADURL'"` // 头像地址
|
|
|
+ Nickname string `json:"nickname" xorm:"'NICKNAME'"` // 昵称:默认为名称脱敏(张**) 或 手机号脱敏(139****9999)
|
|
|
+ Mobile2 string `json:"mobile2" xorm:"'MOBILE2'"` // 手机号码[明文-尚志]
|
|
|
+}
|
|
|
+
|
|
|
+// TableName is USERINFO
|
|
|
+func (Userinfo) TableName() string {
|
|
|
+ return "USERINFO"
|
|
|
+}
|