types.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Code generated by goctl. DO NOT EDIT.
  2. // goctl 1.10.2
  3. package types
  4. type CreateDirectoryReq struct {
  5. Id int64 `json:"id,optional"`
  6. ServiceId int64 `json:"serviceId,optional"`
  7. Directory string `json:"directory,optional"`
  8. }
  9. type CreateKeyReq struct {
  10. Name string `json:"name"`
  11. }
  12. type CreateServiceReq struct {
  13. Id int64 `json:"id,optional"`
  14. Name string `json:"name,optional"`
  15. Ip string `json:"ip,optional"`
  16. Port string `json:"port,optional"`
  17. Iden string `json:"iden,optional"`
  18. KeyIden string `json:"keyIden,optional"`
  19. KeyAlgo string `json:"keyAlgo,optional"`
  20. Status string `json:"status,optional"`
  21. Directories []string `json:"directories,optional"`
  22. }
  23. type DbPingResponse struct {
  24. Ok bool `json:"ok"`
  25. Version string `json:"version"`
  26. Database string `json:"database"`
  27. }
  28. type DeleteResp struct {
  29. Ok bool `json:"ok"`
  30. }
  31. type DirectoryIdReq struct {
  32. Id int64 `path:"id"`
  33. }
  34. type DirectoryListResp struct {
  35. List []DirectoryResp `json:"list"`
  36. Total int64 `json:"total"`
  37. }
  38. type DirectoryResp struct {
  39. Id int64 `json:"id"`
  40. ServiceId int64 `json:"serviceId"`
  41. Directory string `json:"directory"`
  42. }
  43. type KeyIdReq struct {
  44. Id int64 `json:"id"`
  45. }
  46. type KeyListResp struct {
  47. List []KeyResp `json:"list"`
  48. Total int64 `json:"total"`
  49. }
  50. type KeyResp struct {
  51. Id int64 `json:"id"`
  52. Iden string `json:"iden"`
  53. Name string `json:"name"`
  54. Content string `json:"content"`
  55. Status string `json:"status"`
  56. CreateAt string `json:"createAt"`
  57. }
  58. type ListDirectoryReq struct {
  59. Page int64 `form:"page,optional"`
  60. PageSize int64 `form:"pageSize,optional"`
  61. }
  62. type ListKeysReq struct {
  63. Page int64 `json:"page,optional"`
  64. PageSize int64 `json:"pageSize,optional"`
  65. Name string `json:"name,optional"`
  66. Status string `json:"status,optional"`
  67. }
  68. type ListServiceReq struct {
  69. Page int64 `form:"page,optional"`
  70. PageSize int64 `form:"pageSize,optional"`
  71. }
  72. type Request struct {
  73. Name string `path:"name,options=you|me"`
  74. }
  75. type Response struct {
  76. Message string `json:"message"`
  77. }
  78. // 本地目录懒加载(udeServer 所在 Linux 主机文件系统,只列目录不列文件)
  79. type ListDirChildrenReq struct {
  80. Ip string `form:"ip"` // 目标 Linux 主机 IP
  81. Port string `form:"port"`
  82. Path string `form:"path"` // 空或 "/" 表示根目录
  83. }
  84. type LocalDirNode struct {
  85. Name string `json:"name"` // 目录名,如 "usr"
  86. Path string `json:"path"` // 完整绝对路径,如 "/usr"
  87. IsDir bool `json:"isDir"` // 恒 true
  88. HasChildren bool `json:"hasChildren"` // 是否含子目录(前端据此决定是否显示展开箭头)
  89. }
  90. type DirChildrenResp struct {
  91. Nodes []LocalDirNode `json:"nodes"`
  92. }
  93. type ServiceIdReq struct {
  94. Id int64 `path:"id"`
  95. }
  96. type ServiceListResp struct {
  97. List []ServiceResp `json:"list"`
  98. Total int64 `json:"total"`
  99. }
  100. type ServiceResp struct {
  101. Id int64 `json:"id"`
  102. Name string `json:"name"`
  103. Ip string `json:"ip"`
  104. Port string `json:"port"`
  105. Iden string `json:"iden"`
  106. KeyIden string `json:"keyIden"`
  107. KeyAlgo string `json:"keyAlgo"`
  108. Status string `json:"status"`
  109. CreateAt string `json:"createAt"`
  110. }
  111. type UpdateDirectoryReq struct {
  112. Id int64 `path:"id"`
  113. ServiceId int64 `json:"serviceId,optional"`
  114. Directory string `json:"directory,optional"`
  115. }
  116. type UpdateKeyReq struct {
  117. Id int64 `json:"id"`
  118. Status string `json:"status"`
  119. }
  120. type UpdateServiceReq struct {
  121. Id int64 `path:"id"`
  122. Name string `json:"name,optional"`
  123. Ip string `json:"ip,optional"`
  124. Port string `json:"port,optional"`
  125. Iden string `json:"iden,optional"`
  126. KeyIden string `json:"keyIden,optional"`
  127. KeyAlgo string `json:"keyAlgo,optional"`
  128. Status string `json:"status,optional"`
  129. }