chain.go 509 B

123456789101112131415161718
  1. package v1
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type NetWorkReq struct {
  4. g.Meta `path:"/netWork" tags:"netWork" method:"get" summary:"netWork"`
  5. }
  6. type TokenPriceReq struct {
  7. g.Meta `path:"/price" tags:"price" method:"post" summary:"price"`
  8. Address string `v:"required" json:"email" dc:"email"`
  9. ChainName string `v:"required" json:"chainName" dc:"chainName"`
  10. }
  11. type CommonRes struct {
  12. Success bool `json:"success" dc:"是否成功"`
  13. Data interface{} `json:"data" dc:"数据"`
  14. }