Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExampleData ¶
Types ¶
type ContactInfo ¶
type Info ¶
type Info struct { Description string `json:"description,omitempty"` Title string `json:"title,omitempty"` TermsOfService string `json:"termsOfService,omitempty"` Contact *ContactInfo `json:"contact,omitempty"` Version string `json:"version,omitempty"` }
type Method ¶
type Method struct { Title string `json:"title"` Name string `json:"name"` Describe string `json:"describe"` IsSubscribe bool `json:"is_Subscribe"` Input []*ParamField `json:"input"` OutPut []*ParamField `json:"out_put"` RequestBody string `json:"request_body"` ResponseBody string `json:"response_body"` }
type MethodItem ¶
type ParamData ¶
type ParamData struct { Name string `json:"name"` Describe string `json:"describe"` PkgPath string `json:"pkg_path"` Fields []*ParamField `json:"fields"` }
type ParamField ¶
type ParamField struct { Name string `json:"name"` Obj bool `json:"obj"` Type string `json:"type"` DataType string `json:"data_type"` Example string `json:"example"` Describe string `json:"describe"` }
func (*ParamField) SetParamField ¶
func (p *ParamField) SetParamField()
Click to show internal directories.
Click to hide internal directories.