sysmanage

package
v0.0.0-...-2949144 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TplGaAuth = `` /* 1798-byte string literal not displayed */

Functions

func Retjson

func Retjson(ctx *context.Context, msg *string, code *int, data ...interface{})

Deprecated TODO 改方法废弃

Types

type BaseController

type BaseController struct {
	controllers.BaseMainController
	LoginAdminId       int64
	LoginAdminUsername string
	LoginAdminName     string
	LoginAdminOrgId    int64
}

func (*BaseController) GetModelId

func (c *BaseController) GetModelId() int64

获取URI上的id

func (*BaseController) GetPaginateParam

func (c *BaseController) GetPaginateParam() (limit, page int, offset int64)

limit, page, offset (default is 10, 1, 0)

func (*BaseController) Prepare

func (c *BaseController) Prepare()

func (*BaseController) SetPaginator

func (c *BaseController) SetPaginator(per int, nums int64)

func (*BaseController) SetTplCondition

func (c *BaseController) SetTplCondition(cond map[string]string)

type BaseIndexController

type BaseIndexController struct {
	BaseController
}

func (*BaseIndexController) Get

func (c *BaseIndexController) Get()

func (*BaseIndexController) NestPrepare

func (c *BaseIndexController) NestPrepare()

type NestPreparer

type NestPreparer interface {
	NestPrepare()
}

type SyscommonController

type SyscommonController struct {
	BaseController
}

func (*SyscommonController) Download

func (c *SyscommonController) Download()

func (*SyscommonController) Upload

func (c *SyscommonController) Upload()

后台通用文件上传接口,上传的文件默认保存于upload目录下。静态资源。

func (*SyscommonController) UploadMulti

func (c *SyscommonController) UploadMulti()

后台通用多文件上传接口,上传的文件默认保存于upload目录下。静态资源。

Jump to

Keyboard shortcuts

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