account_info.go 2.6 KB

1234567891011121314151617181920212223242526272829
  1. package viewmodels
  2. // AccountInfo Account Data Model
  3. type AccountInfo struct {
  4. OcId int64 `json:"ocId" xorm:"'oc_id' bigint comment('组织ID:公司或机构或单位ID')"`
  5. OcTypeId int64 `json:"ocTypeId" xorm:"'oc_type_id' bigint comment('OC TYPE ID')"`
  6. OcTypeTitle string `json:"ocTypeTitle" xorm:"'oc_type_title' varchar(128) comment('OC TYPE TITLE')"`
  7. AccountId int64 `json:"accountId" xorm:"'account_id' bigint not null pk comment('主键ID')"`
  8. AccountName string `json:"accountName" xorm:"'account_name' varchar(128) comment('帐号名称')"`
  9. Password string `json:"password" xorm:"'password' varchar(255) comment('密码')"`
  10. AccountType int64 `json:"accountType" xorm:"'account_type' bigint comment('帐号类型:0:系统用户,1:企业用户,2:集团用户,3:政府用户,4:合作伙伴')"`
  11. AccountRealName string `json:"accountRealName" xorm:"'account_real_name' varchar(64) comment('姓名')"`
  12. AccountIntro string `json:"accountIntro" xorm:"'account_intro' varchar(511) comment('个人简介')"`
  13. AccountAvatar string `json:"accountAvatar" xorm:"'account_avatar' varchar(255) comment('头像')"`
  14. AccountPhoto string `json:"accountPhoto" xorm:"'account_photo' varchar(255) comment('照片')"`
  15. AccountPhone string `json:"accountPhone" xorm:"'account_phone' varchar(32) comment('手机号')"`
  16. AccountLastIp string `json:"accountLastIp" xorm:"'account_last_ip' varchar(10) comment('最近一次登录IP')"`
  17. AccountLoc string `json:"accountLoc" xorm:"'account_loc' varchar(64) comment('区域')"`
  18. AccountMail string `json:"accountMail" xorm:"'account_mail' varchar(64) comment('Email')"`
  19. AccountStaffNo string `json:"accountStaffNo" xorm:"'account_staff_no' varchar(64) comment('Email')"`
  20. Status int64 `json:"status" xorm:"'status' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  21. WxId int64 `json:"wxId" xorm:"'wxId' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  22. IsFixed int64 `json:"isFixed" xorm:"'isFixed' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  23. }
  24. // TableName table name
  25. func (t *AccountInfo) TableName() string {
  26. return "account"
  27. }