provider.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package apis
  2. type ProviderPlatform struct {
  3. Id int64 `json:"provider_id" description:"三方平台id"`
  4. PlatformName string `json:"platform_name" description:"平台名称"`
  5. Contact string `json:"contact" description:"联系方式"`
  6. Email string `json:"email" description:"邮件"`
  7. PlatformCode string `json:"platform_code" description:"平台代号"`
  8. Cost string `json:"cost" description:"花销" orm:"-"`
  9. CreateTime string `json:"create_time" description:""`
  10. UpdateTime string `json:"update_time" description:""`
  11. }
  12. func (o *ProviderPlatform) TableName() string {
  13. return "t_gd_provider"
  14. }
  15. type ManagementAddProviderPlatformReq struct {
  16. PlatformName string `json:"platform_name" description:"平台名称"`
  17. Contact string `json:"contact" description:"联系方式"`
  18. Email string `json:"email" description:"邮件"`
  19. PlatformCode string `json:"platform_code" description:"平台代号"`
  20. }
  21. type ManagementAddProviderPlatformReply struct {
  22. ProviderId int64 `json:"provider_id" description:""`
  23. }
  24. type ManagementDelProviderPlatformReq struct {
  25. ProviderId int64 `json:"provider_id" description:"三方平台id"`
  26. }
  27. type ManagementDelProviderPlatformReply struct {
  28. }
  29. type ManagementUpdateProviderPlatformReq struct {
  30. ProviderId int64 `json:"provider_id" description:"三方平台id"`
  31. PlatformName string `json:"platform_name" description:"平台名称"`
  32. Contact string `json:"contact" description:"联系方式"`
  33. Email string `json:"email" description:"邮件"`
  34. PlatformCode string `json:"platform_code" description:"平台代号"`
  35. }
  36. type ManagementUpdateProviderPlatformReply struct {
  37. }
  38. type ManagementGetProviderPlatformListReq struct {
  39. PageSize int `json:"page_size" description:"page大小"`
  40. PageNumber int `json:"page_number" description:""`
  41. Search string `json:"search"`
  42. IsAll bool `json:"is_all"`
  43. ProviderApiId int64 `json:"provider_api_id"`
  44. }
  45. type ManagementGetProviderPlatformListReply struct {
  46. Total int64 `json:"total" description:""`
  47. PageSize int `json:"page_size" description:"page大小"`
  48. PageNumber int `json:"page_number" description:""`
  49. ProviderPlatforms []ProviderPlatform `json:"provider_platforms"`
  50. }
  51. type ManagementGetNameReq struct {
  52. MerchantId int64 `json:"merchant_id"`
  53. ApiId int64 `json:"api_id"`
  54. ProviderApiId int64 `json:"provider_api_id"`
  55. H5ServiceId int64 `json:"h5_service_id"`
  56. H5ApiId int64 `json:"h5_api_id"`
  57. }
  58. type ManagementGetNameReply struct {
  59. MerchantName string `json:"merchant_name"`
  60. ApiName string `json:"api_name"`
  61. ProviderName string `json:"provider_name"`
  62. ProviderApiName string `json:"provider_api_name"`
  63. H5ServiceName string `json:"h5_service_name"`
  64. H5ApiName string `json:"h5_api_name"`
  65. ProviderId int64 `json:"provider_id"`
  66. }
  67. type ManagementGetSecretReq struct {
  68. AppKey string `json:"app_key"`
  69. }
  70. type ManagementGetSecretReply struct {
  71. AppSecret string `json:"app_secret"`
  72. }
  73. type ProviderBatchRequestReq struct {
  74. ApiId int `json:"api_id"`
  75. ApiName string `json:"api_name"`
  76. ThirdPartyHost string `json:"third_party_host"`
  77. ThirdPartyRouter string `json:"third_party_router"`
  78. Param []string `json:"param"`
  79. PlatformCode string `json:"platform_code"`
  80. }
  81. type ProviderBatchRequest struct {
  82. Param string `json:"param"`
  83. Response string `json:"response"`
  84. }
  85. type ProviderBatchRequestReply struct {
  86. List []ProviderBatchRequest
  87. }
  88. type ManagementDelProviderOldCountReq struct {
  89. Date string `json:"date"`
  90. }
  91. type ManagementDelProviderOldCountReply struct {
  92. }