controllers

package
v0.0.0-...-f2b1faa Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminIndex

func AdminIndex(c *gin.Context)

func AuthRequired

func AuthRequired() gin.HandlerFunc

func BatchSaveEntities

func BatchSaveEntities(c *gin.Context)

func CreateEntities

func CreateEntities(c *gin.Context)

func CreateEntity

func CreateEntity(c *gin.Context)

func DeleteByCond

func DeleteByCond(c *gin.Context)

func DeleteEntities

func DeleteEntities(c *gin.Context)

func DeleteEntity

func DeleteEntity(c *gin.Context)

func ExecByCond

func ExecByCond(c *gin.Context)

func ExecContentByQueryCond

func ExecContentByQueryCond(queryInfo QueryInfo, paramMap map[string]string, projectId string) (int64, error)

func ExecContentByQueryId

func ExecContentByQueryId(queryId string, paramMap map[string]string, projectId string) (int64, error)

func ExecGenSql

func ExecGenSql(queryInfo QueryInfo, paramMap map[string]string) (string, bool)

func Forget

func Forget(c *gin.Context)

func ForgetRepass

func ForgetRepass(c *gin.Context)

func GetDate

func GetDate(c *gin.Context)

func GetEntities

func GetEntities(c *gin.Context)

func GetQueryConfFilePath

func GetQueryConfFilePath(filename string) string

func GetRcToken

func GetRcToken(c *gin.Context)

func GetRongCloudToken

func GetRongCloudToken(userId string, realName string, pictureId string) string

func GetSessionProjectId

func GetSessionProjectId(c *gin.Context) string

func ImageServe

func ImageServe(urlPrefix string, fs ServeFileSystem) gin.HandlerFunc

Static returns a middleware handler that serves static files in the given directory.

func ImageServeRoot

func ImageServeRoot(urlPrefix, root string) gin.HandlerFunc

func KeepAlive

func KeepAlive(c *gin.Context)

func ListDocs

func ListDocs(c *gin.Context)

func LocalFile

func LocalFile(root string, indexes bool) *localFileSystem

func Login

func Login(c *gin.Context)

func QueryByCond

func QueryByCond(c *gin.Context)

func QueryContentByCond

func QueryContentByCond(queryInfo QueryInfo, paramMap map[string]string) (interface{}, error)

func QueryEntities

func QueryEntities(c *gin.Context)

func QueryGenSql

func QueryGenSql(queryInfo QueryInfo, paramMap map[string]string) (string, bool)

func QueryLayuiByCond

func QueryLayuiByCond(c *gin.Context)

func QueryLayuiContentByCond

func QueryLayuiContentByCond(queryInfo QueryInfo, c *gin.Context) (interface{}, error)

func QueryLayuiCustom

func QueryLayuiCustom(queryId string, paramMap map[string]string) (error, interface{})

func QueryLayuiGenSql

func QueryLayuiGenSql(queryInfo QueryInfo, c *gin.Context) (string, bool)

func ReCaptcha

func ReCaptcha(c *gin.Context)

func Reg

func Reg(c *gin.Context)

func RegisterAuthRouter

func RegisterAuthRouter(router *gin.Engine)

func RegisterDocumentRouter

func RegisterDocumentRouter(router *gin.Engine)

func RegisterModuleRouter

func RegisterModuleRouter(router *gin.Engine)

func RegisterProjectRouter

func RegisterProjectRouter(router *gin.Engine)

func RegisterQueryApiRouter

func RegisterQueryApiRouter(router *gin.Engine)

func RegisterRestApiRouter

func RegisterRestApiRouter(router *gin.Engine)

func RegisterRoleRouter

func RegisterRoleRouter(router *gin.Engine)

func RegisterRouter

func RegisterRouter(router *gin.Engine)

func RegisterUploadRouter

func RegisterUploadRouter(router *gin.Engine)

func RegisterUserRouter

func RegisterUserRouter(router *gin.Engine)

func RetrievEntity

func RetrievEntity(c *gin.Context)

func SaveEntities

func SaveEntities(c *gin.Context)

func SelectProject

func SelectProject(c *gin.Context)

func To404

func To404(c *gin.Context)

func ToCaptcha

func ToCaptcha(c *gin.Context)

func ToError

func ToError(c *gin.Context)

func ToForget

func ToForget(c *gin.Context)

func ToLogin

func ToLogin(c *gin.Context)

SignInGet handles GET /signin route

func ToNoperm

func ToNoperm(c *gin.Context)

func ToReg

func ToReg(c *gin.Context)

func ToRepost

func ToRepost(c *gin.Context)

func UpdateEntity

func UpdateEntity(c *gin.Context)

func UploadImages

func UploadImages(c *gin.Context)

func ValidateToken

func ValidateToken() gin.HandlerFunc

Types

type BindParam

type BindParam struct {
	FieldExpress string `xml:"FieldExpress"`
	FormName     string `xml:"FormName"`
	ConnSymbol   string `xml:"ConnSymbol,attr"`
}

type BindParamGroup

type BindParamGroup struct {
	BindParams []BindParam `xml:"BindParam"`
	ConnSymbol string      `xml:"ConnSymbol,attr"`
}

type BindParams

type BindParams struct {
	BindParamGroups []BindParamGroup `xml:"BindParamGroup"`
	RawSymbol       string           `xml:"RawSymbol,attr"`
	RawExpress      string           `xml:"RawExpress,attr"`
}

type DocFileInfo

type DocFileInfo struct {
	Kind         int //1目录 2文件
	RelativePath string
	Name         string
	Size         float64
}

type EntityBatchOp

type EntityBatchOp struct {
	ModelName        string
	CreateEntities   [](map[string]interface{})
	UpdateEntities   [](map[string]interface{})
	DataUpdateColumn string
	DataDeleteColumn string
	DeleteByIds      []string
	DeleteByFields   []string
}

type QueryCond

type QueryCond struct {
	Key   string
	Value string
}

type QueryInfo

type QueryInfo struct {
	Id            string       `xml:"Id"`
	RefModelNames string       `xml:"RefModelNames"`
	Cache         string       `xml:"Cache"`
	CacheBy       string       `xml:"CacheBy"`
	SQL           string       `xml:"SQL"`
	BindParams    []BindParams `xml:"BindParams"`
	Remark        string       `xml:"Remark"`
}

type QueryInfoConf

type QueryInfoConf struct {
	QueryInfos []QueryInfo `xml:"QueryInfo"`
}

type ServeFileSystem

type ServeFileSystem interface {
	http.FileSystem
	Exists(prefix string, path string) (bool, string)
}

Jump to

Keyboard shortcuts

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