// 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 string `json:"port,optional"` Iden string `json:"iden,optional"` KeyIden string `json:"keyIden,optional"` KeyAlgo string `json:"keyAlgo,optional"` Status string `json:"status,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"` } 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 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 string `json:"port"` Iden string `json:"iden"` KeyIden string `json:"keyIden"` KeyAlgo string `json:"keyAlgo"` Status string `json:"status"` CreateAt string `json:"createAt"` } 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 string `json:"port,optional"` Iden string `json:"iden,optional"` KeyIden string `json:"keyIden,optional"` KeyAlgo string `json:"keyAlgo,optional"` Status string `json:"status,optional"` }