kk_api_gen

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindCheckGen

func BindCheckGen(s ...any)

func GenerateApi

func GenerateApi(apiGroupModel ApiGroupModel, apiModel ApiModel)

func GenerateDartApi

func GenerateDartApi(apiGroupModel ApiGroupModel, apiModel ApiModel)

func GenerateTypescriptApi

func GenerateTypescriptApi(apiGroupModel ApiGroupModel, apiModel ApiModel)

Types

type ApiGroupModel

type ApiGroupModel struct {
	ApiPkgName  string
	HandlerName string
	Tag         string
	GroupUrl    string
}

type ApiModel

type ApiModel struct {
	Description string
	// also apiId
	HandlerFuncName     string
	WithPermissionCheck bool
	UserIdGetter        string
}

Jump to

Keyboard shortcuts

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