| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- // ==========================================================================
- // This is auto-generated by gf cli tool. Fill this file as you wish.
- // ==========================================================================
- package user
- import (
- "github.com/gogf/gf/os/gtime"
- internal2 "lims_adapter/model/user/internal"
- )
- // BaseUser is the golang structure for table base_user.
- type BaseUser internal2.BaseUser
- // Fill with you ideas below.
- type UserQualification struct {
- Id int `orm:"Id,primary" json:"id"` //
- UserName string `orm:"UserName" json:"userName"` // 用户登录名
- RealName string `orm:"RealName" json:"realName"` // 用户名
- Qualification int `orm:"Qualification" json:"qualification"` // 资格 1普通资格 2资深资格
- Mobile string `orm:"Mobile" json:"mobile"` // 手机号
- AuthorizeTime *gtime.Time `orm:"AuthorizeTime" json:"authorizeTime"` // 授权时间
- }
- type UserInfoReq struct {
- PageNun int `json:"pageNum"`
- PageSize int `json:"pageSize"`
- Enabled int `json:"enabled"`
- InstrumentId int `json:"instrument_id"`
- DepartmentId int `json:"department_id"`
- UserName string `json:"user_name"`
- Mobile string `json:"mobile"`
- ReqType int `json:"req_type"` // 请求类型 设备预约(1:预约资格 2:优先预约权) 主从用户管理(1:主用户查询 2:从用户查询)
- IsSelf string `json:"isSelf"` // 1 查看全部;其他 查看自己
- }
- type UserInfoRsp struct {
- Records []BaseUserInfo `json:"records"`
- Total int `json:"total"'`
- }
- type SearchUserInfoRsp struct {
- Records []SearchUserInfo `json:"records"`
- Total int `json:"total"'`
- }
- // 添加、删除主从用户
- type AddMainOrSubReq struct {
- Ids []int `json:"ids"` // 用户Id列表
- Id int `json:"id"` // 用户Id
- ReqType int `json:"req_type"` // 预约资格:1 添加主用户,2添加从用户
- }
- // 财务账号绑定用户
- type UserBindAccountReq struct {
- Id int `json:"id"`
- UserId int `json:"userId"`
- }
- type BaseUserInfo struct {
- Id int `orm:"Id,primary" json:"id"` //
- Uuid string `orm:"Uuid" json:"uuid"` // 用户Id标识,不易猜出
- AccCode string `orm:"AccCode" json:"accCode"` // 区分不同App的用户
- Code string `orm:"Code" json:"code"` // 编码
- UserName string `orm:"UserName" json:"userName"` // 用户登录名
- Realname string `orm:"Realname" json:"realname"` // 用户名
- RoleId int `orm:"RoleId" json:"roleId"` // 角色id
- SecurityLevel int `orm:"SecurityLevel" json:"securityLevel"` //
- UserFrom string `orm:"UserFrom" json:"userFrom"` //
- CompanyId string `orm:"CompanyId" json:"companyId"` // 公司id
- CompanyName string `orm:"CompanyName" json:"companyName"` // 公司名称
- DepartmentId string `orm:"DepartmentId" json:"departmentId"` // 部门id
- DepartmentName string `orm:"DepartmentName" json:"departmentName"` // 部门名称
- WorkgroupId string `orm:"WorkgroupId" json:"workgroupId"` // 工作组id
- WorkgroupName string `orm:"WorkgroupName" json:"workgroupName"` // 工作组名称
- WorkCategory string `orm:"WorkCategory" json:"workCategory"` //
- Duty string `orm:"Duty" json:"duty"` // 职务
- Title string `orm:"Title" json:"title"` // 头衔
- Gender string `orm:"Gender" json:"gender"` // 性别
- Birthday string `orm:"Birthday" json:"birthday"` //
- Mobile string `orm:"Mobile" json:"mobile"` //
- Telephone string `orm:"Telephone" json:"telephone"` //
- Email string `orm:"Email" json:"email"` //
- OICQ string `orm:"OICQ" json:"oICQ"` //
- HomeAddress string `orm:"HomeAddress" json:"homeAddress"` //
- UserPassword string `orm:"UserPassword" json:"userPassword"` //
- ChangePasswordDate *gtime.Time `orm:"ChangePasswordDate" json:"changePasswordDate"` // 改密码时间
- CommunicationPassword string `orm:"CommunicationPassword" json:"communicationPassword"` //
- PublicKey string `orm:"PublicKey" json:"publicKey"` //
- SignedPassword string `orm:"SignedPassword" json:"signedPassword"` //
- Lang string `orm:"Lang" json:"lang"` //
- Theme string `orm:"Theme" json:"theme"` //
- AllowStartTime *gtime.Time `orm:"AllowStartTime" json:"allowStartTime"` //
- AllowEndTime *gtime.Time `orm:"AllowEndTime" json:"allowEndTime"` //
- LockStartDate *gtime.Time `orm:"LockStartDate" json:"lockStartDate"` //
- LockEndDate *gtime.Time `orm:"LockEndDate" json:"lockEndDate"` //
- FirstVisit *gtime.Time `orm:"FirstVisit" json:"firstVisit"` //
- PreviousVisit *gtime.Time `orm:"PreviousVisit" json:"previousVisit"` //
- LastVisit *gtime.Time `orm:"LastVisit" json:"lastVisit"` //
- LogOnCount int `orm:"LogOnCount" json:"logOnCount"` //
- IsStaff int `orm:"IsStaff" json:"isStaff"` //
- UserOnLine int `orm:"UserOnLine" json:"userOnLine"` //
- IsVisible int `orm:"IsVisible" json:"isVisible"` // 是否可视,1为可视
- OpenId string `orm:"OpenId" json:"openId"` //
- IPAddress string `orm:"IPAddress" json:"iPAddress"` //
- MACAddress string `orm:"MACAddress" json:"mACAddress"` //
- Question string `orm:"Question" json:"question"` //
- AnswerQuestion string `orm:"AnswerQuestion" json:"answerQuestion"` //
- UserAddressId int `orm:"UserAddressId" json:"userAddressId"` //
- Enabled int `orm:"Enabled" json:"enabled"` // 是否可用
- AuditStatus int `orm:"AuditStatus" json:"auditStatus"` // 激活状态(1激活)
- DeletionStateCode int `orm:"DeletionStateCode" json:"deletionStateCode"` // 删除状态
- SortCode int `orm:"SortCode" json:"sortCode"` //
- Description string `orm:"Description" json:"description"` //
- CreateOn *gtime.Time `orm:"CreateOn" json:"createOn"` //
- CreateUserId string `orm:"CreateUserId" json:"createUserId"` //
- CreateBy string `orm:"CreateBy" json:"createBy"` //
- ModifiedOn *gtime.Time `orm:"ModifiedOn" json:"modifiedOn"` //
- ModifiedUserId string `orm:"ModifiedUserId" json:"modifiedUserId"` //
- ModifiedBy string `orm:"ModifiedBy" json:"modifiedBy"` //
- Photo string `orm:"Photo" json:"photo"` //
- QRCode string `orm:"QRCode" json:"qRCode"` //
- QRCodeImage []byte `orm:"QRCodeImage" json:"qRCodeImage"` //
- IsCompanyUser int `orm:"IsCompanyUser" json:"isCompanyUser"` // 是否是企业用户(供方字段用)
- Superior string `orm:"Superior" json:"superior"` // 上级部门
- UnitId int `orm:"UnitId" json:"unitId"` // 二级单位ID(供方字段用)
- Unit string `orm:"Unit" json:"unit"` //
- DeletedAt *gtime.Time `orm:"DeletedAt" json:"deletedAt"` // 删除时间
- }
- type SearchUserInfo struct {
- BaseUserInfo
- MasterId int `orm:"MasterId" json:"master_id"` // 主用户Id
- }
|