// Code generated by goctl. DO NOT EDIT. // goctl 1.10.2 package types 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 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"` // 空或 "/" 表示根目录 Ip string `form:"ip"` // ip Port string `form:"port"` // port } type LocalDirNode struct { Name string `json:"name"` // 目录名,如 "usr" Path string `json:"path"` // 完整绝对路径,如 "/usr" IsDir bool `json:"isDir"` // 恒 true HasChildren bool `json:"hasChildren"` // 是否含子目录(前端据此决定是否显示展开箭头) } type DirChildrenResp struct { Nodes []LocalDirNode `json:"nodes"` } 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 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"` }