| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- // Code generated by goctl. DO NOT EDIT.
- // goctl 1.10.2
- package types
- type AuditResult struct {
- LogIden string `json:"logIden"`
- Valid bool `json:"valid"`
- Reason string `json:"reason"`
- }
- 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"`
- // 一键刷库:0=否(默认),1=创建后自动下发刷库(存量明文加密,外挂侧能力就绪后生效)
- 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 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 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 Request struct {
- Name string `path:"name,options=you|me"`
- }
- type Response struct {
- Message string `json:"message"`
- }
- // 本地目录懒加载(udeServer 所在 Linux 主机文件系统,只列目录不列文件)
- type ListDirChildrenReq struct {
- Ip string `form:"ip"` // 目标 Linux 主机 IP
- Port string `form:"port"`
- Path string `form:"path"` // 空或 "/" 表示根目录
- }
- 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 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"`
- // 挂载状态: mounted=已挂载 unmounted=未挂载 failed=挂载失败
- MountStatus string `json:"mountStatus,optional"`
- // 挂载通知失败等非致命警告(如「服务已创建,但通知外挂程序挂载失败」),
- // 服务创建本身成功;前端收到后弹黄色警告,不弹红色错误。
- MountWarning string `json:"mountWarning,optional"`
- // 一键刷库配置:0=否(默认),1=是
- Brush int64 `json:"brush"`
- }
- 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"`
- // 一键刷库:0=否(默认),1=是。编辑只落库改配置,不追溯触发刷库(刷库编排仅在创建流程)。
- Brush int64 `json:"brush,optional"`
- // 编辑时全量提交保护目录列表(与新增同款后端收口模式):
- // nil = 未提交,不动目录;空数组 = 清空目录;非空 = 全量重写。
- // 落库与挂载联动(卸载被删目录/挂载新目录)由后端在同一接口完成。
- Directories []string `json:"directories,optional"`
- }
|