Documentation ¶
Index ¶
- type AppCardRechargeReq
- type AppCardRechargeRes
- type AppCardUnbindReq
- type AppCardUnbindRes
- type CardAddReq
- type CardAddRes
- type CardDelReq
- type CardDelRes
- type CardDownloadTemplateReq
- type CardDownloadTemplateRes
- type CardEditReq
- type CardEditRes
- type CardFreezeCardReq
- type CardFreezeCardRes
- type CardHeartbeatReq
- type CardHeartbeatRes
- type CardImportReq
- type CardImportRes
- type CardListReq
- type CardListRes
- type CardListResEntity
- type CardLoginReq
- type CardLoginRes
- type CardQuickRechargeReq
- type CardQuickRechargeRes
- type CardServerTimeReq
- type CardServerTimeRes
- type CardSessionListItem
- type CardSessionListReq
- type CardSessionListRes
- type CardUnbindAllReq
- type CardUnbindAllRes
- type LatestVersionReq
- type LatestVersionRes
- type OfflineCardSessionReq
- type OfflineCardSessionRes
- type Software
- type SoftwareAddReq
- type SoftwareAddRes
- type SoftwareDelReq
- type SoftwareDelRes
- type SoftwareEditReq
- type SoftwareEditRes
- type SoftwareGetReq
- type SoftwareGetRes
- type SoftwareListReq
- type SoftwareListRes
- type SoftwareReq
- type VersionAddReq
- type VersionAddRes
- type VersionDelReq
- type VersionDelRes
- type VersionEditReq
- type VersionEditRes
- type VersionInfo
- type VersionListEntity
- type VersionListReq
- type VersionListRes
- type VersionReleaseReq
- type VersionReleaseRes
- type VersionRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCardRechargeReq ¶
type AppCardRechargeReq struct { g.Meta `path:"/recharge" tags:"卡密管理" method:"post" summary:"以卡充卡"` CardCode string `p:"cardCode" v:"required#卡号不能为空"` CardCode2 string `p:"cardCode2" v:"required#卡号不能为空"` // card2的时间加到card1上 Timestamp int64 `p:"timestamp" v:"required#参数错误,时间不能为空"` Sign string `p:"sign" v:"required#参数签名错误"` }
type AppCardRechargeRes ¶
type AppCardUnbindReq ¶
type AppCardUnbindReq struct { g.Meta `path:"/unbind" tags:"卡密管理" method:"post" summary:"卡密解绑"` CardCode string `p:"cardCode" v:"required#参数错误,卡密ID不能为空"` DeviceCode string `p:"deviceCode" v:"required#参数错误,设备编号不能为空"` Timestamp int64 `p:"timestamp" v:"required#参数错误,时间不能为空"` Sign string `p:"sign" v:"required#参数签名错误"` }
type AppCardUnbindRes ¶
type CardAddReq ¶
type CardAddReq struct { g.Meta `path:"/add" tags:"卡密管理" method:"post" summary:"添加卡密"` SoftwareId int64 `p:"softwareId" v:"required#参数错误,软件ID不能为空"` CardType int `p:"cardType" v:"required#参数错误,请选择卡密类型"` CardValue int `p:"cardValue" v:"required#参数错误,请输入卡密面值"` UnbindCount int `p:"unbindCount" d:"5"` GenCount int `p:"genCount" d:"1"` Comment string `p:"comment"` Customize int `p:"customize"` KeyPrefix string `p:"keyPrefix" v:"regex:[a-zA-Z]#卡密前缀只能是字母"` MultiOnline int `p:"multiOnline"` IsReplace int `p:"isReplace"` }
type CardAddRes ¶
type CardDelReq ¶
type CardDelRes ¶
type CardDownloadTemplateReq ¶
type CardDownloadTemplateRes ¶
type CardEditReq ¶
type CardEditRes ¶
type CardFreezeCardReq ¶
type CardFreezeCardRes ¶
type CardHeartbeatReq ¶
type CardHeartbeatRes ¶
type CardImportReq ¶
type CardImportReq struct { g.Meta `path:"/import" tags:"卡密管理" method:"post" summary:"导入卡密"` File *ghttp.UploadFile `p:"file" type:"file"` }
type CardImportRes ¶
type CardListReq ¶
type CardListRes ¶
type CardListRes struct { g.Meta `mime:"application/json"` Total int `json:"total"` List *[]CardListResEntity `json:"list"` }
type CardListResEntity ¶
type CardListResEntity struct { entity.VerifyCard SoftwareName string `json:"softwareName"` }
type CardLoginReq ¶
type CardLoginReq struct { g.Meta `path:"/login" tags:"卡密验证" method:"post" summary:"卡密登录"` SecretId string `p:"secretId" v:"required#参数错误,secretId不能为空"` CardCode string `p:"cardCode" v:"required#参数错误,卡密不能为空"` DeviceCode string `p:"deviceCode" v:"required#参数错误,设备ID不能为空"` DeviceName string `p:"deviceName"` Nonce string `p:"nonce" v:"required#参数错误,Nonce不能为空"` Sign string `p:"sign" v:"required#参数错误,签名不能为空"` }
type CardLoginRes ¶
type CardLoginRes struct { g.Meta `mime:"application/json"` CardType string `json:"cardType"` Expires *gtime.Time `json:"expires"` ExpiresTs int64 `json:"expiresTs"` Heartbeat int `json:"heartbeat"` Remark string `json:"remark"` ServerTimestamp string `json:"serverTimestamp"` Token string `json:"token"` Version VersionInfo `json:"version"` }
type CardQuickRechargeReq ¶
type CardQuickRechargeRes ¶
type CardServerTimeReq ¶
type CardServerTimeRes ¶
type CardSessionListItem ¶
type CardSessionListItem struct { entity.VerifyCardSession CardCode string `json:"cardCode"` DeviceCode string `json:"deviceCode"` DeviceName string `json:"deviceName"` }
type CardSessionListReq ¶
type CardSessionListRes ¶
type CardSessionListRes struct { g.Meta `mime:"application/json"` Total int `json:"total"` List *[]CardSessionListItem `json:"list"` }
type CardUnbindAllReq ¶
type CardUnbindAllRes ¶
type LatestVersionReq ¶
type LatestVersionRes ¶
type LatestVersionRes struct { g.Meta `mime:"application/json"` VersionRes }
type OfflineCardSessionReq ¶
type OfflineCardSessionRes ¶
type Software ¶
type Software struct {
entity.VerifySoftware
}
type SoftwareAddReq ¶
type SoftwareAddReq struct { g.Meta `path:"/add" tags:"软件管理" method:"post" summary:"添加软件"` *SoftwareReq }
type SoftwareAddRes ¶
type SoftwareDelReq ¶
type SoftwareDelRes ¶
type SoftwareDelRes struct {
Result string `json:"result"`
}
type SoftwareEditReq ¶
type SoftwareEditReq struct { g.Meta `path:"/edit" tags:"软件管理" method:"put" summary:"编辑软件"` Id int64 `p:"id" v:"required#参数错误,id不能为空"` *SoftwareReq }
type SoftwareEditRes ¶
type SoftwareGetReq ¶
type SoftwareGetRes ¶
type SoftwareGetRes struct {
*entity.VerifySoftware
}
type SoftwareListReq ¶
type SoftwareListRes ¶
type SoftwareReq ¶
type SoftwareReq struct { SoftwareName string `p:"softwareName" v:"bail|required|length:1,30#|请输入软件名称|软件名称长度应该在 1 到 30 之间"` // 软件名称 SoftwareStatus int `p:"softwareStatus" d:"1"` // 软件状态 CardLength int `p:"cardLength" v:"bail|required|min:8#|请输入密钥长度|密钥长度最少为8位" d:"10"` // 密钥长度 EncryptType string `p:"encryptType" d:"AES"` // 加密方式 AES RSA MD5 KeyPrefix string `p:"keyPrefix" v:"bail|length:1,5|regex:[a-zA-Z]#|密钥前缀长度不能超过5位|密钥前缀只能为大小写字母"` // 密钥前缀 MultiOnline int `p:"multiOnline" d:"20"` // 设备上限 IsReplace int `p:"isReplace" d:"0"` // 是否顶号登录 1 是 0 否 Heartbeat int `p:"heartbeat" v:"bail|required#|心跳间隔不能为空" d:"5"` // 心跳间隔 OpenTrial int `p:"openTrial" d:"0"` // 开启试用 1 是 0 否 TrialCount int `p:"trialCount" d:"0"` // 试用次数 TrialTime int `p:"trialTime" d:"0"` // 试用时间(分钟) TrialDuration int `p:"trialDuration" d:"0"` // 每次试用间隔 Comment string `p:"comment"` // 软件备注 }
type VersionAddReq ¶
type VersionAddReq struct { g.Meta `path:"/add" tags:"版本管理" method:"post" summary:"添加版本"` SoftwareId int64 `p:"softwareId" v:"required#参数错误,软件ID不能为空"` IsPublish int `p:"isPublish"` VersionNumber string `p:"versionNumber" v:"required#参数错误,版本号不能为空"` StoreType int `p:"storeType" v:"required#参数错误,存储类型不能为空"` Link string `p:"link" v:"required#参数错误,下载链接不能为空"` Password string `p:"password"` Comment string `p:"comment"` }
type VersionAddRes ¶
type VersionDelReq ¶
type VersionDelRes ¶
type VersionEditReq ¶
type VersionEditReq struct { g.Meta `path:"/edit" tags:"版本管理" method:"put" summary:"编辑版本"` Id int64 `p:"idd" v:"required#参数错误,版本ID不能为空"` IsPublish int `p:"isPublish"` VersionNumber string `p:"versionNumber" v:"required#参数错误,版本号不能为空"` StoreType int `p:"storeType" v:"required#参数错误,存储类型不能为空"` Link string `p:"link" v:"required#参数错误,下载链接不能为空"` Password string `p:"password"` Comment string `p:"comment"` }
type VersionEditRes ¶
type VersionInfo ¶
type VersionListEntity ¶
type VersionListEntity struct { Ver *entity.VerifyVersion Att *entity.VerifyAttachment Software *entity.VerifySoftware }
type VersionListReq ¶
type VersionListRes ¶
type VersionReleaseReq ¶
type VersionReleaseRes ¶
Click to show internal directories.
Click to hide internal directories.