gitee.com/h79/goutils@v1.22.10/request/request.go (about)

     1  package request
     2  
     3  type Query struct {
     4  	AppId       string `form:"appid" binding:"required" json:"appid"` //appid
     5  	ComponentId string `form:"componentId" binding:"-" json:"componentId"`
     6  }
     7  
     8  type Content struct {
     9  	Type    string `json:"type,omitempty"`
    10  	Content []byte `json:"content,omitempty"`
    11  }
    12  
    13  func (c *Content) GetType() string {
    14  	return c.Type
    15  }
    16  
    17  func (c *Content) GetContent() []byte {
    18  	return c.Content
    19  }