ginhelper

package
v0.0.0-...-da9a27d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(rootDir, project, appName string) (err error)

CreateApp create an app

func UpdateAPI

func UpdateAPI(rootDir, project, appName string) (err error)

UpdateAPI update api

Types

type APIGroup

type APIGroup struct {
	Group    string
	Requests []APIRequest
}

APIGroup api group

type APIRequest

type APIRequest struct {
	Group   string
	Name    string
	Comment string
	Route   string
	Method  string
	Auth    bool
}

APIRequest api request

type App

type App struct {
	Project string //工程名称
	Name    string //app名
	Service string //服务名(首字母大写)
	RootDir string //项目根目录
	APIDir  string //api目录
}

App ...

type RenderValue

type RenderValue struct {
	App      App
	Requests []APIRequest
}

RenderValue render data

type RequestMap

type RequestMap map[string][]APIRequest

RequestMap define RequestMap

func (RequestMap) Requests

func (m RequestMap) Requests() (list []APIRequest)

Requests request list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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