h5_api.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package apis
  2. type TGdH5Api struct {
  3. Id int64 `json:"h5_api_id"`
  4. Name string `json:"h5_api_name"`
  5. Router string `json:"h5_api_router"`
  6. Host string `json:"h5_api_host"`
  7. IsEnable bool `json:"is_enable"`
  8. UpdateTime string `json:"update_time"`
  9. CreateTime string `json:"create_time"`
  10. }
  11. type TGdH5BaseApiRelation struct {
  12. Id int64
  13. H5ApiId int64 `json:"h5_api_id"`
  14. ApiId int64 `json:"api_id"`
  15. }
  16. type ManagementAddH5ApiReq struct {
  17. Name string `json:"h5_api_name"`
  18. Router string `json:"h5_api_router"`
  19. Host string `json:"h5_api_host"`
  20. }
  21. type ManagementAddH5ApiReply struct {
  22. H5ApiId int64 `json:"h5_api_id"`
  23. }
  24. type ManagementDelH5ApiReq struct {
  25. H5ApiId int64 `json:"h5_api_id"`
  26. }
  27. type ManagementDelH5ApiReply struct {
  28. }
  29. type ManagementUpdateH5ApiReq struct {
  30. H5ApiId int64 `json:"h5_api_id"`
  31. Name string `json:"h5_api_name"`
  32. Router string `json:"h5_api_router"`
  33. Host string `json:"h5_api_host"`
  34. }
  35. type ManagementUpdateH5ApiReply struct {
  36. }
  37. type ManagementSetH5ApiStateReq struct {
  38. H5ApiId int64 `json:"h5_api_id"`
  39. IsEnable bool `json:"is_enable"`
  40. }
  41. type ManagementSetH5ApiStateReply struct {
  42. }
  43. type ManagementGetH5ApiListReq struct {
  44. PageNumber int `json:"page_number" description:""`
  45. IsAll bool `json:"is_all"`
  46. }
  47. type ManagementGetH5ApiListReply struct {
  48. Total int `json:"total" description:""`
  49. PageNumber int `json:"page_number" description:""`
  50. PageSize int `json:"page_size" description:""`
  51. H5ApiList []TGdH5Api `json:"h5_api_list"`
  52. }
  53. type ManagementH5ApiAddBaseApiReq struct {
  54. H5ApiId int64 `json:"h5_api_id"`
  55. BaseApiIds []int64 `json:"base_api_ids"`
  56. }
  57. type ManagementH5ApiAddBaseApiReply struct {
  58. }
  59. type ManagementH5ApiGetBaseApiListReq struct {
  60. H5ApiId int64 `json:"h5_api_id"`
  61. }
  62. type H5ApiBaseApiItem struct {
  63. ApiId string `json:"api_id"`
  64. ApiName string `json:"api_name"`
  65. ApiRouter string `json:"router"`
  66. }
  67. type ManagementH5ApiGetBaseApiListReply struct {
  68. BaseApiList []H5ApiBaseApiItem `json:"base_api_list"`
  69. }