user_info.go 3.5 KB

12345678910111213141516171819202122232425262728293031
  1. package viewmodels
  2. type UserInfo struct {
  3. OcId int64 `json:"ocId" xorm:"'oc_id' bigint comment('组织ID:公司或机构或单位ID')"`
  4. AccountId int64 `json:"accountId" xorm:"'account_id' bigint not null pk comment('主键ID')"`
  5. AccountName string `json:"accountName" xorm:"'account_name' varchar(128) comment('帐号名称')"`
  6. AccountType int64 `json:"accountType" xorm:"'account_type' bigint comment('帐号类型:0:系统用户,1:企业用户,2:集团用户,3:政府用户,4:合作伙伴')"`
  7. AccountRealName string `json:"accountRealName" xorm:"'account_real_name' varchar(64) comment('姓名')"`
  8. AccountIntro string `json:"accountIntro" xorm:"'account_intro' varchar(511) comment('个人简介')"`
  9. AccountAvatar string `json:"accountAvatar" xorm:"'account_avatar' varchar(255) comment('头像')"`
  10. AccountPhoto string `json:"accountPhoto" xorm:"'account_photo' varchar(255) comment('照片')"`
  11. AccountPhone string `json:"accountPhone" xorm:"'account_phone' varchar(32) comment('手机号')"`
  12. AccountLastIp string `json:"accountLastIp" xorm:"'account_last_ip' varchar(10) comment('最近一次登录IP')"`
  13. AccountLoc string `json:"accountLoc" xorm:"'account_loc' varchar(64) comment('区域')"`
  14. AccountMail string `json:"accountMail" xorm:"'account_mail' varchar(64) comment('Email')"`
  15. AccountStaffNo string `json:"accountStaffNo" xorm:"'account_staff_no' varchar(64) comment('StaffNo')"`
  16. Status int64 `json:"status" xorm:"'status' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  17. WxId int64 `json:"wxId" xorm:"'wxId' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  18. IsFixed int64 `json:"isFixed" xorm:"'isFixed' bigint default 1 comment('状态,默认值 1,[0:未激活; 1:正常; 2:锁定; -1:删除'])"`
  19. GmId int64 `json:"gmId" xorm:"'gm_id' bigint comment('PK ID') " `
  20. GroupId int64 `json:"groupId" xorm:"'group_id' bigint comment('群组ID') " `
  21. GroupName string `json:"groupName" xorm:"'group_name' string comment('群组名称') " `
  22. NodeLeft int64 `json:"nodeLeft" xorm:"'node_left' bigint comment('群组LEFT') " `
  23. NodeRight int64 `json:"nodeRight" xorm:"'node_right' bigint comment('群组RIGHT') " `
  24. GmpId int64 `json:"gmpId" xorm:"'gmp_id' bigint comment('公司组织ID') " `
  25. PositionId int64 `json:"positionId" xorm:"'account_id' bigint comment('岗位ID') " `
  26. PositionName string `json:"positionName" xorm:"'position_name' string comment('岗位名称') " `
  27. GmpgId int64 `json:"gmpgId" xorm:"'gmpg_id' bigint comment('GMPG PK ID') " `
  28. GrantGroupId int64 `json:"grantGroupId" xorm:"'grant_group_id' bigint comment('授权群组ID') " `
  29. GrantGroupName string `json:"grantGroupName" xorm:"'grant_group_name' string comment('授权群组名称') " `
  30. }