一物一码
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.
 
 
 
 
 
 

28 lines
740 B

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