Versions in this module Expand all Collapse all v0 v0.0.1 Jul 19, 2021 Changes in this version + func Do(in Plugin) error + type Bean struct + FormTag []string + Import string + JsonTag []string + Members []*Member + Name stringx.String + ParentPackage string + PathTag []string + func (b *Bean) GetMember(name string) *Member + func (b *Bean) GetQuery() string + func (b *Bean) HavePath() bool + func (b *Bean) IsFormRequest() bool + func (b *Bean) IsJsonRequest() bool + type IService struct + Import string + ParentPackage string + Routes []*Route + type Member struct + Comment string + Doc string + Name stringx.String + TypeName string + type Plugin struct + Api *spec.ApiSpec + Dir string + ParentPackage string + Style string + func (p *Plugin) Convert() (*Spec, error) + func (p *Plugin) SetParentPackage(parentPackage string) + type Route struct + Doc string + HasRequest bool + HasResponse bool + HavePath bool + HaveQuery bool + Method string + MethodName string + Path string + PathId string + PathIdExpr string + QueryId string + QueryIdExpr string + RequestBeanName string + ResponseBeanName string + ShowRequestBody bool + type Spec struct + Beans []*Bean + Service IService + type Tag struct + func NewTag(tagExpr string) *Tag + func (t *Tag) GetTag() string + func (t *Tag) IsForm() bool + func (t *Tag) IsJson() bool + func (t *Tag) IsPath() bool + type Type struct + Name string