Documentation ¶
Index ¶
- Constants
- type TAndroidCert
- type TAndroidCertOrg
- type TAndroidSignJob
- type TApp
- type TAppleAccount
- type TAppleBundle
- type TAppleBundleCapability
- type TAppleBundleRelation
- type TAppleCert
- type TAppleDevice
- type TAppleProfile
- type TAppleSignJob
- type TAuthorization
- type TAuthorizationAction
- type TAuthorizationActionRelation
- type TEvent
- type TFile
- type TNotice
- type TTodo
- type TTodoApprover
- type TUser
- type TUserRole
- type TWinCert
- type TWinSignJob
Constants ¶
View Source
const ( TAndroidSignJob_TaskType_Apk uint8 = 1 + iota TAndroidSignJob_TaskType_Aab TAndroidSignJob_TaskType_Patch )
View Source
const ( TAndroidSignJob_Status_Init uint8 = 1 + iota TAndroidSignJob_Status_Success TAndroidSignJob_Status_Fail )
View Source
const ( TAndroidSignJob_Source_Web uint8 = 1 + iota TAndroidSignJob_Source_API )
View Source
const ( TApp_Platform_Windows uint8 = 1 + iota TApp_Platform_Android TApp_Platform_Apple TApp_Platform_All )
View Source
const ( TApp_Status_OK uint8 = 1 + iota TApp_Status_Locked )
View Source
const ( TAppleAccount_Type_Personal uint8 = 1 + iota TAppleAccount_Type_Company TAppleAccount_Type_Enterprise )
View Source
const ( // 获取应用信息 TAuthorizationAction_ID_GetAppInfo uint = 1 + iota // 获取签名信息信息 TAuthorizationAction_ID_GetSignJobInfo // 使用签名服务 TAuthorizationAction_ID_SignJob )
View Source
const ( TEvent_Type_Register uint8 = 1 + iota TEvent_Type_Login TEvent_Type_LockAccount TEvent_Type_UnlockAccount TEvent_Type_ChangePasswd TEvent_Type_ResetPasswd TEvent_Type_ModifyUserInfo TEvent_Type_CreateApp TEvent_Type_UpdateApp TEvent_Type_LockApp TEvent_Type_ApplyOpenAPIToken TEvent_Type_UpdateOpenAPIToken TEvent_Type_RenewalOpenAPIToken TEvent_Type_DeleteOpenAPIToken TEvent_Type_ApplyAndroidCert TEvent_Type_ApplyAppleProfile TEvent_Type_DeleteCert TEvent_Type_ResetLoginFailTimes TEvent_Type_ApplyPushCert TEvent_Type_RegisterAppleDevice TEvent_Type_UnregisterAppleDevice TEvent_Type_BindAppleAccount TEvent_Type_ExportAppInfo TEvent_Type_DownloadGooglePlayCert TEvent_Type_ObtainFacebookDigest )
View Source
const ( TTodo_Type_CertExpire uint8 = 1 + iota TTodo_Type_ApplyJoinApp TTodo_Type_ApplyAppSigning )
View Source
const ( TTodo_Status_Init uint8 = 1 + iota TTodo_Status_Done TTodo_Status_Reject TTodo_Status_Agree )
View Source
const ( TUser_Status_OK = 1 + iota TUser_Status_Locked )
View Source
const ( // 超管 TUserRole_Role_SuperAdmin uint8 = 1 + iota // 系统管理员 TUserRole_Role_Admin // 应用管理员 TUserRole_Role_AppAdmin // 应用成员 TUserRole_Role_AppMember // 可使用签名服务 TUserRole_Role_AppSigner )
View Source
const ( TWinCert_Type_OV uint8 = 1 + iota TWinCert_Type_EV )
View Source
const ( TWinSignJob_TaskType_PE uint8 = 1 + iota TWinSignJob_TaskType_HLKAndWHQL TWinSignJob_TaskType_WHQL TWinSignJob_TaskType_Sys )
View Source
const ( TWinSignJob_Source_Web uint8 = 1 + iota TWinSignJob_Source_API )
View Source
const ( TWinSignJob_Status_Init uint8 = 1 + iota TWinSignJob_Status_Success TWinSignJob_Status_Fail TWinSignJob_Status_NeedHLKTest TWinSignJob_Status_NeedWHQL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TAndroidCert ¶
type TAndroidCert struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` CertId string `gorm:"column:cert_id; type:char(32) not null; comment:唯一标识; uniqueIndex:idx_cert_id" json:"certId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码" json:"userId,omitempty"` Organization string `gorm:"column:organization; type:varchar(64); comment:组织名" json:"organization,omitempty"` Alias string `gorm:"column:alias; type:varchar(64); comment:别名" json:"alias,omitempty"` Publisher string `gorm:"column:publisher; type:varchar(1024); comment:发布者" json:"publisher,omitempty"` Owner string `gorm:"column:owner; type:varchar(1024); comment:所有者" json:"owner,omitempty"` Algorithm string `gorm:"column:algorithm; type:varchar(64); comment:证书算法" json:"algorithm,omitempty"` Serial string `gorm:"column:serial; type:char(8); comment:序列号" json:"serial,omitempty"` Content []byte `gorm:"column:content; type:blob; comment:证书加密内容" json:"content,omitempty"` KeyId uint `gorm:"column:key_id; type:int unsigned; comment:证书加密密钥标识,外码" json:"keyId,omitempty"` MD5 string `gorm:"column:md5; type:char(32); comment:md5值" json:"md5,omitempty"` SHA1 string `gorm:"column:sha1; type:char(40); comment:sha1值" json:"sha1,omitempty"` SHA256 string `gorm:"column:sha256; type:char(64); comment:sha256值" json:"sha256,omitempty"` Storepass string `gorm:"column:storepass; type:varchar(128); comment:密钥库密码" json:"storepass,omitempty"` Keypass string `gorm:"column:keypass; type:varchar(128); comment:证书密码" json:"keypass,omitempty"` EffectTime time.Time `gorm:"column:effect_time; type:timestamp; comment:生效时间" json:"effectTime,omitempty"` ExpireTime time.Time `gorm:"column:expire_time; type:timestamp; comment:失效时间" json:"expireTime,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` DeleteTime time.Time `gorm:"column:delete_time; type:timestamp; comment:删除标识" json:"deleteTime,omitempty"` }
TAndroidCert Android证书信息表
func (*TAndroidCert) TableName ¶
func (*TAndroidCert) TableName() string
type TAndroidCertOrg ¶
type TAndroidCertOrg struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` Name string `gorm:"column:name; type:varchar(256); comment:主体名" json:"name,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人" json:"userId,omitempty"` Dname string `gorm:"column:dname; type:varchar(1024); comment:组织信息,keytools的dname参数值" json:"dname,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` }
TAndroidCertOrg Android证书主体表
func (*TAndroidCertOrg) TableName ¶
func (*TAndroidCertOrg) TableName() string
type TAndroidSignJob ¶
type TAndroidSignJob struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` JobId string `gorm:"column:job_id; type:char(38) not null; comment:任务Id; uniqueIndex:idx_job_id" json:"jobId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:用户Id或凭证Id,外码" json:"userId,omitempty"` CertId uint `gorm:"column:cert_id; type:int unsigned; comment:证书Id,外码" json:"certId,omitempty"` FileId string `gorm:"column:file_id; type:char(38); comment:文件Id" json:"fileId,omitempty"` SignedFileId string `gorm:"column:signed_file_id; type:char(38); comment:已签名文件Id" json:"signedFileId,omitempty"` TaskType uint8 `gorm:"column:task_type; type:tinyint unsigned; comment:任务类型,1=apk,2=aab,3=patch" json:"taskType,omitempty"` Log string `gorm:"column:log; type:text; comment:签名输出日志" json:"log,omitempty"` SignSchema string `gorm:"column:sign_schema; type:varchar(32); comment:apk签名方案,逗号分割" json:"signSchema,omitempty"` MinSDKLevel uint8 `gorm:"column:min_sdk_level; type:tinyint unsigned; comment:AndroidAPI最低等级" json:"minSDKLevel,omitempty"` Source uint8 `gorm:"column:source; type:tinyint unsigned; comment:来源,1=web,2=api" json:"source,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:创建时间; index:idx_create_time" json:"createTime,omitempty"` FinishTime time.Time `gorm:"column:finish_time; type:timestamp; comment:结束时间" json:"finishTime,omitempty"` Status uint8 `gorm:"column:status; type:tinyint unsigned; comment:状态,1=待签名,2=成功,3=失败" json:"status,omitempty"` }
TAndroidSignJob Android签名任务表
func (*TAndroidSignJob) TableName ¶
func (*TAndroidSignJob) TableName() string
type TApp ¶
type TApp struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` AppId string `gorm:"column:app_id; type:char(32) not null; comment:应用Id; uniqueIndex:idx_app_id" json:"appId,omitempty"` Name string `gorm:"column:name; type:varchar(64); comment:名称" json:"name,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码; index:idx_user_id" json:"userId,omitempty"` Avatar string `gorm:"column:avatar; type:char(38); comment:头像文件Id" json:"avatar,omitempty"` Platform uint8 `gorm:"column:platform; type:tinyint unsigned; comment:平台,1=Windows,2=Android,3=Apple" json:"platform,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:创建时间; index:idx_create_time" json:"createTime,omitempty"` AppleAccountId uint `gorm:"column:apple_account_id; type:int unsigned; comment:Apple账号Id,外码" json:"appleAccountId,omitempty"` Status uint8 `gorm:"column:status; type:tinyint unsigned; comment:状态,1=正常,2=注销" json:"status,omitempty"` }
TApp 应用信息表
type TAppleAccount ¶
type TAppleAccount struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` Account string `gorm:"column:account; type:varchar(128); comment:账号" json:"account,omitempty"` AppleId string `gorm:"column:team_id; type:char(10) not null; comment:账号Id; uniqueIndex:idx_apple_id"` Name string `gorm:"column:name; type:varchar(128); comment:名称" json:"name,omitempty"` Issuer string `gorm:"column:issuer; type:char(36); comment:Apple凭证iss" json:"issuer,omitempty"` Kid string `gorm:"column:kid; type:char(10); comment:Apple凭证kid" json:"kid,omitempty"` Key string `gorm:"column:key; type:varchar(512); comment:pkcs#8格式的凭证密钥" json:"key,omitempty"` Admin string `gorm:"column:admin; type:varchar(32); comment:账号管理员" json:"admin,omitempty"` Type uint `gorm:"column:type; type:int unsigned; comment:类型,1=个人,2=公司,3=企业" json:"type,omitempty"` }
TAppleAccount 苹果账号信息表
func (*TAppleAccount) TableName ¶
func (*TAppleAccount) TableName() string
type TAppleBundle ¶
type TAppleBundle struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码" json:"userId,omitempty"` AppleBundleName string `gorm:"column:apple_bundle_name; type:varchar(256); comment:Bundle名" json:"appleBundleName,omitempty"` AppleBundleId string `gorm:"column:apple_bundle_id; type:char(10); comment:BundleId" json:"appleBundleId,omitempty"` Platform uint8 `gorm:"column:platform; type:tinyint unsigned; comment:平台,1=UNIVERSAL,2=IOS,3=MAC_OS" json:"platform,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` }
TAppleBundle AppleBundle信息表
func (*TAppleBundle) TableName ¶
func (*TAppleBundle) TableName() string
type TAppleBundleCapability ¶
type TAppleBundleCapability struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` Name string `gorm:"column:name; type:varchar(64); comment:能力名" json:"name,omitempty"` Platform uint8 `gorm:"column:platform; type:tinyint unsigned; comment:平台,1=IOS,2=MAC_OS,3=UNIVERSAL" json:"platform,omitempty"` }
TAppleBundleCapability AppleBundle能力表
func (*TAppleBundleCapability) TableName ¶
func (*TAppleBundleCapability) TableName() string
type TAppleBundleRelation ¶
type TAppleBundleRelation struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` Capability uint `gorm:"column:capability_id; type:int unsigned; comment:能力项Id,外码" json:"capability,omitempty"` BundleId uint `` /* 126-byte string literal not displayed */ }
TAppleBundleRelation AppleBundle能力关联表
func (*TAppleBundleRelation) TableName ¶
func (*TAppleBundleRelation) TableName() string
type TAppleCert ¶
type TAppleCert struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` CertId string `` /* 131-byte string literal not displayed */ AppleCertId string `gorm:"column:apple_cert_id; type:char(10); comment:证书Id" json:"appleCertId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码" json:"userId,omitempty"` AppleId string `gorm:"column:apple_id; type:char(10); comment:Apple账号Id" json:"appleId,omitempty"` Organization string `gorm:"column:organization; type:varchar(64); comment:组织名" json:"organization,omitempty"` Content []byte `gorm:"column:content; type:blob; comment:证书加密后的内容" json:"content,omitempty"` KeyId uint `gorm:"column:key_id; type:int unsigned; comment:加密证书的密钥Id" json:"keyId,omitempty"` Category uint8 `` /* 313-byte string literal not displayed */ SerialNumber string `gorm:"column:serial_number; type:char(32); comment:序列号" json:"serialNumber,omitempty"` Platform uint8 `gorm:"column:platform; type:tinyint unsigned; comment:Apple证书平台,1=IOS,2=MAC_OS" json:"platform,omitempty"` Passwd string `gorm:"column:passwd; type:varchar(64); comment:证书密码" json:"passwd,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` ExpireTim time.Time `gorm:"column:expire_time; type:timestamp; comment:过期时间" json:"expireTim,omitempty"` DeleteTime time.Time `gorm:"column:delete_time; type:timestamp; comment:删除标识" json:"deleteTime,omitempty"` }
TAppleCert Apple证书信息表
func (*TAppleCert) TableName ¶
func (*TAppleCert) TableName() string
type TAppleDevice ¶
type TAppleDevice struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` UDID string `gorm:"column:udid; type:char(40) not null; comment:设备唯一标识符; uniqueIndex:idx_udid" json:"udid,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:绑定人,外码" json:"userId,omitempty"` Name string `gorm:"column:name; type:varchar(128); comment:设备名称" json:"name,omitempty"` Model string `gorm:"column:model; type:varchar(128); comment:设备类型" json:"model,omitempty"` AppleDeviceId string `gorm:"column:apple_device_id; type:char(8); comment:Apple绑定Id" json:"appleDeviceId,omitempty"` BindTime time.Time `gorm:"column:bind_time; type:timestamp; comment:绑定时间" json:"bindTime,omitempty"` }
TAppleDevice Apple测试设备信息表
func (*TAppleDevice) TableName ¶
func (*TAppleDevice) TableName() string
type TAppleProfile ¶
type TAppleProfile struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` CertId string `` /* 131-byte string literal not displayed */ UUID string `gorm:"column:uuid; type:char(32); comment:描述文件标识" json:"uuid,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码" json:"userId,omitempty"` Content []byte `gorm:"column:content; type:blob; comment:证书加密后的内容" json:"content,omitempty"` KeyId uint `gorm:"column:key_id; type:int unsigned; comment:加密证书的密钥Id" json:"keyId,omitempty"` AppleId string `gorm:"column:apple_id; type:char(10); comment:Apple账号Id" json:"appleId,omitempty"` AppleBundleId string `gorm:"column:apple_bundle_id; type:char(10); comment:绑定的BundleId" json:"appleBundleId,omitempty"` AppleCertId string `gorm:"column:apple_cert_id; type:char(10); comment:对应签名证书Id" json:"appleCertId,omitempty"` Text string `gorm:"column:text; type:text; comment:描述文件中xml文本" json:"text,omitempty"` Category uint8 `` /* 388-byte string literal not displayed */ Platform uint8 `gorm:"column:platform; type:tinyint unsigned; comment:Apple证书平台,1=IOS,2=MAC_OS" json:"platform,omitempty"` ProfileType uint8 `` /* 194-byte string literal not displayed */ CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` ExpireTime time.Time `gorm:"column:expire_time; type:timestamp; comment:过期时间" json:"expireTime,omitempty"` DeleteTime time.Time `gorm:"column:delete_time; type:timestamp; comment:删除标识" json:"deleteTime,omitempty"` }
TAppleProfile Apple描述文件信息表
func (*TAppleProfile) TableName ¶
func (*TAppleProfile) TableName() string
type TAppleSignJob ¶
type TAppleSignJob struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` JobId string `gorm:"column:job_id; type:char(38) not null; comment:任务Id; uniqueIndex:idx_job_id" json:"jobId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment; 用户Id或凭证Id,外码" json:"userId,omitempty"` FileId string `gorm:"column:file_id; type:char(38); comment:文件Id" json:"fileId,omitempty"` TaskType uint8 `gorm:"column:task_type; type:tinyint unsigned; comment:任务类型,1=ipa,2=pkg,3=dmg" json:"taskType,omitempty"` CertId uint `gorm:"column:cert_id; type:int unsigned; comment:证书Id,外码" json:"certId,omitempty"` Log string `gorm:"column:log; type:text; comment:签名输出日志" json:"log,omitempty"` SignedFileId string `gorm:"column:signed_file_id; type:char(38); comment:已签名文件Id" json:"signedFileId,omitempty"` ULDomains string `gorm:"column:ul_domains; type:varchar(256); comment:UL域名,多个逗号分割" json:"ulDomains,omitempty"` KeychainAccessGroup string `` /* 140-byte string literal not displayed */ AppexInfo string `` /* 126-byte string literal not displayed */ Source uint8 `gorm:"column:source; type:tinyint unsigned; comment:来源,1=web,2=api" json:"source,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:创建时间; index:idx_create_time" json:"createTime,omitempty"` FinishTime time.Time `gorm:"column:finish_time; type:timestamp; comment:结束时间" json:"finishTime,omitempty"` Status uint8 `gorm:"column:status; type:tinyint unsigned; comment:状态,1=待签名,2=成功,3=失败" json:"status,omitempty"` }
TAppleSignJob Apple签名任务表
func (*TAppleSignJob) TableName ¶
func (t *TAppleSignJob) TableName() string
type TAuthorization ¶
type TAuthorization struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` AuthId string `gorm:"column:auth_id; type:varchar(64); comment:凭证Id" json:"authId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:用户Id,外码" json:"userId,omitempty"` IP string `gorm:"column:ip; type:varchar(1024); comment:调用IP" json:"ip,omitempty"` Frequency uint `gorm:"column:frequency; type:int unsigned; comment:每分钟调用最高频率" json:"frequency,omitempty"` Secret string `gorm:"column:secret; type:char(128); comment:密钥" json:"secret,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` ExpireTime time.Time `gorm:"column:expire_time; type:timestamp; comment:失效时间" json:"expireTime,omitempty"` }
TAuthorization 凭证信息表
func (*TAuthorization) TableName ¶
func (*TAuthorization) TableName() string
type TAuthorizationAction ¶
type TAuthorizationAction struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` Name string `gorm:"column:name; type:varchar(64); comment:名称" json:"name,omitempty"` Platform uint8 `` /* 138-byte string literal not displayed */ }
TAuthorizationAction 凭证授权项表
func (*TAuthorizationAction) TableName ¶
func (*TAuthorizationAction) TableName() string
type TAuthorizationActionRelation ¶
type TAuthorizationActionRelation struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` AuthId uint `gorm:"column:auth_id; type:int unsigned not null; comment:凭证Id,外码; index:idx_auth_id"` ActionId uint `gorm:"column:action_id; type:int unsigned not null; comment:授权项Id,外码; index:idx_action_id"` }
TAuthorizationActionRelation 凭证授权表
func (*TAuthorizationActionRelation) TableName ¶
func (*TAuthorizationActionRelation) TableName() string
type TEvent ¶
type TEvent struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` Type uint8 `` /* 594-byte string literal not displayed */ OccurTime time.Time `gorm:"column:occur_time; type:timestamp not null; comment:发生时间; index:idx_occur_time" json:"occurTime,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned not null; comment:关联人,外码; index:idx_user_id" json:"userId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned; comment:关联应用,外码; index:id_app_id" json:"appId,omitempty"` Content string `gorm:"column:content; type:text; comment:内容"` }
TEvent 事件表
type TFile ¶
type TFile struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` FileId string `` /* 146-byte string literal not displayed */ UserId uint `gorm:"column:user_id; type:int unsigned; comment:上传人,外码" json:"userId,omitempty"` TusdId string `gorm:"column:tusd_id; type:char(32); comment:tusd文件Id" json:"tusdId,omitempty"` Name string `gorm:"column:name; type:varchar(256); comment:文件名" json:"name,omitempty"` MD5 string `gorm:"column:md5; type:char(32); comment:散列值" json:"md5,omitempty"` SHA1 string `gorm:"column:sha1; type:char(40); comment:散列值" json:"sha1,omitempty"` SHA256 string `gorm:"column:sha256; type:char(64); comment:散列值" json:"sha256,omitempty"` Size int `gorm:"column:size; type:int unsigned; comment:文件大小" json:"size,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:上传时间; index:idx_create_time" json:"createTime,omitempty"` }
TFile 文件信息表
type TNotice ¶
type TNotice struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` Content string `gorm:"column:content; type:text; comment:公告内容" json:"content,omitempty"` ActiveTime time.Time `gorm:"column:active_time; type:timestamp; comment:生效时间" json:"activeTime,omitempty"` InactiveTime time.Time `gorm:"column:inactive_time; type:timestamp; comment:失效时间" json:"inactiveTime,omitempty"` Creator uint `gorm:"column:creator; type:int unsigned; comment:创建人" json:"creator,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` }
TNotice 系统公告表
type TTodo ¶
type TTodo struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` TodoId string `gorm:"column:todo_id; type:char(32) not null; comment:待办Id; uniqueIndex:idx_todo_id" json:"todoId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned not null; comment:申请人; index:idx_user_id" json:"userId,omitempty"` Type uint8 `` /* 144-byte string literal not displayed */ Status uint8 `` /* 127-byte string literal not displayed */ ApplyMsg string `gorm:"column:apply_msg; type:varchar(1024); comment:申请原因" json:"applyMsg,omitempty"` RejectMsg string `gorm:"column:reject_msg; type:varchar(1024); comment:拒绝原因" json:"rejectMsg,omitempty"` RefId uint `gorm:"column:ref_id; type:int unsigned; comment:证书Id/Apple账号Id/测试设备Id,外码" json:"refId,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:创建时间" json:"createTime,omitempty"` FinishTime time.Time `gorm:"column:finish_time; type:timestamp; comment:结束时间" json:"finishTime,omitempty"` }
TTodo 待办信息表
type TTodoApprover ¶
type TTodoApprover struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` TodoId uint `gorm:"column:todo_id int unsigned not null; comment:待办Id,外码; index:idx_todo_id"` UserId uint `gorm:"column:user_id int unsigned not null; comment:用户Id,外码; index:idx_user_id"` }
TTodoApprover 待办处理人表
func (TTodoApprover) TableName ¶
func (TTodoApprover) TableName() string
type TUser ¶
type TUser struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` NameEn string `gorm:"column:name_en; type:varchar(16) not null; comment:英文名; uniqueIndex:idx_name_en"` NameZh string `gorm:"column:name_zh; type:varchar(32); comment:中文名"` Avatar string `gorm:"column:avatar; type:char(38); comment:头像文件id,外码"` PasswdDigest string `gorm:"column:passwd_digest; type:char(32); comment:密码摘要"` PasswdSalt string `gorm:"column:passwd_salt; type:char(128); comment:密码盐值"` RegisterTime time.Time `gorm:"column:register_time; type:timestamp; comment:注册时间"` LastLoginTime time.Time `gorm:"column:last_login_time; type:timestamp; comment:最后登录时间"` Status uint8 `gorm:"column:status; type:tinyint unsigned; comment:状态,1=正常,2=冻结"` }
TUser 用户信息表
type TUserRole ¶
type TUserRole struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned not null; comment:用户Id,外码; index:idx_user_id" json:"userId,omitempty"` AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` Role uint8 `` /* 165-byte string literal not displayed */ }
TUserRole 用户角色表
type TWinCert ¶
type TWinCert struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty" json:"id,omitempty"` CertId string `` /* 131-byte string literal not displayed */ AppId uint `gorm:"column:app_id; type:int unsigned not null; comment:应用Id,外码; index:idx_app_id" json:"appId,omitempty"` UserId uint `gorm:"column:user_id; type:int unsigned; comment:创建人,外码" json:"userId,omitempty"` Fingerprint string `gorm:"column:fingerprint; type:char(40); comment:证书指纹" json:"fingerprint,omitempty"` Organization string `gorm:"column:organization; type:varchar(64); comment:组织名" json:"organization,omitempty"` Version string `gorm:"column:version; type:varchar(16); comment:版本号" json:"version,omitempty"` Algorithm string `gorm:"column:algorithm; type:varchar(64); comment:证书算法" json:"algorithm,omitempty"` Publisher string `gorm:"column:publisher; type:varchar(1024); comment:发布者" json:"publisher,omitempty"` Serial string `gorm:"column:serial; type:char(48); comment:序列号" json:"serial,omitempty"` Owner string `gorm:"column:owner; type:varchar(1024); comment:所有者" json:"owner,omitempty"` Password string `gorm:"column:password; type:varchar(64); comment:密码" json:"password,omitempty"` Content []byte `gorm:"column:content; type:blob; comment:证书加密内容" json:"content,omitempty"` KeyId uint `gorm:"column:key_id; type:int unsigned; comment:证书加密密钥标识,外码" json:"keyId,omitempty"` Type uint8 `gorm:"column:type; type:int unsigned; comment:证书类型,1=公共证书OV,2=公共证书EV" json:"type,omitempty"` EffectTime time.Time `gorm:"column:effect_time; type:timestamp; comment:生效时间" json:"effectTime,omitempty"` ExpireTime time.Time `gorm:"column:expire_time; type:timestamp; comment:失效时间" json:"expireTime,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp; comment:创建时间" json:"createTime,omitempty"` DeleteTime time.Time `gorm:"column:delete_time; type:timestamp; comment:删除标识" json:"deleteTime,omitempty"` }
TWinCert Windows证书信息表
type TWinSignJob ¶
type TWinSignJob struct { Id uint `gorm:"column:id; type:int unsigned; primaryKey; autoIncrement; comment:主码" json:"id,omitempty"` JobId string `gorm:"column:job_id; type:char(38) not null; comment:任务Id; uniqueIndex:idx_job_id" json:"jobId,omitempty"` AppId uint `` /* 127-byte string literal not displayed */ UserId uint `gorm:"column:user_id; type:int unsigned; comment:用户Id或凭证Id,外码" json:"userId,omitempty"` FileId string `gorm:"column:file_id; type:char(38); comment:文件Id" json:"fileId,omitempty"` TaskType uint8 `gorm:"column:task_type; type:tinyint unsigned; comment:任务类型,1=pe,2=hlk&whql,3=whql,4=sys" json:"taskType,omitempty"` CertOrganization string `gorm:"column:cert_organization; type:varchar(128); comment:证书组织" json:"certOrganization,omitempty"` Log string `gorm:"column:log; type:text; comment:签名输出日志" json:"log,omitempty"` HLKTestSystem string `gorm:"column:hlk_test_system; type:varchar(64); comment:测试系统版本" json:"hlkTestSystem,omitempty"` TmpFileId string `` /* 130-byte string literal not displayed */ SignedFileId string `gorm:"column:signed_file_id; type:char(38); comment:已签名文件Id" json:"signedFileId,omitempty"` Source uint8 `gorm:"column:source; type:tinyint unsigned; comment:来源,1=web,2=api" json:"source,omitempty"` CreateTime time.Time `gorm:"column:create_time; type:timestamp not null; comment:创建时间" json:"createTime,omitempty"` FinishTime time.Time `gorm:"column:finish_time; type:timestamp; comment:结束时间" json:"finishTime,omitempty"` Status uint8 `` /* 148-byte string literal not displayed */ }
TWinSignJob Windows签名任务表
func (*TWinSignJob) TableName ¶
func (*TWinSignJob) TableName() string
Source Files ¶
- t_android_cert.go
- t_android_cert_org.go
- t_android_sign_job.go
- t_app.go
- t_apple_account.go
- t_apple_bundle.go
- t_apple_bundle_capability.go
- t_apple_bundle_relation.go
- t_apple_cert.go
- t_apple_device.go
- t_apple_profile.go
- t_apple_sign_job.go
- t_authorization.go
- t_authorization_action.go
- t_authorization_action_relation.go
- t_event.go
- t_file.go
- t_notice.go
- t_todo.go
- t_todo_approver.go
- t_user.go
- t_user_role.go
- t_win_cert.go
- t_win_sign_job.go
Click to show internal directories.
Click to hide internal directories.