oneC

package
v0.0.0-...-2d37dc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonModules

func CommonModules(root string, name string, service *models.Service, log *utils.Logger) error

func CommonTemplate

func CommonTemplate(root, name string, data []byte, log *utils.Logger) error

func CreateHttpService

func CreateHttpService(root string, service *models.Service, log *utils.Logger) error

func CreateSwaggerHttpService

func CreateSwaggerHttpService(root string, openApiData []byte, log *utils.Logger) error

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL