Documentation
¶
Index ¶
- func CommonModules(root string, name string, service *models.Service, log *utils.Logger) error
- func CommonTemplate(root, name string, data []byte, log *utils.Logger) error
- func CreateHttpService(root string, service *models.Service, log *utils.Logger) error
- func CreateSwaggerHttpService(root string, openApiData []byte, log *utils.Logger) error
- type HandlerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonModules ¶
func CreateHttpService ¶
Types ¶
type HandlerInfo ¶
type HandlerInfo struct {
Method string
HandlerName string
ServiceName string
RequiredBodyParams []string
RequiredQueryParamsParams []string
BodyParams []string // параметры которые передаются через тело запроса в жсоне
QueryParams []string // параметры строки запроса /v1/customers?page=10&page_size=20
PathParams []string // параметры пути запроса /v1/customers/{id}
TmplName string
RespCodes map[int32]string
Funcs template.FuncMap
}
Click to show internal directories.
Click to hide internal directories.