ginhelper

package
v0.0.0-...-6dc5add Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppExist

func AppExist(rootDir, appName string) (ok bool)

AppExist app exist

func CreateApp

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

CreateApp create an app

func InitProject

func InitProject(project string) error

InitProject init project

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