广告平台(站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md_set_center.go 3.5 KiB

4 weeks ago
20 hours ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package md
  2. type SetOssReq struct {
  3. FileAccessKey string `json:"file_access_key" binding:"required" example:"对象存储AccessToken"`
  4. FileSecretKey string `json:"file_secret_key" binding:"required" example:"对象存储SecretToken"`
  5. FileBucketHost string `json:"file_bucket_host" binding:"required" example:"对象存储域名"`
  6. FileBucketRegion string `json:"file_bucket_region" binding:"required" example:"文件所属区域"`
  7. FileBucket string `json:"file_bucket" binding:"required" example:"对象存储bucket(空间)"`
  8. }
  9. type SetOssResp struct {
  10. Data SetOssReq `json:"data"` //数据内容
  11. QiNiuBucketRegionList []QiNiuBucketRegion `json:"qi_niu_bucket_region_list"` //七牛云存储区域列表
  12. }
  13. type WxOpenSetReq struct {
  14. Token string `json:"token" binding:"required" example:"消息校验Token"`
  15. AesKey string `json:"aes_key" binding:"required" example:"消息加解密Key"`
  16. Appid string `json:"appid" binding:"required" example:"appid"`
  17. AppSecret string `json:"app_secret" binding:"required" example:"appSecret"`
  18. }
  19. type WxOpenGetResp struct {
  20. Token string `json:"token" example:"消息校验Token"`
  21. AesKey string `json:"aes_key" example:"消息加解密Key"`
  22. Appid string `json:"appid" example:"appid"`
  23. AppSecret string `json:"app_secret" example:"appSecret"`
  24. WxOpenAppletServerDomain string `json:"wx_open_applet_server_domain" example:"微信开放平台-小程序服务器域名"`
  25. WxOpenAuthorizationEventReceivingConfiguration string `json:"wx_open_authorization_event_receiving_configuration" example:"微信开放平台-授权事件接收配置"`
  26. WxOpenDomainOfTheInitiatingPageForLoginAuthorization string `json:"wx_open_domain_of_the_initiating_page_for_login_authorization" example:"微信开放平台-登录授权的发起页域名"`
  27. WxOpenMessageAndEventReceptionConfiguration string `json:"wx_open_message_and_event_reception_configuration" example:"微信开放平台-消息与事件接收配置"`
  28. WxOpenWhiteListIp string `json:"wx_open_white_list_ip" example:"微信开放平台-白名单ip"`
  29. }
  30. type AppletAddReq struct {
  31. Name string `json:"name" binding:"required" example:"小程序名称"`
  32. Logo string `json:"logo" binding:"required" example:"小程序logo"`
  33. Appid string `json:"appid" binding:"required" example:"授权小程序appid"`
  34. OriginalId string `json:"original_id" binding:"required" example:"授权小程序原始id"`
  35. }
  36. type AppletUpdateReq struct {
  37. Id int `json:"id" binding:"required"`
  38. Name string `json:"name" binding:"required" example:"小程序名称"`
  39. Logo string `json:"logo" binding:"required" example:"小程序logo"`
  40. }
  41. type ShareIndexResp struct {
  42. MasterId string `json:"master_id"`
  43. AgentDomain string `json:"agent_domain" example:"代理分享地址"`
  44. MediumDomain string `json:"medium_domain" example:"媒体分享地址"`
  45. }
  46. type SetMobReq struct {
  47. MobAppKey string `json:"mob_app_key"`
  48. MobAppSecret string `json:"mob_app_secret"`
  49. }
  50. type SetMobResp struct {
  51. Data SetMobReq `json:"data"` //数据内容
  52. }
  53. type SetLogoReq struct {
  54. MediumLogo string `json:"medium_logo"`
  55. AgentLogo string `json:"agent_logo"`
  56. }
  57. type SetLogoResp struct {
  58. Data SetLogoReq `json:"data"` //数据内容
  59. }