Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetailToBasicModel ¶
func DetailToBasicModel(detail *ProjectDetailInfo) *bo.HttpProject
Types ¶
type ApiClient ¶
type ApiClient struct{}
func NewApiClient ¶
func NewApiClient() *ApiClient
func (*ApiClient) QueryHttpProjectInfo ¶
func (*ApiClient) QueryYapiProjectInfo ¶
func (y *ApiClient) QueryYapiProjectInfo(token string, apiIdList string) (*ProjectDetailInfo, error)
QueryYapiProjectInfo 查询Yapi 基础信息
type ApiInfo ¶
type ApiInfo struct { Id int64 `json:"_id"` Method string `json:"method"` Path string `json:"path"` Title string `json:"title"` ReqQueryList []*ReqQueryItem `json:"req_query"` // GET ReqBodyType string `json:"req_body_type"` // POST ReqBodyOther string `json:"req_body_other"` ResBodyType string `json:"res_body_type"` // POST ResBody string `json:"res_body"` }
type PageApiInfo ¶
type ProjectDetailInfo ¶
type ProjectDetailInfo struct { ProjectInfo *ProjectInfo ApiList []*ApiInfo }
type ProjectInfo ¶
type ReqQueryItem ¶
type StructWrapper ¶
type StructWrapper struct { Type string `json:"type"` Properties map[string]*StructWrapper `json:"properties"` Required []string `json:"required"` Items *StructWrapper `json:"items"` Description string `json:"description"` }
StructWrapper type(object, array, 基础类型)
func ConvertJsonStructWrap ¶
func ConvertJsonStructWrap(json string) (res *StructWrapper, err error)
Click to show internal directories.
Click to hide internal directories.