types.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. Path string `form:"path"` // 空或 "/" 表示根目录
  81. }
  82. type LocalDirNode struct {
  83. Name string `json:"name"` // 目录名,如 "usr"
  84. Path string `json:"path"` // 完整绝对路径,如 "/usr"
  85. IsDir bool `json:"isDir"` // 恒 true
  86. HasChildren bool `json:"hasChildren"` // 是否含子目录(前端据此决定是否显示展开箭头)
  87. }
  88. type DirChildrenResp struct {
  89. Nodes []LocalDirNode `json:"nodes"`
  90. }
  91. type ServiceIdReq struct {
  92. Id int64 `path:"id"`
  93. }
  94. type ServiceListResp struct {
  95. List []ServiceResp `json:"list"`
  96. Total int64 `json:"total"`
  97. }
  98. type ServiceResp struct {
  99. Id int64 `json:"id"`
  100. Name string `json:"name"`
  101. Ip string `json:"ip"`
  102. Port string `json:"port"`
  103. Iden string `json:"iden"`
  104. KeyIden string `json:"keyIden"`
  105. KeyAlgo string `json:"keyAlgo"`
  106. Status string `json:"status"`
  107. CreateAt string `json:"createAt"`
  108. }
  109. type UpdateDirectoryReq struct {
  110. Id int64 `path:"id"`
  111. ServiceId int64 `json:"serviceId,optional"`
  112. Directory string `json:"directory,optional"`
  113. }
  114. type UpdateKeyReq struct {
  115. Id int64 `json:"id"`
  116. Status string `json:"status"`
  117. }
  118. type UpdateServiceReq struct {
  119. Id int64 `path:"id"`
  120. Name string `json:"name,optional"`
  121. Ip string `json:"ip,optional"`
  122. Port string `json:"port,optional"`
  123. Iden string `json:"iden,optional"`
  124. KeyIden string `json:"keyIden,optional"`
  125. KeyAlgo string `json:"keyAlgo,optional"`
  126. Status string `json:"status,optional"`
  127. }