| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- // Code generated by goctl. DO NOT EDIT.
- // goctl 1.10.2
- package types
- type ApplicationCredentials struct {
- Id int64 `json:"id"`
- CredIden string `json:"credIden"`
- Name string `json:"name"`
- ApiKey string `json:"apiKey"`
- ApiSecret string `json:"apiSecret"` // 掩码后的密钥,原文走下发接口
- Status int `json:"status"` // 启用状态:1.启用;2.禁用
- Description string `json:"description"`
- CreatedBy string `json:"createdBy"`
- CreatedAt string `json:"createdAt"`
- UpdatedBy string `json:"updatedBy"`
- UpdatedAt string `json:"updatedAt"`
- }
- type ApplicationCredentialsAddReq struct {
- Name string `json:"name"` // 应用名称
- Status int `json:"status,optional"` // 应用状态(1启用,2禁用),缺省启用
- Description string `json:"description,optional"` // 应用描述
- }
- type ApplicationCredentialsAddResp struct {
- Iden string `json:"iden"` // 应用凭证标识
- }
- type ApplicationCredentialsDeleteReq struct {
- Id int64 `json:"id"`
- }
- type ApplicationCredentialsDeleteResp struct {
- Iden string `json:"iden"` // 应用凭证标识
- }
- type ApplicationCredentialsDistributeReq struct {
- Id int64 `json:"id"`
- }
- type ApplicationCredentialsDistributeResp struct {
- ApiSecret string `json:"apiSecret"` // 应用凭证密钥(明文,仅下发接口返回)
- }
- type ApplicationCredentialsResetReq struct {
- Id int64 `json:"id"`
- }
- type ApplicationCredentialsResetResp struct {
- Iden string `json:"iden"` // 应用凭证标识
- }
- type ApplicationCredentialsUpdateStatusReq struct {
- Id int64 `json:"id"`
- }
- type ApplicationCredentialsUpdateStatusResp struct {
- Iden string `json:"iden"` // 应用凭证标识
- }
- type ApplicationListReq struct {
- Status int64 `json:"status,optional"` // 启用状态筛选
- CredIden string `json:"credIden,optional"` // 应用凭证标识筛选
- Name string `json:"name,optional"` // 应用名称模糊筛选
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type ApplicationListResp struct {
- Total int64 `json:"total"`
- ApplicationLists []ApplicationCredentials `json:"applicationLists"`
- }
- type AuditResult struct {
- LogIden string `json:"logIden"`
- Valid bool `json:"valid"`
- Reason string `json:"reason"`
- }
- type ClearCacheResp struct {
- Name string `json:"name"` // 页面标题(复位后为空)
- Logo string `json:"logo"` // logo(复位后为空)
- }
- type Config struct {
- Id int64 `json:"id"` // 主键
- ConfigItem string `json:"configItem"` // 配置项
- ConfigValue string `json:"configValue"` // 配置值
- EditFlag int64 `json:"editFlag"` // 是否可编辑:1=禁止编辑(配置项名锁定);2=允许编辑
- Description string `json:"descritpion"` // 描述(字段名 descritpion 沿袭 sdf 契约)
- UpdatedBy string `json:"updatedBy"` // 更新人
- UpdatedAt string `json:"updatedAt"` // 更新时间
- }
- type ConfigAddReq struct {
- ConfigItem string `json:"configItem"` // 配置项
- ConfigValue string `json:"configValue"` // 配置值
- Description string `json:"description,optional"` // 描述
- }
- type ConfigAddResp struct {
- Id int64 `json:"id"`
- }
- type ConfigDeleteReq struct {
- Id int64 `json:"id"`
- }
- type ConfigDeleteResp struct {
- Id int64 `json:"id"`
- }
- type ConfigListReq struct {
- ConfigItem string `json:"configItem,optional"` // 配置项精确筛选
- Description string `json:"description,optional"` // 描述模糊筛选
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type ConfigListResp struct {
- Total int64 `json:"total"`
- Configs []Config `json:"configs"`
- }
- type ConfigUpdateReq struct {
- Id int64 `json:"id"` // 配置ID
- ConfigItem string `json:"configItem"` // 配置项
- ConfigValue string `json:"configValue"` // 配置值
- Description string `json:"description,optional"` // 描述
- }
- type ConfigUpdateResp struct {
- Id int64 `json:"id"`
- }
- type CreateDirectoryReq struct {
- Id int64 `json:"id,optional"`
- ServiceId int64 `json:"serviceId,optional"`
- Directory string `json:"directory,optional"`
- }
- type CreateKeyReq struct {
- Name string `json:"name"`
- }
- type CreateServiceReq struct {
- Id int64 `json:"id,optional"`
- Name string `json:"name,optional"`
- Ip string `json:"ip,optional"`
- Port int64 `json:"port,optional"`
- Iden string `json:"iden,optional"`
- KeyIden string `json:"keyIden,optional"`
- KeyAlgo string `json:"keyAlgo,optional"`
- Status string `json:"status,optional"`
- Brush int64 `json:"brush,optional"`
- Directories []string `json:"directories,optional"`
- }
- type DbPingResponse struct {
- Ok bool `json:"ok"`
- Version string `json:"version"`
- Database string `json:"database"`
- }
- type DeleteResp struct {
- Ok bool `json:"ok"`
- UnmountWarning string `json:"unmountWarning,optional"`
- }
- type DirChildrenResp struct {
- Nodes []LocalDirNode `json:"nodes"`
- }
- type DirectoryIdReq struct {
- Id int64 `path:"id"`
- }
- type DirectoryListResp struct {
- List []DirectoryResp `json:"list"`
- Total int64 `json:"total"`
- }
- type DirectoryResp struct {
- Id int64 `json:"id"`
- ServiceId int64 `json:"serviceId"`
- Directory string `json:"directory"`
- }
- type GetCacheResp struct {
- Name string `json:"name"` // 页面标题
- Logo string `json:"logo"` // logo
- }
- type KeyIdReq struct {
- Id int64 `json:"id"`
- }
- type KeyListResp struct {
- List []KeyResp `json:"list"`
- Total int64 `json:"total"`
- }
- type KeyResp struct {
- Id int64 `json:"id"`
- Iden string `json:"iden"`
- Name string `json:"name"`
- Content string `json:"content"`
- Status string `json:"status"`
- CreateAt string `json:"createAt"`
- }
- type ListDirChildrenReq struct {
- Ip string `form:"ip"` // 目标 Linux 主机 IP
- Port string `form:"port"` // 目标主机 /api/v1 端口
- Path string `form:"path"` // 空或 "/" 表示根目录
- Iden string `form:"iden,optional"` // 接入标识:转发外挂时作为 X-TOKEN 头的值;外挂 /path/lists 已免鉴权,未选接入标识(空值)也放行
- }
- type ListDirectoryReq struct {
- Page int64 `form:"page,optional"`
- PageSize int64 `form:"pageSize,optional"`
- }
- type ListKeysReq struct {
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- Name string `json:"name,optional"`
- Status string `json:"status,optional"`
- }
- type ListServiceReq struct {
- Page int64 `form:"page,optional"`
- PageSize int64 `form:"pageSize,optional"`
- }
- type LocalDirNode struct {
- Name string `json:"name"` // 目录名,如 "usr"
- Path string `json:"path"` // 完整绝对路径,如 "/usr"
- IsDir bool `json:"isDir"` // 恒 true
- HasChildren bool `json:"hasChildren"` // 是否含子目录(前端据此决定是否显示展开箭头)
- }
- type LogArchive struct {
- Id int64 `json:"id"`
- ArchiveName string `json:"archiveName"`
- RecordCount int64 `json:"recordCount"`
- ArchiveFileKey string `json:"archiveFileKey"`
- ArchiveMode int `json:"archiveMode"` // 归档模式:1.手动,2.自动
- BatchSize int `json:"batchSize"`
- ArchivedBy string `json:"archivedBy"`
- ArchivedAt string `json:"archivedAt"`
- }
- type LogArchiveDownloadReq struct {
- Ids []int64 `json:"ids"`
- }
- type LogArchiveListReq struct {
- ArchiveName string `json:"archiveName,optional"`
- ArchivedBy string `json:"archivedBy,optional"`
- ArchivedStartTime string `json:"archivedStartTime,optional"`
- ArchivedEndTime string `json:"archivedEndTime,optional"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type LogArchiveListResp struct {
- Total int64 `json:"total"`
- LogArchives []LogArchive `json:"logArchives"`
- }
- type LogArchiveRestoreReq struct {
- Ids []int64 `json:"ids"`
- }
- type LogArchiveRestoreResp struct {
- RestoreMsg string `json:"restoreMsg"`
- }
- type LogRestore struct {
- Id int64 `json:"id"`
- ArchiveId int64 `json:"archiveId"`
- RestoreStatus int `json:"restoreStatus"` // 1.成功,2.失败,3.恢复中
- RestoreMessage string `json:"restoreMessage"`
- RestoredBy string `json:"restoredBy"`
- RestoredAt string `json:"restoredAt"`
- }
- type LogRestoreListReq struct {
- RestoreStatus int64 `json:"restoreStatus,optional"`
- RestoreMessage string `json:"restoreMessage,optional"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type LogRestoreListResp struct {
- Total int64 `json:"total"`
- LogRestores []LogRestore `json:"logRestores"`
- }
- type PageCache struct {
- Name string `json:"name"` // 页面标题
- Logo string `json:"logo"` // logo 路径或编码
- }
- type Request struct {
- Name string `path:"name,options=you|me"`
- }
- type Response struct {
- Message string `json:"message"`
- }
- type ServiceIdReq struct {
- Id int64 `path:"id"`
- }
- type ServiceListResp struct {
- List []ServiceResp `json:"list"`
- Total int64 `json:"total"`
- }
- type ServiceResp struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Ip string `json:"ip"`
- Port int64 `json:"port"`
- Iden string `json:"iden"`
- KeyIden string `json:"keyIden"`
- KeyAlgo string `json:"keyAlgo"`
- Status string `json:"status"`
- CreateAt string `json:"createAt"`
- MountStatus string `json:"mountStatus,optional"`
- MountWarning string `json:"mountWarning,optional"`
- Brush int64 `json:"brush"`
- }
- type SetCacheReq struct {
- Name string `json:"name"` // 页面标题
- Logo string `json:"logo"` // logo
- }
- type SetCacheResp struct {
- Name string `json:"name"` // 页面标题
- Logo string `json:"logo"` // logo
- }
- type SystemLog struct {
- Id int64 `json:"id"` // 主键
- Iden string `json:"iden"` // 日志标识
- TraceId string `json:"traceId"` // 全链路TraceId
- SpanId string `json:"spanId"` // 子链路SpanId
- ParentSpanId string `json:"parentSpanId"` // 父SpanId
- Type int `json:"type"` // 日志类型:1.系统日志;2.接口日志
- ServiceName string `json:"serviceName"` // 所属服务名称/模块名称
- UriPath string `json:"uriPath"` // 接口请求路径
- HttpMethod string `json:"httpMethod"` // 请求方法
- Method string `json:"method"` // 业务方法名
- Level string `json:"level"` // 日志级别
- AppKey string `json:"appKey"` // 调用接口应用标识
- UserId string `json:"userId"` // 系统用户ID
- UserName string `json:"userName"` // 系统用户名
- ClientIp string `json:"clientIp"` // 客户端IP
- RequestHeader string `json:"requestHeader"` // 请求头
- RequestBodyDigest string `json:"requestBodyDigest"` // 请求体摘要
- RequestBodyFileKey string `json:"requestBodyFileKey"` // 请求体FileKey
- ResponseCode int64 `json:"responseCode"` // 响应业务码
- ResponseBodyDigest string `json:"responseBodyDigest"` // 响应体摘要
- ResponseBodyFileKey string `json:"responseBodyFileKey"` // 响应体FileKey
- ErrorMsg string `json:"errorMsg"` // 错误信息
- DurationMs int64 `json:"durationMs"` // 请求耗时
- CreatedAt string `json:"createdAt"` // 日志写入时间
- Hmac string `json:"hmac"` // Hmac值
- AuditStatus int `json:"auditStatus"` // 审计状态:1.未审计;2.审计通过;3.审计异常
- }
- type SystemLogArchiveReq struct {
- Name string `json:"name"` // 归档任务名称
- Ids []int64 `json:"ids,optional"` // 日志ID集合
- StartDate string `json:"startDate,optional"` // 归档开始日期
- EndDate string `json:"endDate,optional"` // 归档结束日期
- }
- type SystemLogArchiveResp struct {
- Count int `json:"count"`
- }
- type SystemLogAuditReq struct {
- Idens []string `json:"idens"`
- }
- type SystemLogAuditResp struct {
- TotalCount int64 `json:"totalCount"`
- ValidCount int64 `json:"validCount"`
- InValidCount int64 `json:"inValidCount"`
- AuditResults []AuditResult `json:"auditResults"`
- }
- type SystemLogDetailReq struct {
- Iden string `json:"iden"`
- }
- type SystemLogDetailResp struct {
- SystemLog
- }
- type SystemLogLinkReq struct {
- TraceId string `json:"traceId"`
- }
- type SystemLogLinkResp struct {
- LogLinks []SystemLog `json:"logLinks"`
- }
- type SystemLogListReq struct {
- Iden string `json:"iden,optional"` // 日志标识
- Type int64 `json:"type,optional"` // 日志类型
- UserName string `json:"userName,optional"` // 用户名称
- AppKey string `json:"appKey,optional"` // 应用标识
- UriPath string `json:"uriPath,optional"` // 接口请求路径
- HttpMethod string `json:"httpMethod,optional"` // 请求方式
- CreatedStartTime string `json:"createdStartTime,optional"` // 写入开始时间
- CreatedEndTime string `json:"createdEndTime,optional"` // 写入结束时间
- ClientIp string `json:"clientIp,optional"` // 客户端IP
- ErrorMsg string `json:"errorMsg,optional"` // 错误信息
- AuditStatus string `json:"auditStatus,optional"` // 审计状态
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type SystemLogListResp struct {
- Total int64 `json:"total"`
- Logs []SystemLog `json:"logs"`
- }
- type UpdateDirectoryReq struct {
- Id int64 `path:"id"`
- ServiceId int64 `json:"serviceId,optional"`
- Directory string `json:"directory,optional"`
- }
- type UpdateKeyReq struct {
- Id int64 `json:"id"`
- Status string `json:"status"`
- }
- type UpdateServiceReq struct {
- Id int64 `path:"id"`
- Name string `json:"name,optional"`
- Ip string `json:"ip,optional"`
- Port int64 `json:"port,optional"`
- Iden string `json:"iden,optional"`
- KeyIden string `json:"keyIden,optional"`
- KeyAlgo string `json:"keyAlgo,optional"`
- Status string `json:"status,optional"`
- Brush int64 `json:"brush,optional"`
- Directories []string `json:"directories,optional"`
- }
- type WSRequest struct {
- Action string `json:"action"` // 命令类型:ping;traceroute;telnet
- Target string `json:"target"` // IP或域名,ping/traceroute 用
- Count int `json:"count,optional"` // ping 次数,默认 4
- Host string `json:"host"` // telnet host
- Port int `json:"port"` // telnet port
- MaxHops int `json:"maxHops,optional"` // traceroute 最大跳数,默认 30
- }
- type WSResponse struct {
- Action string `json:"action"` // 命令类型
- Status string `json:"status"` // 状态:running;done;error
- Output string `json:"output"` // 输出信息
- }
|