types.go 2.8 KB

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