This patch includes and uses the oapi-codegen tool to auto-generate go boilerplate code, based on the OpenAPI spec.
15 lines
551 B
Go
15 lines
551 B
Go
package api
|
|
|
|
//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen --config=api.cfg.yaml ../../docs/openapi.yaml
|
|
import "github.com/labstack/echo/v4"
|
|
|
|
type PersonalFinanceImpl struct{}
|
|
|
|
func (*PersonalFinanceImpl) GetBanks(ctx echo.Context) error {}
|
|
|
|
func (*PersonalFinanceImpl) GetBanksById(ctx echo.Context, bankId int64) error {}
|
|
|
|
func (*PersonalFinanceImpl) GetTransactions(ctx echo.Context, params GetTransactionsParams) error {}
|
|
|
|
func (*PersonalFinanceImpl) GetTransactionsById(ctx echo.Context, transactionId int64) error {}
|