helper

package
v0.0.0-...-b32e05d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertApiTs

func ConvertApiTs(sp *aspec.ApiSpec) map[string][]TsApiGroup

func ConvertTypeTs

func ConvertTypeTs(sp *aspec.ApiSpec) map[string]TsType

Types

type TsApiGroup

type TsApiGroup struct {
	Name       string // account
	Prefix     string
	Middleware []string
	Routes     []TsApiRoute
}

type TsApiRoute

type TsApiRoute struct {
	Summery  string
	Handler  string
	Path     string
	Method   string
	Request  string
	Response string
}

type TsType

type TsType struct {
	Comment string
	Name    string
	Extends []string
	Fields  []TsTypeField
}

type TsTypeField

type TsTypeField struct {
	Name     string
	Type     string
	Comment  string
	Nullable bool
}

Jump to

Keyboard shortcuts

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