types.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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"`
  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"`
  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. }
  22. type DbPingResponse struct {
  23. Ok bool `json:"ok"`
  24. Version string `json:"version"`
  25. Database string `json:"database"`
  26. }
  27. type DeleteResp struct {
  28. Ok bool `json:"ok"`
  29. }
  30. type DirectoryIdReq struct {
  31. Id int64 `path:"id"`
  32. }
  33. type DirectoryListResp struct {
  34. List []DirectoryResp `json:"list"`
  35. Total int64 `json:"total"`
  36. }
  37. type DirectoryResp struct {
  38. Id int64 `json:"id"`
  39. ServiceId int64 `json:"serviceId"`
  40. Directory string `json:"directory"`
  41. }
  42. type KeyIdReq struct {
  43. Id int64 `path:"id"`
  44. }
  45. type KeyListResp struct {
  46. List []KeyResp `json:"list"`
  47. Total int64 `json:"total"`
  48. }
  49. type KeyResp struct {
  50. Id int64 `json:"id"`
  51. Iden string `json:"iden"`
  52. Name string `json:"name"`
  53. Content string `json:"content"`
  54. Status string `json:"status"`
  55. CreateAt string `json:"createAt"`
  56. }
  57. type ListDirectoryReq struct {
  58. Page int64 `form:"page,optional"`
  59. PageSize int64 `form:"pageSize,optional"`
  60. }
  61. type ListKeysReq struct {
  62. Page int64 `form:"page,optional"`
  63. PageSize int64 `form:"pageSize,optional"`
  64. }
  65. type ListServiceReq struct {
  66. Page int64 `form:"page,optional"`
  67. PageSize int64 `form:"pageSize,optional"`
  68. }
  69. type Request struct {
  70. Name string `path:"name,options=you|me"`
  71. }
  72. type Response struct {
  73. Message string `json:"message"`
  74. }
  75. type ServiceIdReq struct {
  76. Id int64 `path:"id"`
  77. }
  78. type ServiceListResp struct {
  79. List []ServiceResp `json:"list"`
  80. Total int64 `json:"total"`
  81. }
  82. type ServiceResp struct {
  83. Id int64 `json:"id"`
  84. Name string `json:"name"`
  85. Ip string `json:"ip"`
  86. Port string `json:"port"`
  87. Iden string `json:"iden"`
  88. KeyIden string `json:"keyIden"`
  89. KeyAlgo string `json:"keyAlgo"`
  90. Status string `json:"status"`
  91. CreateAt string `json:"createAt"`
  92. }
  93. type UpdateDirectoryReq struct {
  94. Id int64 `path:"id"`
  95. ServiceId int64 `json:"serviceId,optional"`
  96. Directory string `json:"directory,optional"`
  97. }
  98. type UpdateKeyReq struct {
  99. Id int64 `path:"id"`
  100. Iden string `json:"iden,optional"`
  101. Name string `json:"name,optional"`
  102. Content string `json:"content,optional"`
  103. Status string `json:"status,optional"`
  104. }
  105. type UpdateServiceReq struct {
  106. Id int64 `path:"id"`
  107. Name string `json:"name,optional"`
  108. Ip string `json:"ip,optional"`
  109. Port string `json:"port,optional"`
  110. Iden string `json:"iden,optional"`
  111. KeyIden string `json:"keyIden,optional"`
  112. KeyAlgo string `json:"keyAlgo,optional"`
  113. Status string `json:"status,optional"`
  114. }