package response import ( "gitlab.wodcloud.com/smart-operation/so-operation-api/src/pkg/beagle/jsontime" "time" ) type SystemUserList struct { Id int32 `json:"id" ` // id OrganizationId string `json:"organization_id" xorm:"organization_id"` // 所属组织 OrganizationName string `json:"organization_name" xorm:"name"` // 所属组织 BusinessCode string `json:"business_code" xorm:"business_code"` // 业务系统编码 BusinessName string `json:"business_name" xorm:"business_name"` // 业务系统名称 SystemAccount string `json:"system_account" xorm:"system_account"` // 系统账号 State int `json:"state" xorm:"state"` // 状态0禁用1启用 CreatedTime time.Time `json:"created_time" xorm:"created" ` // 创建时间 SystemId string `json:"system_id" xorm:"system_id"` // 系统账号id } type SystemUserDetailRes struct { BusinessCode string `json:"business_code"` // 业务系统编码 BusinessName string `json:"business_name"` // 业务系统名称 OrganizationId string `json:"organization_id"` // 所属组织 OrganizationName string `json:"organization_name"` // 所属组织名称 SystemAccount string `json:"system_account"` // 系统账号 AppId string `json:"app_id"` // appId AppSecret string `json:"app_secret"` // appSecret CreatedBy string `json:"created_by"` // 创建者 CreatedTime jsontime.Time `json:"created_time"` // 创建时间 State int `json:"state"` // 状态0禁用1启用 DevelopId string `json:"develop_id"` // 开发厂商uuid DevelopName string `json:"develop_name"` // 开发厂商名称 AccessAddress string `json:"access_address"` // 访问地址 BusinessDesc string `json:"business_desc"` // 业务系统描述 Logo string `json:"logo"` // 头像logo ContactName string `json:"contact_name"` // 联系人姓名 ContactPhone string `json:"contact_phone"` // 联系人电话 ContactEmail string `json:"contact_email"` // 联系人邮箱 Remark string `json:"remark"` // 备注 SystemId string `json:"system_id"` // 系统账号id IsAdmin int `json:"is_admin"` // 用户类型 CreatedUserRole []string `json:"created_user_role"` // 系统角色 } type SystemUserListRes struct { Id int32 `json:"id" ` // id OrganizationId string `json:"organization_id"` // 所属组织 OrganizationName string `json:"organization_name"` // 所属组织 BusinessCode string `json:"business_code"` // 业务系统编码 BusinessName string `json:"business_name"` // 业务系统名称 SystemAccount string `json:"system_account"` // 系统账号 State int `json:"state"` // 状态0禁用1启用 CreatedTime jsontime.Time `json:"created_time" ` // 创建时间 SystemId string `json:"system_id"` // 系统账号id } type CheckLicense struct { SystemOptionsId int64 `json:"systemOptionsId"` SystemVersion string `json:"systemVersion"` SystemUser string `json:"systemUser"` License string `json:"license"` DeadDate string `json:"deadDate"` CanUpdLicense int8 `json:"canUpdLicense"` IsExpired int8 `json:"isExpired"` } type LicenseInformAccess struct { CanUpdLicense int8 `json:"canUpdLicense"` } // 获取具有审批权限的角色 type ApprovalAuthorityRole struct { Id int64 `json:"id"` RoleId string `json:"role_id"` // 角色id(uuid) RoleName string `json:"role_name"` // 角色名称 } // 获取具有审批权限的组织 type ApprovalAuthorityOrg struct { Id int64 `json:"id"` OrganizationId string `json:"organization_id"` // 组织id(uuid) OrganizationName string `json:"organization_name"` // 组织名称 } // 获取具有审批权限的用户 type ApprovalAuthorityUser struct { Id int64 `json:"id"` SystemId string `json:"system_id" xorm:"system_id"` // 系统账号id RoleId string `json:"role_id"` // 角色id(uuid) DataPurview int `json:"data_purview"` // 数据权限:1-仅自己,2-本组织所有,3-全平台所有 OrganizationId string `json:"organization_id" xorm:"organization_id"` // 所属组织 }