一物一码
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.1 KiB

  1. package md
  2. type WechatButton struct {
  3. Name string `json:"name"`
  4. Type string `json:"type"`
  5. Url string `json:"url"`
  6. Appid string `json:"appid,omitempty"`
  7. Pagepath string `json:"pagepath"`
  8. Key string `json:"key,omitempty"`
  9. SubButton []WechatSubButton `json:"sub_button,omitempty"`
  10. }
  11. type WechatSubButton struct {
  12. Type string `json:"type"`
  13. Name string `json:"name"`
  14. Url string `json:"url"`
  15. Appid string `json:"appid,omitempty"`
  16. Pagepath string `json:"pagepath"`
  17. Key string `json:"key,omitempty"`
  18. }
  19. type OffcialWechatButton struct {
  20. Type string `json:"type,omitempty"`
  21. Name string `json:"name"`
  22. Key string `json:"key,omitempty"`
  23. Url string `json:"url"`
  24. Appid string `json:"appid,omitempty"`
  25. Pagepath string `json:"pagepath"`
  26. SubButton SubButtonMap `json:"sub_button,omitempty"`
  27. }
  28. type SubButtonMap struct {
  29. List []WechatSubButton `json:"list"`
  30. }
  31. type WechatReq struct {
  32. Button []WechatButton `json:"button"`
  33. }