types.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 `json:"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 `json:"page,optional"`
  63. PageSize int64 `json:"pageSize,optional"`
  64. Name string `json:"name,optional"`
  65. Status string `json:"status,optional"`
  66. }
  67. type ListServiceReq struct {
  68. Page int64 `form:"page,optional"`
  69. PageSize int64 `form:"pageSize,optional"`
  70. }
  71. type Request struct {
  72. Name string `path:"name,options=you|me"`
  73. }
  74. type Response struct {
  75. Message string `json:"message"`
  76. }
  77. type ServiceIdReq struct {
  78. Id int64 `path:"id"`
  79. }
  80. type ServiceListResp struct {
  81. List []ServiceResp `json:"list"`
  82. Total int64 `json:"total"`
  83. }
  84. type ServiceResp struct {
  85. Id int64 `json:"id"`
  86. Name string `json:"name"`
  87. Ip string `json:"ip"`
  88. Port string `json:"port"`
  89. Iden string `json:"iden"`
  90. KeyIden string `json:"keyIden"`
  91. KeyAlgo string `json:"keyAlgo"`
  92. Status string `json:"status"`
  93. CreateAt string `json:"createAt"`
  94. }
  95. type UpdateDirectoryReq struct {
  96. Id int64 `path:"id"`
  97. ServiceId int64 `json:"serviceId,optional"`
  98. Directory string `json:"directory,optional"`
  99. }
  100. type UpdateKeyReq struct {
  101. Id int64 `json:"id"`
  102. Status string `json:"status"`
  103. }
  104. type UpdateServiceReq struct {
  105. Id int64 `path:"id"`
  106. Name string `json:"name,optional"`
  107. Ip string `json:"ip,optional"`
  108. Port string `json:"port,optional"`
  109. Iden string `json:"iden,optional"`
  110. KeyIden string `json:"keyIden,optional"`
  111. KeyAlgo string `json:"keyAlgo,optional"`
  112. Status string `json:"status,optional"`
  113. }