api

package
Version: v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TokenkeyNamespace define TODO
	TokenkeyNamespace = "dolphin:token:"
	// OA2Cfg defined TODO
	OA2Cfg xoauth2.Config
	// QrOA2Cfg defined TODO
	QrOA2Cfg xoauth2.Config
)
View Source
var (
	Name                          = "platform"
	NopHandlerFunc                = func(ctx *Context) { ctx.Next() }
	SysAppFunInstance             = NewSysAppFun()
	SysAreaInstance               = NewSysArea()
	SysAttachmentInstance         = NewSysAttachment()
	SysCasInstance                = NewSysCas()
	SysClientInstance             = NewSysClient()
	SysCommentInstance            = NewSysComment()
	SysDataPermissionInstance     = NewSysDataPermission()
	DebugInstance                 = NewDebug()
	SysDingtalkInstance           = NewSysDingtalk()
	SysDomainInstance             = NewSysDomain()
	SysMenuInstance               = NewSysMenu()
	SysNotificationInstance       = NewSysNotification()
	SysOptionsetInstance          = NewSysOptionset()
	SysOrgInstance                = NewSysOrg()
	SysPermissionInstance         = NewSysPermission()
	SysRoleInstance               = NewSysRole()
	SysRoleMenuInstance           = NewSysRoleMenu()
	SysScheduleInstance           = NewSysSchedule()
	SysScheduleHistoryInstance    = NewSysScheduleHistory()
	SysSchedulingInstance         = NewSysScheduling()
	SysSettingInstance            = NewSysSetting()
	SysTableInstance              = NewSysTable()
	SysTableColumnInstance        = NewSysTableColumn()
	SysTagInstance                = NewSysTag()
	SysTagGroupInstance           = NewSysTagGroup()
	SysTrackerInstance            = NewSysTracker()
	SysUserInstance               = NewSysUser()
	SysUserTemplateInstance       = NewSysUserTemplate()
	SysUserTemplateDetailInstance = NewSysUserTemplateDetail()
	SysWechatInstance             = NewSysWechat()
	SysWorkerInstance             = NewSysWorker()
)
View Source
var CacheStore cache.CacheStore

CacheStore defined TODO

View Source
var DomainInstance = NewStatic()

DomainInstance defined TODO

View Source
var MaxWorkers = 15

MaxWorkers defined TODO

View Source
var MetricsInstance = NewMetrics()

MetricsInstance defined TODO

View Source
var PageCachePrefix = "dolphin.page.cache"
View Source
var RedisClient redis.Cmdable

RedisClient defined TODO

View Source
var TrackerStore func(domain string, beans *[]types.SysTracker) error

TrackerStore store logs

View Source
var UserAuthorizationHandler = func(w http.ResponseWriter, r *http.Request) (uid string, dm string, err error) {
	store, err := session.Start(context.Background(), w, r)
	if err != nil {
		return
	}
	userID, uok := store.Get("LoggedInUserID")
	domain, dok := store.Get("LoggedInDomain")
	if !uok || !dok {
		if r.Form == nil {
			r.ParseForm()
		}
		store.Set("ReturnUri", r.Form)
		store.Save()
		w.Header().Set("Location", viper.GetString("oauth.login"))
		w.WriteHeader(http.StatusFound)
		return
	}
	uid = userID.(string)
	dm = domain.(string)
	store.Save()
	return
}

UserAuthorizationHandler defined TODO

View Source
var ValidateURIHandler = func(baseURI string, redirectURI string) error {
	reg := regexp.MustCompile(`^(http://|https://)?([^/?:]+)(:[0-9]*)?(/[^?]*)?(\\?.*)?$`)
	base := reg.FindAllStringSubmatch(baseURI, -1)
	redirect := reg.FindAllStringSubmatch(redirectURI, -1)

	if util.IsIp(redirect[0][2]) {
		ip := net.ParseIP(redirect[0][2])
		if util.IsPrivate(ip) {
			return nil
		}
	}
	if base[0][2] != redirect[0][2] {
		logrus.Errorf(context.TODO(), "baseURI=%v, redirectURI=%v", base[0][2], redirect[0][2])
		return errors.New("invalid redirect uri")
	}
	return nil
}

ValidateURIHandler defined TODO

Functions

func Auth

func Auth(auth ...string) func(ctx *Context)

Auth middles TODO

func BuildExcel

func BuildExcel(cfg ExcelConfig) (types.ExportInfo, error)

BuildExcel defined

func Cache

func Cache(time time.Duration) func(ctx *Context)

Cache middles

func CachePage

func CachePage(store cache.CacheStore, expire time.Duration) func(*Context)

CachePage Decorator

func Cors

func Cors(origin string, headers string) func(ctx *Context)

Cors defined TODO

func CreateKey

func CreateKey(u string) string

CreateKey creates a package specific key for a given string

func DebugRoutes

func DebugRoutes()

DebugRoutes defined

func DefaultFormat

func DefaultFormat(interface{}) func(interface{}) interface{}

DefaultFormat defined

func DefaultHandler

func DefaultHandler(source map[string]interface{}) map[string]interface{}

DefaultHandler defined

func DomainFormat

func DomainFormat(ct string) []byte

DomainFormat defined TODO

func DumpBody added in v1.2.1

func DumpBody(dumpCall func(*Context, *LogFormatterParams)) func(ctx *Context)

DumpBody instance a Logger middleware with config.

func DumpRecv added in v1.2.1

func DumpRecv() func(ctx *Context, p *LogFormatterParams)

DumpRecv defined tracker recorder

func Formatter

func Formatter(param gin.LogFormatterParams) string

Formatter log formatter params

func Hostname

func Hostname() string

Hostname returns the name of the host, if no hostname, a random id is returned.

func HttpTrace

func HttpTrace() func(ctx *Context)

HttpTrace defined TODO

func InitCacheStore added in v1.2.11

func InitCacheStore()

InitCacheStore defined TODO

func InitLogger

func InitLogger()

InitLogger defined TODO

func InitSession added in v1.2.2

func InitSession()

InitSession defined TODO, just for cas server

func InitTracker added in v1.2.2

func InitTracker()

func InitViper

func InitViper()

func IsDebugging added in v1.2.10

func IsDebugging() bool

IsDebugging defined TODO

func MetricsRoutes added in v1.2.17

func MetricsRoutes(dol *Dolphin)

MetricsRoutes defined TODO

func NewCookieStore

func NewCookieStore(opt ...CookieOption) session.ManagerStore

NewCookieStore Create an instance of a cookie store

func NewLifeHook

func NewLifeHook() lifeHook

NewLifeHook defined TODO

func NewRedisClient added in v1.2.11

func NewRedisClient() redis.Cmdable

NewRedisClient defined TODO

func OptionsetsFormat

func OptionsetsFormat(db *xorm.Engine) func(interface{}) func(interface{}) interface{}

OptionsetsFormat defiend

func ParseExcel

func ParseExcel(cfg ExcelConfig) ([]map[string]string, error)

ParseExcel defined

func Recovery

func Recovery() func(ctx *Context)

Recovery defined TODO

func RegisterResponseCacheGob

func RegisterResponseCacheGob()

RegisterResponseCacheGob registers the responseCache type with the encoding/gob package

func Roles

func Roles(roles ...string) func(ctx *Context)

Roles middles TODO

func StaticRoutes

func StaticRoutes(dol *Dolphin)

StaticRoutes defined TODO

func SyncController added in v1.2.17

func SyncController() error

SyncController defined

func SyncModel added in v1.2.17

func SyncModel() error

SyncModel defined

func SyncSrv added in v1.2.17

func SyncSrv(svc *svc.ServiceContext) error

SyncSrv defined

func SysAppFunRoutes

func SysAppFunRoutes()

SysAppFunRoutes defined

func SysAreaRoutes

func SysAreaRoutes()

SysAreaRoutes defined

func SysAttachmentRoutes

func SysAttachmentRoutes()

SysAttachmentRoutes defined

func SysCasRoutes

func SysCasRoutes()

SysCasRoutes defined

func SysClientRoutes

func SysClientRoutes()

SysClientRoutes defined

func SysCommentRoutes

func SysCommentRoutes()

SysCommentRoutes defined

func SysDataPermissionRoutes

func SysDataPermissionRoutes()

SysDataPermissionRoutes defined

func SysDingtalkRoutes

func SysDingtalkRoutes()

SysDingtalkRoutes defined

func SysDomainRoutes

func SysDomainRoutes()

SysDomainRoutes defined

func SysMenuRoutes

func SysMenuRoutes()

SysMenuRoutes defined

func SysNotificationRoutes

func SysNotificationRoutes()

SysNotificationRoutes defined

func SysOptionsetRoutes

func SysOptionsetRoutes()

SysOptionsetRoutes defined

func SysOrgRoutes

func SysOrgRoutes()

SysOrgRoutes defined

func SysPermissionRoutes

func SysPermissionRoutes()

SysPermissionRoutes defined

func SysRoleMenuRoutes

func SysRoleMenuRoutes()

SysRoleMenuRoutes defined

func SysRoleRoutes

func SysRoleRoutes()

SysRoleRoutes defined

func SysScheduleHistoryRoutes

func SysScheduleHistoryRoutes()

SysScheduleHistoryRoutes defined

func SysScheduleRoutes

func SysScheduleRoutes()

SysScheduleRoutes defined

func SysSchedulingRoutes

func SysSchedulingRoutes()

SysSchedulingRoutes defined

func SysSettingRoutes

func SysSettingRoutes()

SysSettingRoutes defined

func SysTableColumnRoutes

func SysTableColumnRoutes()

SysTableColumnRoutes defined

func SysTableRoutes

func SysTableRoutes()

SysTableRoutes defined

func SysTagGroupRoutes

func SysTagGroupRoutes()

SysTagGroupRoutes defined

func SysTagRoutes

func SysTagRoutes()

SysTagRoutes defined

func SysTrackerRoutes

func SysTrackerRoutes()

SysTrackerRoutes defined

func SysUserRoutes

func SysUserRoutes()

SysUserRoutes defined

func SysUserTemplateDetailRoutes

func SysUserTemplateDetailRoutes()

SysUserTemplateDetailRoutes defined

func SysUserTemplateRoutes

func SysUserTemplateRoutes()

SysUserTemplateRoutes defined

func SysWechatRoutes

func SysWechatRoutes()

SysWechatRoutes defined

func SysWorkerRoutes

func SysWorkerRoutes()

SysWorkerRoutes defined

Types

type ClientStore

type ClientStore struct {
}

ClientStore client information store

func NewClientStore

func NewClientStore() *ClientStore

NewClientStore create client store

func (*ClientStore) GetByID

func (cs *ClientStore) GetByID(id string) (oauth2.ClientInfo, error)

GetByID according to the ID for the client information

type Context

type Context struct {
	*gin.Context
}

Context defined TODO

func (*Context) BusinessDB

func (ctx *Context) BusinessDB(domain string) *xorm.Engine

BusinessDB defined TODO

func (*Context) DB

func (ctx *Context) DB() (*xorm.Engine, bool)

DB defined TODO

func (*Context) LoginInInfo

func (ctx *Context) LoginInInfo(user *types.SysUser) (bool, error)

LoginInInfo defined TODO

func (*Context) MustDB added in v1.2.17

func (ctx *Context) MustDB() *xorm.Engine

MustDB defined TODO

func (*Context) MustToken added in v1.2.17

func (ctx *Context) MustToken() TokenInfo

MustToken defined TODO

func (*Context) OmitByZero

func (ctx *Context) OmitByZero(source interface{}) (target interface{})

OmitByZero omit invalid fileds

func (*Context) Token added in v1.2.17

func (ctx *Context) Token() (TokenInfo, bool)

Token defined TODO

func (*Context) TypeQuery

func (ctx *Context) TypeQuery() *Query

TypeQuery defined TODO

type Controller

type Controller struct {
	Method                                   string
	RelativePath                             string
	Auth, Roles, Cache, Interceptor, Handler core.HandlerFunc
}

Controller defined

type CookieOption

type CookieOption func(*options)

CookieOption A cookie parameter options

func SetBlockFunc

func SetBlockFunc(blockFunc func([]byte) (cipher.Block, error)) CookieOption

SetBlockFunc sets the encryption function used to create a cipher.Block

func SetBlockKey

func SetBlockKey(blockKey []byte) CookieOption

SetBlockKey used to encrypt values

func SetCookieName

func SetCookieName(cookieName string) CookieOption

SetCookieName Set the cookie name

func SetHashFunc

func SetHashFunc(hashFunc func() hash.Hash) CookieOption

SetHashFunc sets the hash function used to create HMAC

func SetHashKey

func SetHashKey(hashKey []byte) CookieOption

SetHashKey used to authenticate values using HMAC

func SetMaxAge

func SetMaxAge(maxAge int) CookieOption

SetMaxAge restricts the maximum age, in seconds, for the cookie value

func SetMaxLength

func SetMaxLength(maxLength int) CookieOption

SetMaxLength restricts the maximum length, in bytes, for the cookie value

func SetMinAge

func SetMinAge(minAge int) CookieOption

SetMinAge restricts the minimum age, in seconds, for the cookie value

func SetSecure

func SetSecure(secure bool) CookieOption

SetSecure Set cookie security

type Cron

type Cron interface {
	AddCron(string, func()) (int, error)
	RefreshCron(int, string) (int, error)
	DelCron(int) error
	TryCron(int) error
}

Cron defined TODO

type Debug

type Debug struct {
	Name string
	Srv  *srv.Debug
	Pprof,
	Heap,
	Goroutine,
	Allocs,
	Block,
	Threadcreate,
	Cmdline,
	Profile,
	Symbol,
	Trace,
	Mutex Controller
}

Controller defined

func NewDebug

func NewDebug() *Debug

NewDebug defined

func (*Debug) DebugAllocs

func (ctr *Debug) DebugAllocs(ctx *Context)

DebugAllocs api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/allocs [GET]

func (*Debug) DebugBlock

func (ctr *Debug) DebugBlock(ctx *Context)

DebugBlock api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/block [GET]

func (*Debug) DebugCmdline

func (ctr *Debug) DebugCmdline(ctx *Context)

DebugCmdline api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/cmdline [GET]

func (*Debug) DebugGoroutine

func (ctr *Debug) DebugGoroutine(ctx *Context)

DebugGoroutine api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/goroutine [GET]

func (*Debug) DebugHeap

func (ctr *Debug) DebugHeap(ctx *Context)

DebugHeap api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/heap [GET]

func (*Debug) DebugMutex

func (ctr *Debug) DebugMutex(ctx *Context)

DebugMutex api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/mutex [GET]

func (*Debug) DebugPprof

func (ctr *Debug) DebugPprof(ctx *Context)

DebugPprof api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof [GET]

func (*Debug) DebugProfile

func (ctr *Debug) DebugProfile(ctx *Context)

DebugProfile api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/profile [GET]

func (*Debug) DebugSymbol

func (ctr *Debug) DebugSymbol(ctx *Context)

DebugSymbol api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/symbol [GET,POST]

func (*Debug) DebugThreadcreate

func (ctr *Debug) DebugThreadcreate(ctx *Context)

DebugThreadcreate api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/threadcreate [GET]

func (*Debug) DebugTrace

func (ctr *Debug) DebugTrace(ctx *Context)

DebugTrace api implementation @Summary @Tags pprof诊断接口 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/debug/pprof/trace [GET]

type DefaultCron

type DefaultCron struct {
	// contains filtered or unexported fields
}

DefaultCron defined TODO

func (*DefaultCron) AddCron

func (d *DefaultCron) AddCron(spec string, cmd func()) (int, error)

AddCron defined TODO

func (*DefaultCron) DelCron

func (d *DefaultCron) DelCron(id int) error

DelCron defined TODO

func (*DefaultCron) RefreshCron

func (d *DefaultCron) RefreshCron(id int, spec string) (int, error)

RefreshCron defined TODO

func (*DefaultCron) TryCron

func (d *DefaultCron) TryCron(id int) error

TryCron defined TODO

type DefaultManager

type DefaultManager struct {
	BusinessDBSet map[string]*xorm.Engine
	ModelSetter   ModelSetter
	// contains filtered or unexported fields
}

DefaultManager defined TODO

func (*DefaultManager) AddBusinessDB

func (d *DefaultManager) AddBusinessDB(domain string, db *xorm.Engine)

AddBusinessDB defined TODO

func (*DefaultManager) Cron

func (d *DefaultManager) Cron() Cron

Cron defined TODO

func (*DefaultManager) GetBusinessDB

func (d *DefaultManager) GetBusinessDB(domain string) *xorm.Engine

GetBusinessDB defined TODO

func (*DefaultManager) GetBusinessDBSet

func (d *DefaultManager) GetBusinessDBSet() map[string]*xorm.Engine

GetBusinessDBSet defined TODO

func (*DefaultManager) GetTokenStore

func (d *DefaultManager) GetTokenStore() oauth2.TokenStore

GetTokenStore defined TODO

func (*DefaultManager) ModelSet

func (d *DefaultManager) ModelSet() ModelSetter

ModelSet defined TODO

func (*DefaultManager) Worker

func (d *DefaultManager) Worker() Worker

Worker defined TODO

type DefaultWorker

type DefaultWorker struct {
	JobHandlers map[string]func(types.Worker) (interface{}, error)
	Dispatcher  *worker.Dispatcher
	// contains filtered or unexported fields
}

DefaultWorker defined TODO

func (*DefaultWorker) AddJob

func (d *DefaultWorker) AddJob(j worker.Job)

AddJob defined TODO

func (*DefaultWorker) AddJobHandler

func (d *DefaultWorker) AddJobHandler(code string, funk func(types.Worker) (interface{}, error))

AddJobHandler defined TODO

func (*DefaultWorker) Find

func (d *DefaultWorker) Find(code string) (types.Worker, error)

Find defined TODO

func (*DefaultWorker) GetJobHandler

func (d *DefaultWorker) GetJobHandler(code string) func(types.Worker) (interface{}, error)

GetJobHandler defined TODO

func (*DefaultWorker) Save

func (d *DefaultWorker) Save(w types.Worker) error

Save defined TODO

func (*DefaultWorker) Update

func (d *DefaultWorker) Update(w types.Worker) error

Update defined TODO

type Dolphin

type Dolphin struct {
	Lifecycle
	PlatformDB *xorm.Engine
	Manager    Manager
	Identity   *Identity
	Web        *core.Web
}

Dolphin defined parse app engine

var (
	App *Dolphin
	Run func() error
)

func New added in v1.2.1

func New(options ...Option) *Dolphin

NewDolphin defined TODO

func NewDefault

func NewDefault(options ...Option) *Dolphin

NewDefault defined TODO

func (*Dolphin) Group added in v1.2.17

func (dol *Dolphin) Group(relativePath string, handlers ...core.HandlerFunc) *core.RouterGroup

Group defined TODO

func (*Dolphin) Initialize added in v1.2.17

func (dol *Dolphin) Initialize() error

Initialize defined init data before bootinh

func (*Dolphin) LifeCycle added in v1.2.10

func (dol *Dolphin) LifeCycle(ctx context.Context) error

LifeCycle defined TODO

func (*Dolphin) Run

func (dol *Dolphin) Run() error

Run defined TODO

func (*Dolphin) ServeHTTP

func (dol *Dolphin) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP defined TODO

func (*Dolphin) Static added in v1.2.17

func (dol *Dolphin) Static(relativePath, root string)

Static defined TODO

func (*Dolphin) Use added in v1.2.17

func (dol *Dolphin) Use(middleware ...core.HandlerFunc)

Use defined TODO

type ExcelConfig

type ExcelConfig struct {
	FileReader io.Reader
	SheetIndex interface{}
	FileName   string
	SheetName  string
	Rows       []map[string]interface{}
	Header     []map[string]interface{}
	TmplPath   string
	Format     func(interface{}) func(interface{}) interface{}
	Handler    func(map[string]interface{}) map[string]interface{}
}

ExcelConfig defined

func NewBuildExcelConfig

func NewBuildExcelConfig(rows []map[string]interface{}, header ...[]map[string]interface{}) ExcelConfig

NewBuildExcelConfig defined

func NewParseExcelConfig

func NewParseExcelConfig(file io.Reader, sheet interface{}, header ...[]map[string]interface{}) ExcelConfig

NewParseExcelConfig defined

func (*ExcelConfig) AddRows

func (e *ExcelConfig) AddRows(rows ...map[string]interface{}) *ExcelConfig

AddRows defined

type Hook

type Hook struct {
}

A Hook is a pair of start and stop callbacks, either of which can be nil,

func (*Hook) OnStart

func (h *Hook) OnStart(ctx context.Context) error

OnStart defined OnStart

func (*Hook) OnStop

func (h *Hook) OnStop(ctx context.Context) error

OnStop defined OnStop

type Identity added in v1.2.17

type Identity struct {
	JWT    *JWT
	OAuth2 *server.Server
	// contains filtered or unexported fields
}

Provider deifned TODO

func (*Identity) GetProvider added in v1.2.17

func (i *Identity) GetProvider(name string) Provider

GetProvider get provider with name

func (*Identity) RegisterProvider added in v1.2.17

func (i *Identity) RegisterProvider(provider Provider)

RegisterProvider register auth provider

type JWT

type JWT struct {
	Secret string
	Expire int64
}

JWT defined TODO

func NewJWT

func NewJWT(secret string, expire int64) *JWT

NewJWT defined TODO

func (*JWT) Bearer added in v1.2.17

func (j *JWT) Bearer(req *http.Request) (string, bool)

Bearer defined TODO

func (*JWT) GenerateAccessToken

func (j *JWT) GenerateAccessToken(userId, domain string) (string, error)

GenerateAccessToken defined TODO

func (*JWT) LoadAccessToken

func (j *JWT) LoadAccessToken(tk string) (*jwt.MapClaims, error)

LoadAccessToken defined TODO

type JWTProvider added in v1.2.17

type JWTProvider struct {
	// contains filtered or unexported fields
}

func (*JWTProvider) Config added in v1.2.17

func (p *JWTProvider) Config(i *Identity)

Config defined TODO

func (*JWTProvider) GetName added in v1.2.17

func (p *JWTProvider) GetName() string

GetName defined TODO

func (*JWTProvider) Ticket added in v1.2.17

func (p *JWTProvider) Ticket(userId, extra string, ctx *Context) (TokenInfo, error)

Verify defined TODO

func (*JWTProvider) Verify added in v1.2.17

func (p *JWTProvider) Verify(ctx *Context) (TokenInfo, bool)

Verify defined TODO

type Job

type Job types.Worker

Job defined

func (Job) Do

func (p Job) Do() error

Do do something

type Lifecycle

type Lifecycle interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Append(h lifeHook)
}

Lifecycle interface coordinates application lifecycle hooks.

type LogFormatterParams

type LogFormatterParams struct {
	gin.LogFormatterParams
	Domain  string
	Token   string
	UserID  int64
	Header  []byte
	ReqBody []byte
	ResBody []byte
}

LogFormatterParams is the structure any formatter will be handed when time to log comes

type Manager

type Manager interface {
	ModelSet() ModelSetter
	Worker() Worker
	Cron() Cron
	GetBusinessDBSet() map[string]*xorm.Engine
	GetBusinessDB(string) *xorm.Engine
	AddBusinessDB(string, *xorm.Engine)
	GetTokenStore() oauth2.TokenStore
}

Manager Engine management interface

func NewDefaultManager

func NewDefaultManager() Manager

NewDefaultManager defined TODO

type Metrics added in v1.2.17

type Metrics struct {
}

Metrics defined TODO

func NewMetrics added in v1.2.17

func NewMetrics() *Metrics

NewMetrics defined TODO

func (*Metrics) Metrics added in v1.2.17

func (ctr *Metrics) Metrics(ctx *Context)

Metrics defined TODO

type ModelSetter

type ModelSetter interface {
	Add(Table, ...string)
	ByName(string) []Table
	ByNotName(string) []Table
	NameSpaces(...string) (names []string)
	Release()
}

ModelSetter model template

type NopCloser

type NopCloser struct {
	// contains filtered or unexported fields
}

NopCloser defined

func (*NopCloser) Close

func (rc *NopCloser) Close() error

Close defined

func (*NopCloser) Read

func (rc *NopCloser) Read(p []byte) (n int, err error)

Read defined

type Option

type Option func(*Dolphin)

Option is a functional option type for Dolphin objects.

func WithIdentity added in v1.2.17

func WithIdentity() Option

WithManager defined TODO

func WithLifecycle

func WithLifecycle() Option

WithLifecycle defined TODO

func WithManager

func WithManager() Option

WithManager defined TODO

func WithWeb added in v1.2.17

func WithWeb() Option

WithWeb defined TODO

type Provider added in v1.2.17

type Provider interface {
	GetName() string
	Config(*Identity)
	Verify(*Context) (TokenInfo, bool)
	Ticket(userId, extra string, ctx *Context) (TokenInfo, error)
}

Provider deifned TODO

type Query

type Query struct {
	// contains filtered or unexported fields
}

Query defined TODO

func NewQuery added in v1.2.16

func NewQuery(ctx *Context) *Query

NewQuery defined TODO

func (*Query) GetArrayBool

func (q *Query) GetArrayBool(key string, init ...[]bool) []bool

GetArrayBool defined TODO

func (*Query) GetArrayFloat64

func (q *Query) GetArrayFloat64(key string, init ...[]float64) []float64

GetArrayFloat64 defined TODO

func (*Query) GetArrayInt

func (q *Query) GetArrayInt(key string, init ...[]int) []int64

GetArrayInt defined TODO

func (*Query) GetArrayString

func (q *Query) GetArrayString(key string, init ...[]string) []string

GetArrayString defined TODO

func (*Query) GetBool

func (q *Query) GetBool(key string, init ...bool) bool

GetBool defined TODO

func (*Query) GetInt

func (q *Query) GetInt(key string, init ...int) int

GetInt defined TODO

func (*Query) GetRange

func (q *Query) GetRange(key string, init ...string) (string, string)

GetRange defined TODO

func (*Query) GetString

func (q *Query) GetString(key string, init ...string) string

GetString defined TODO

func (*Query) GetUser

func (q *Query) GetUser() int64

GetUser defined TODO

func (*Query) Remove

func (q *Query) Remove(keys ...string)

Remove defined TODO

func (*Query) Reset

func (q *Query) Reset()

Reset defined TODO

func (*Query) SetArrayBool

func (q *Query) SetArrayBool(key string, init ...[]bool) func()

SetArrayBool defined TODO

func (*Query) SetArrayFloat64

func (q *Query) SetArrayFloat64(key string, init ...[]float64) func()

SetArrayFloat64 defined TODO

func (*Query) SetArrayInt

func (q *Query) SetArrayInt(key string, init ...[]int64) func()

SetArrayInt defined TODO

func (*Query) SetArrayString

func (q *Query) SetArrayString(key string, init ...[]string) func()

SetArrayString defined TODO

func (*Query) SetBool

func (q *Query) SetBool(key string, init ...bool) func()

SetBool defined TODO

func (*Query) SetInt

func (q *Query) SetInt(key string, init ...int) func()

SetInt defined TODO

func (*Query) SetRange

func (q *Query) SetRange(key string, init ...[]string) func()

SetRange defined TODO

func (*Query) SetRule

func (q *Query) SetRule(rule string)

SetRule defined TODO, role_rule for data`permission

func (*Query) SetString

func (q *Query) SetString(key string, init ...string) func()

SetString defined TODO

func (*Query) SetTags

func (q *Query) SetTags(params ...struct {
	Key   string
	Value string
})

SetTags defined TODO TODO TODO TODO TODO

func (*Query) SetUnescaped added in v1.2.10

func (q *Query) SetUnescaped(key string, value string)

SetUnescaped defined TODO

func (*Query) SetUser

func (q *Query) SetUser(uid ...int64)

SetUser defined TODO

func (*Query) Unmarshal

func (q *Query) Unmarshal(v interface{}) error

Unmarshal defined TODO

func (*Query) Value

func (q *Query) Value() map[string]interface{}

Value defined TODO

type RSAProvider added in v1.2.17

type RSAProvider struct {
}

func (*RSAProvider) Config added in v1.2.17

func (p *RSAProvider) Config(i *Identity)

Config defined TODO

func (*RSAProvider) GetName added in v1.2.17

func (p *RSAProvider) GetName() string

GetName defined TODO

func (*RSAProvider) Ticket added in v1.2.17

func (p *RSAProvider) Ticket(userId, extra string, ctx *Context) (TokenInfo, error)

Verify defined TODO

func (*RSAProvider) Verify added in v1.2.17

func (p *RSAProvider) Verify(ctx *Context) (TokenInfo, bool)

Verify defined TODO

type Secret

type Secret struct {
	AppID      string `form:"app_id" json:"app_id" xml:"app_id" binding:"required"`
	Sign       string `form:"sign" json:"sign" xml:"sign" binding:"required"`
	TimeStamp  int64  `form:"timestamp" json:"timestamp" xml:"timestamp" binding:"required"`
	BizContent string `form:"biz_content" json:"biz_content" xml:"biz_content" binding:"required"`
}

Secret defines Common request parameter

func NewSecret

func NewSecret(ctx *Context) (*Secret, error)

NewSecret defined TODO

func (*Secret) Verify

func (secret *Secret) Verify(cli oauth2.ClientInfo) (bool, error)

Verify defined TODO

type Static

type Static struct {
}

Static defined

func NewStatic

func NewStatic() *Static

NewStatic defined

func (*Static) Domain

func (ctr *Static) Domain(ctx *Context)

Domain defined TODO

type SysAppFun

type SysAppFun struct {
	Name string
	Srv  *srv.SysAppFun
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Tree,
	Get Controller
}

Controller defined

func NewSysAppFun

func NewSysAppFun() *SysAppFun

NewSysAppFun defined

func (*SysAppFun) SysAppFunAdd

func (ctr *SysAppFun) SysAppFunAdd(ctx *Context)

SysAppFunAdd api implementation @Summary 添加APP功能 @Tags APP功能 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_app_fun body types.SysAppFun false "APP功能信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/app/fun/add [post]

func (*SysAppFun) SysAppFunBatchAdd

func (ctr *SysAppFun) SysAppFunBatchAdd(ctx *Context)

SysAppFunBatchAdd api implementation @Summary 批量添加APP功能 @Tags APP功能 @Accept application/json @Produce application/json @Param Authorization header string false "认证令牌" @Param sys_app_fun body []types.SysAppFun false "APP功能信息" @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/app/fun/batch_add [post]

func (*SysAppFun) SysAppFunBatchDel

func (ctr *SysAppFun) SysAppFunBatchDel(ctx *Context)

SysAppFunBatchDel api implementation @Summary 批量删除APP功能 @Tags APP功能 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_app_fun body []types.SysAppFun false "APP功能" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/app/fun/batch_del [delete]

func (*SysAppFun) SysAppFunBatchUpdate

func (ctr *SysAppFun) SysAppFunBatchUpdate(ctx *Context)

SysAppFunBatchUpdate api implementation @Summary 批量更新APP功能 @Tags APP功能 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_app_fun body []types.SysAppFun false "APP功能信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/app/fun/batch_update [put]

func (*SysAppFun) SysAppFunDel

func (ctr *SysAppFun) SysAppFunDel(ctx *Context)

SysAppFunDel api implementation @Summary 删除APP功能 @Tags APP功能 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_app_fun body types.SysAppFun false "APP功能" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/app/fun/del [delete]

func (*SysAppFun) SysAppFunGet

func (ctr *SysAppFun) SysAppFunGet(ctx *Context)

SysAppFunGet api implementation @Summary 获取APP功能信息 @Tags APP功能 @Param Authorization header string false "认证令牌" @Param id query string false "APP功能id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/app/fun/get [get]

func (*SysAppFun) SysAppFunPage

func (ctr *SysAppFun) SysAppFunPage(ctx *Context)

SysAppFunPage api implementation @Summary APP功能分页查询 @Tags APP功能 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/app/fun/page [get]

func (*SysAppFun) SysAppFunTree

func (ctr *SysAppFun) SysAppFunTree(ctx *Context)

SysAppFunTree api implementation @Summary 菜单树形结构 @Tags APP功能 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/app/fun/tree [get]

func (*SysAppFun) SysAppFunUpdate

func (ctr *SysAppFun) SysAppFunUpdate(ctx *Context)

SysAppFunUpdate api implementation @Summary 更新APP功能 @Tags APP功能 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "APP功能信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/app/fun/update [put]

type SysArea

type SysArea struct {
	Name string
	Srv  *srv.SysArea
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysArea

func NewSysArea() *SysArea

NewSysArea defined

func (*SysArea) SysAreaAdd

func (ctr *SysArea) SysAreaAdd(ctx *Context)

SysAreaAdd api implementation @Summary 添加区域 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysArea false "区域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/area/add [post]

func (*SysArea) SysAreaBatchAdd

func (ctr *SysArea) SysAreaBatchAdd(ctx *Context)

SysAreaBatchAdd api implementation @Summary 批量添加区域 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_area body []types.SysArea false "区域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/area/batch_add [post]

func (*SysArea) SysAreaBatchDel

func (ctr *SysArea) SysAreaBatchDel(ctx *Context)

SysAreaBatchDel api implementation @Summary 批量删除文章 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_area body []types.SysArea false "区域" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/area/batch_del [delete]

func (*SysArea) SysAreaBatchUpdate

func (ctr *SysArea) SysAreaBatchUpdate(ctx *Context)

SysAreaBatchUpdate api implementation @Summary 批量更新文章 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_area body []types.SysArea false "区域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/area/batch_update [put]

func (*SysArea) SysAreaDel

func (ctr *SysArea) SysAreaDel(ctx *Context)

SysAreaDel api implementation @Summary 删除区域 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_area body types.SysArea false "区域" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/area/del [delete]

func (*SysArea) SysAreaGet

func (ctr *SysArea) SysAreaGet(ctx *Context)

SysAreaGet api implementation @Summary 获取区域信息 @Tags 区域 @Param Authorization header string false "认证令牌" @Param id query string false "区域id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/area/get [get]

func (*SysArea) SysAreaPage

func (ctr *SysArea) SysAreaPage(ctx *Context)

SysAreaPage api implementation @Summary 区域分页查询 @Tags 区域 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/area/page [get]

func (*SysArea) SysAreaUpdate

func (ctr *SysArea) SysAreaUpdate(ctx *Context)

SysAreaUpdate api implementation @Summary 更新区域 @Tags 区域 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "区域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/area/update [put]

type SysAttachment

type SysAttachment struct {
	Name string
	Srv  *srv.SysAttachment
	Add,
	BatchAdd,
	Upload,
	Export,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysAttachment

func NewSysAttachment() *SysAttachment

NewSysAttachment defined

func (*SysAttachment) SysAttachmentAdd

func (ctr *SysAttachment) SysAttachmentAdd(ctx *Context)

SysAttachmentAdd api implementation @Summary 添加附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysAttachment false "附件信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/add [post]

func (*SysAttachment) SysAttachmentBatchAdd

func (ctr *SysAttachment) SysAttachmentBatchAdd(ctx *Context)

SysAttachmentBatchAdd api implementation @Summary 批量添加附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_attachment body []types.SysAttachment false "附件信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/attachment/batch_add [post]

func (*SysAttachment) SysAttachmentBatchDel

func (ctr *SysAttachment) SysAttachmentBatchDel(ctx *Context)

SysAttachmentBatchDel api implementation @Summary 批量删除附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_attachment body []types.SysAttachment false "附件" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/attachment/batch_del [post]

func (*SysAttachment) SysAttachmentBatchUpdate

func (ctr *SysAttachment) SysAttachmentBatchUpdate(ctx *Context)

SysAttachmentBatchUpdate api implementation @Summary 批量添加附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_attachment body []types.SysAttachment false "附件信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/attachment/batch_update [post]

func (*SysAttachment) SysAttachmentDel

func (ctr *SysAttachment) SysAttachmentDel(ctx *Context)

SysAttachmentDel api implementation @Summary 删除附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_attachment body types.SysAttachment false "附件" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/del [delete]

func (*SysAttachment) SysAttachmentExport

func (ctr *SysAttachment) SysAttachmentExport(ctx *Context)

SysAttachmentExport api implementation @Summary 附件导出 @Tags 附件 @Param Authorization header string false "认证令牌" @Param file_name query string false "附件名称" @Param file_id query string false "附件ID" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/export [get]

func (*SysAttachment) SysAttachmentGet

func (ctr *SysAttachment) SysAttachmentGet(ctx *Context)

SysAttachmentGet api implementation @Summary 获取附件信息 @Tags 附件 @Param Authorization header string false "认证令牌" @Param id query string false "附件id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/get [get]

func (*SysAttachment) SysAttachmentPage

func (ctr *SysAttachment) SysAttachmentPage(ctx *Context)

SysAttachmentPage api implementation @Summary 附件分页查询 @Tags 附件 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/page [get]

func (*SysAttachment) SysAttachmentUpdate

func (ctr *SysAttachment) SysAttachmentUpdate(ctx *Context)

SysAttachmentUpdate api implementation @Summary 更新附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "附件信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/update [put]

func (*SysAttachment) SysAttachmentUpload

func (ctr *SysAttachment) SysAttachmentUpload(ctx *Context)

SysAttachmentUpload api implementation @Summary 上传附件 @Tags 附件 @Accept application/json @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/attachment/upload [post]

type SysCas

type SysCas struct {
	Name string
	Srv  *srv.SysCas
	Login,
	Logout,
	Affirm,
	Authorize,
	Token,
	URL,
	Oauth2,
	QrOauth2,
	Refresh,
	Check,
	Profile,
	Qrcode,
	Qrconnect,
	QrcodeLogin Controller
}

Controller defined

func NewSysCas

func NewSysCas() *SysCas

NewSysCas defined

func (*SysCas) SysCasAffirm

func (ctr *SysCas) SysCasAffirm(ctx *Context)

SysCasAffirm api implementation @Summary 用户授权 @Tags 认证中心 @Accept application/json @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/affirm [post]

func (*SysCas) SysCasAuthorize

func (ctr *SysCas) SysCasAuthorize(ctx *Context)

SysCasAuthorize api implementation @Summary 用户授权 @Tags 认证中心 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/authorize [get]

func (*SysCas) SysCasCheck

func (ctr *SysCas) SysCasCheck(ctx *Context)

SysCasCheck api implementation @Summary 检验令牌 @Tags 认证中心 @Param openid query string false "openid" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/check [get]

func (*SysCas) SysCasLogin

func (ctr *SysCas) SysCasLogin(ctx *Context)

SysCasLogin api implementation @Summary 用户认证 @Tags 认证中心 @Accept multipart/form-data @Param username formData string false "用户名称" @Param password formData string false "用户密码" @Param domain formData string false "用户域" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/login [post]

func (*SysCas) SysCasLogout

func (ctr *SysCas) SysCasLogout(ctx *Context)

SysCasLogout api implementation @Summary 注销信息 @Tags 认证中心 @Param Authorization header string false "认证令牌" @Param redirect_uri query string false "定向URL" @Param state query string false "状态" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/logout [get]

func (*SysCas) SysCasOauth2

func (ctr *SysCas) SysCasOauth2(ctx *Context)

SysCasOauth2 api implementation @Summary 授权回调 @Tags 认证中心 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/oauth2 [get]

func (*SysCas) SysCasProfile

func (ctr *SysCas) SysCasProfile(ctx *Context)

SysCasProfile api implementation @Summary 用户信息 @Tags 认证中心 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/profile [get]

func (*SysCas) SysCasQrOauth2 added in v1.2.11

func (ctr *SysCas) SysCasQrOauth2(ctx *Context)

SysCasQrOauth2 api implementation @Summary 授权回调 @Tags 认证中心 @Produce application/json @Param state query string false "状态码" @Param code query string false "临时令牌" @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/qr_oauth2 [get]

func (*SysCas) SysCasQrcode

func (ctr *SysCas) SysCasQrcode(ctx *Context)

SysCasQrcode api implementation @Summary 扫码登录(绑定第三方) @Tags 认证中心 @Param Authorization header string false "认证令牌" @Param type query int false "类型(0: 微信 1:叮叮)" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/qrcode [get]

func (*SysCas) SysCasQrcodeLogin added in v1.2.11

func (ctr *SysCas) SysCasQrcodeLogin(ctx *Context)

SysCasQrcodeLogin api implementation @Summary 扫码登陆 @Tags 认证中心 @Produce application/json @Param uuid query string false "唯一id" @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/qrcode_login [get]

func (*SysCas) SysCasQrconnect added in v1.2.11

func (ctr *SysCas) SysCasQrconnect(ctx *Context)

SysCasQrconnect api implementation @Summary 扫码地址 @Tags 认证中心 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/qrconnect [get]

func (*SysCas) SysCasRefresh

func (ctr *SysCas) SysCasRefresh(ctx *Context)

SysCasRefresh api implementation @Summary 刷新令牌 @Tags 认证中心 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/refresh [get]

func (*SysCas) SysCasToken

func (ctr *SysCas) SysCasToken(ctx *Context)

SysCasToken api implementation @Summary 获取令牌 @Tags 认证中心 @Accept application/json @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/token [post]

func (*SysCas) SysCasURL

func (ctr *SysCas) SysCasURL(ctx *Context)

SysCasURL api implementation @Summary 授权地址 @Tags 认证中心 @Param redirect_uri query string false "定向URL" @Param state query string false "状态" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/cas/url [get]

type SysClient

type SysClient struct {
	Name string
	Srv  *srv.SysClient
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysClient

func NewSysClient() *SysClient

NewSysClient defined

func (*SysClient) SysClientAdd

func (ctr *SysClient) SysClientAdd(ctx *Context)

SysClientAdd api implementation @Summary 添加客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysClient false "客户端信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/add [post]

func (*SysClient) SysClientBatchAdd

func (ctr *SysClient) SysClientBatchAdd(ctx *Context)

SysClientBatchAdd api implementation @Summary 批量添加客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_client body []types.SysClient false "客户端信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/client/batch_add [post]

func (*SysClient) SysClientBatchDel

func (ctr *SysClient) SysClientBatchDel(ctx *Context)

SysClientBatchDel api implementation @Summary 批量删除客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_client body []types.SysClient false "客户端" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/batch_del [delete]

func (*SysClient) SysClientBatchUpdate

func (ctr *SysClient) SysClientBatchUpdate(ctx *Context)

SysClientBatchUpdate api implementation @Summary 批量更新客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_client body []types.SysClient false "客户端信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/client/batch_update [put]

func (*SysClient) SysClientDel

func (ctr *SysClient) SysClientDel(ctx *Context)

SysClientDel api implementation @Summary 删除客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_client body types.SysClient false "客户端" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/del [delete]

func (*SysClient) SysClientGet

func (ctr *SysClient) SysClientGet(ctx *Context)

SysClientGet api implementation @Summary 获取客户端信息 @Tags 客户端 @Param Authorization header string false "认证令牌" @Param id query string false "客户端id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/get [get]

func (*SysClient) SysClientPage

func (ctr *SysClient) SysClientPage(ctx *Context)

SysClientPage api implementation @Summary 客户端分页查询 @Tags 客户端 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/page [get]

func (*SysClient) SysClientUpdate

func (ctr *SysClient) SysClientUpdate(ctx *Context)

SysClientUpdate api implementation @Summary 更新客户端 @Tags 客户端 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "客户端信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/client/update [put]

type SysComment

type SysComment struct {
	Name string
	Srv  *srv.SysComment
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysComment

func NewSysComment() *SysComment

NewSysComment defined

func (*SysComment) SysCommentAdd

func (ctr *SysComment) SysCommentAdd(ctx *Context)

SysCommentAdd api implementation @Summary 添加评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body types.SysComment false "评论信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/comment/add [post]

func (*SysComment) SysCommentBatchAdd

func (ctr *SysComment) SysCommentBatchAdd(ctx *Context)

SysCommentBatchAdd api implementation @Summary 批量添加评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body []types.SysComment false "评论信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/comment/batch_add [post]

func (*SysComment) SysCommentBatchDel

func (ctr *SysComment) SysCommentBatchDel(ctx *Context)

SysCommentBatchDel api implementation @Summary 批量删除评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body []types.SysUserTemplate false "评论" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/comment/batch_del [delete]

func (*SysComment) SysCommentBatchUpdate

func (ctr *SysComment) SysCommentBatchUpdate(ctx *Context)

SysCommentBatchUpdate api implementation @Summary 批量更新评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body []types.SysComment false "评论信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/comment/batch_update [put]

func (*SysComment) SysCommentDel

func (ctr *SysComment) SysCommentDel(ctx *Context)

SysCommentDel api implementation @Summary 删除评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body types.SysUserTemplate false "评论" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/comment/del [delete]

func (*SysComment) SysCommentGet

func (ctr *SysComment) SysCommentGet(ctx *Context)

SysCommentGet api implementation @Summary 获取评论信息 @Tags 评论 @Param Authorization header string false "认证令牌" @Param id query string false "评论id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/comment/get [get]

func (*SysComment) SysCommentPage

func (ctr *SysComment) SysCommentPage(ctx *Context)

SysCommentPage api implementation @Summary 评论分页查询 @Tags 评论 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/comment/page [get]

func (*SysComment) SysCommentUpdate

func (ctr *SysComment) SysCommentUpdate(ctx *Context)

SysCommentUpdate api implementation @Summary 更新评论 @Tags 评论 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_comment body types.SysComment false "评论信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/comment/update [put]

type SysDataPermission

type SysDataPermission struct {
	Name string
	Srv  *srv.SysDataPermission
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysDataPermission

func NewSysDataPermission() *SysDataPermission

NewSysDataPermission defined

func (*SysDataPermission) SysDataPermissionAdd

func (ctr *SysDataPermission) SysDataPermissionAdd(ctx *Context)

SysDataPermissionAdd api implementation @Summary 添加数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysDataPermission false "数据权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/data/permission/add [post]

func (*SysDataPermission) SysDataPermissionBatchAdd

func (ctr *SysDataPermission) SysDataPermissionBatchAdd(ctx *Context)

SysDataPermissionBatchAdd api implementation @Summary 批量添加数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_data_permission body []types.SysDataPermission false "数据权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/data/permission/batch_add [post]

func (*SysDataPermission) SysDataPermissionBatchDel

func (ctr *SysDataPermission) SysDataPermissionBatchDel(ctx *Context)

SysDataPermissionBatchDel api implementation @Summary 批量删除数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_data_permission body []types.SysDataPermission false "数据权限" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/data/permission/batch_del [delete]

func (*SysDataPermission) SysDataPermissionBatchUpdate

func (ctr *SysDataPermission) SysDataPermissionBatchUpdate(ctx *Context)

SysDataPermissionBatchUpdate api implementation @Summary 批量更新数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_data_permission body []types.SysDataPermission false "数据权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/data/permission/batch_update [put]

func (*SysDataPermission) SysDataPermissionDel

func (ctr *SysDataPermission) SysDataPermissionDel(ctx *Context)

SysDataPermissionDel api implementation @Summary 删除数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_data_permission body types.SysDataPermission false "数据权限" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/data/permission/del [delete]

func (*SysDataPermission) SysDataPermissionGet

func (ctr *SysDataPermission) SysDataPermissionGet(ctx *Context)

SysDataPermissionGet api implementation @Summary 获取数据权限信息 @Tags 数据权限 @Param Authorization header string false "认证令牌" @Param id query string false "数据权限id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/data/permission/get [get]

func (*SysDataPermission) SysDataPermissionPage

func (ctr *SysDataPermission) SysDataPermissionPage(ctx *Context)

SysDataPermissionPage api implementation @Summary 数据权限分页查询 @Tags 数据权限 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/data/permission/page [get]

func (*SysDataPermission) SysDataPermissionUpdate

func (ctr *SysDataPermission) SysDataPermissionUpdate(ctx *Context)

SysDataPermissionUpdate api implementation @Summary 更新数据权限 @Tags 数据权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "数据权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/data/permission/update [put]

type SysDingtalk

type SysDingtalk struct {
	Name   string
	Srv    *srv.SysDingtalk
	Oauth2 Controller
}

Controller defined

func NewSysDingtalk

func NewSysDingtalk() *SysDingtalk

NewSysDingtalk defined

func (*SysDingtalk) SysDingtalkOauth2

func (ctr *SysDingtalk) SysDingtalkOauth2(ctx *Context)

SysDingtalkOauth2 api implementation @Summary 授权回调 @Tags 钉钉 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/dingtalk/oauth2 [get]

type SysDomain

type SysDomain struct {
	Name string
	Srv  *srv.SysDomain
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysDomain

func NewSysDomain() *SysDomain

NewSysDomain defined

func (*SysDomain) SysDomainAdd

func (ctr *SysDomain) SysDomainAdd(ctx *Context)

SysDomainAdd api implementation @Summary 添加域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysDomain false "域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/domain/add [post]

func (*SysDomain) SysDomainBatchAdd

func (ctr *SysDomain) SysDomainBatchAdd(ctx *Context)

SysDomainBatchAdd api implementation @Summary 批量添加域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_domain body []types.SysDomain false "域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/domain/batch_add [post]

func (*SysDomain) SysDomainBatchDel

func (ctr *SysDomain) SysDomainBatchDel(ctx *Context)

SysDomainBatchDel api implementation @Summary 批量删除域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_domain body []types.SysDomain false "域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/domain/batch_del [delete]

func (*SysDomain) SysDomainBatchUpdate

func (ctr *SysDomain) SysDomainBatchUpdate(ctx *Context)

SysDomainBatchUpdate api implementation @Summary 批量更新域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_domain body []types.SysDomain false "域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/domain/batch_update [put]

func (*SysDomain) SysDomainDel

func (ctr *SysDomain) SysDomainDel(ctx *Context)

SysDomainDel api implementation @Summary 删除域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_domain body types.SysDomain false "域" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/domain/del [delete]

func (*SysDomain) SysDomainGet

func (ctr *SysDomain) SysDomainGet(ctx *Context)

SysDomainGet api implementation @Summary 获取域信息 @Tags 域 @Param Authorization header string false "认证令牌" @Param id query string false "域id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/domain/get [get]

func (*SysDomain) SysDomainPage

func (ctr *SysDomain) SysDomainPage(ctx *Context)

SysDomainPage api implementation @Summary 域分页查询 @Tags 域 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/domain/page [get]

func (*SysDomain) SysDomainUpdate

func (ctr *SysDomain) SysDomainUpdate(ctx *Context)

SysDomainUpdate api implementation @Summary 更新域 @Tags 域 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "域信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/domain/update [put]

type SysMenu

type SysMenu struct {
	Name string
	Srv  *srv.SysMenu
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Sidebar,
	Page,
	Tree,
	Get Controller
}

Controller defined

func NewSysMenu

func NewSysMenu() *SysMenu

NewSysMenu defined

func (*SysMenu) SysMenuAdd

func (ctr *SysMenu) SysMenuAdd(ctx *Context)

SysMenuAdd api implementation @Summary 添加菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body types.SysMenu false "菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/add [post]

func (*SysMenu) SysMenuBatchAdd

func (ctr *SysMenu) SysMenuBatchAdd(ctx *Context)

SysMenuBatchAdd api implementation @Summary 批量添加菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body []types.SysMenu false "菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/menu/batch_add [post]

func (*SysMenu) SysMenuBatchDel

func (ctr *SysMenu) SysMenuBatchDel(ctx *Context)

SysMenuBatchDel api implementation @Summary 批量删除菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body []types.SysMenu false "菜单" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/batch_del [delete]

func (*SysMenu) SysMenuBatchUpdate

func (ctr *SysMenu) SysMenuBatchUpdate(ctx *Context)

SysMenuBatchUpdate api implementation @Summary 批量更新菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body []types.SysMenu false "菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/menu/batch_update [put]

func (*SysMenu) SysMenuDel

func (ctr *SysMenu) SysMenuDel(ctx *Context)

SysMenuDel api implementation @Summary 删除菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body types.SysMenu false "菜单" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/del [delete]

func (*SysMenu) SysMenuGet

func (ctr *SysMenu) SysMenuGet(ctx *Context)

SysMenuGet api implementation @Summary 获取菜单信息 @Tags 菜单 @Param Authorization header string false "认证令牌" @Param id query string false "菜单id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/get [get]

func (*SysMenu) SysMenuPage

func (ctr *SysMenu) SysMenuPage(ctx *Context)

SysMenuPage api implementation @Summary 菜单分页查询 @Tags 菜单 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/page [get]

func (*SysMenu) SysMenuSidebar

func (ctr *SysMenu) SysMenuSidebar(ctx *Context)

SysMenuSidebar api implementation @Summary 系统菜单 @Tags 菜单 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/menu/sidebar [get]

func (*SysMenu) SysMenuTree

func (ctr *SysMenu) SysMenuTree(ctx *Context)

SysMenuTree api implementation @Summary 菜单树形结构 @Tags 菜单 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/menu/tree [get]

func (*SysMenu) SysMenuUpdate

func (ctr *SysMenu) SysMenuUpdate(ctx *Context)

SysMenuUpdate api implementation @Summary 更新菜单 @Tags 菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_menu body types.SysMenu false "菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/menu/update [put]

type SysNotification

type SysNotification struct {
	Name string
	Srv  *srv.SysNotification
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysNotification

func NewSysNotification() *SysNotification

NewSysNotification defined

func (*SysNotification) SysNotificationAdd

func (ctr *SysNotification) SysNotificationAdd(ctx *Context)

SysNotificationAdd api implementation @Summary 添加站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param notification body types.SysNotification false "站内消息信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/notification/add [post]

func (*SysNotification) SysNotificationBatchAdd

func (ctr *SysNotification) SysNotificationBatchAdd(ctx *Context)

SysNotificationBatchAdd api implementation @Summary 批量添加站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_notification body []types.SysNotification false "站内消息信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/notification/batch_add [post]

func (*SysNotification) SysNotificationBatchDel

func (ctr *SysNotification) SysNotificationBatchDel(ctx *Context)

SysNotificationBatchDel api implementation @Summary 批量删除站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_notification body []types.SysNotification false "站内消息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/notification/batch_del [delete]

func (*SysNotification) SysNotificationBatchUpdate

func (ctr *SysNotification) SysNotificationBatchUpdate(ctx *Context)

SysNotificationBatchUpdate api implementation @Summary 批量更新站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_notification body []types.SysNotification false "站内消息信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/notification/batch_update [put]

func (*SysNotification) SysNotificationDel

func (ctr *SysNotification) SysNotificationDel(ctx *Context)

SysNotificationDel api implementation @Summary 删除站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_notification body types.SysNotification false "站内消息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/notification/del [delete]

func (*SysNotification) SysNotificationGet

func (ctr *SysNotification) SysNotificationGet(ctx *Context)

SysNotificationGet api implementation @Summary 获取站内消息信息 @Tags 站内消息 @Param Authorization header string false "认证令牌" @Param id query string false "站内消息id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/notification/get [get]

func (*SysNotification) SysNotificationPage

func (ctr *SysNotification) SysNotificationPage(ctx *Context)

SysNotificationPage api implementation @Summary 站内消息分页查询 @Tags 站内消息 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/notification/page [get]

func (*SysNotification) SysNotificationUpdate

func (ctr *SysNotification) SysNotificationUpdate(ctx *Context)

SysNotificationUpdate api implementation @Summary 更新站内消息 @Tags 站内消息 @Accept application/json @Param Authorization header string false "认证令牌" @Param notification body types.SysRole false "站内消息信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/notification/update [put]

type SysOptionset

type SysOptionset struct {
	Name string
	Srv  *srv.SysOptionset
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysOptionset

func NewSysOptionset() *SysOptionset

NewSysOptionset defined

func (*SysOptionset) SysOptionsetAdd

func (ctr *SysOptionset) SysOptionsetAdd(ctx *Context)

SysOptionsetAdd api implementation @Summary 添加字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysOptionset false "字典信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/add [post]

func (*SysOptionset) SysOptionsetBatchAdd

func (ctr *SysOptionset) SysOptionsetBatchAdd(ctx *Context)

SysOptionsetBatchAdd api implementation @Summary 批量添加字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_optionset body []types.SysOptionset false "字典信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/optionset/batch_add [post]

func (*SysOptionset) SysOptionsetBatchDel

func (ctr *SysOptionset) SysOptionsetBatchDel(ctx *Context)

SysOptionsetBatchDel api implementation @Summary 批量删除字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysOptionset false "字典" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/batch_del [delete]

func (*SysOptionset) SysOptionsetBatchUpdate

func (ctr *SysOptionset) SysOptionsetBatchUpdate(ctx *Context)

SysOptionsetBatchUpdate api implementation @Summary 批量更新字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_optionset body []types.SysOptionset false "字典信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/optionset/batch_update [put]

func (*SysOptionset) SysOptionsetDel

func (ctr *SysOptionset) SysOptionsetDel(ctx *Context)

SysOptionsetDel api implementation @Summary 删除字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_optionset body types.SysOptionset false "字典" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/del [delete]

func (*SysOptionset) SysOptionsetGet

func (ctr *SysOptionset) SysOptionsetGet(ctx *Context)

SysOptionsetGet api implementation @Summary 获取字典信息 @Tags 字典 @Param Authorization header string false "认证令牌" @Param id query string false "字典id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/get [get]

func (*SysOptionset) SysOptionsetPage

func (ctr *SysOptionset) SysOptionsetPage(ctx *Context)

SysOptionsetPage api implementation @Summary 字典分页查询 @Tags 字典 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/page [get]

func (*SysOptionset) SysOptionsetUpdate

func (ctr *SysOptionset) SysOptionsetUpdate(ctx *Context)

SysOptionsetUpdate api implementation @Summary 更新字典 @Tags 字典 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "字典信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/optionset/update [put]

type SysOrg

type SysOrg struct {
	Name string
	Srv  *srv.SysOrg
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Tree,
	Get Controller
}

Controller defined

func NewSysOrg

func NewSysOrg() *SysOrg

NewSysOrg defined

func (*SysOrg) SysOrgAdd

func (ctr *SysOrg) SysOrgAdd(ctx *Context)

SysOrgAdd api implementation @Summary 添加组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysOrg false "组织信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/add [post]

func (*SysOrg) SysOrgBatchAdd

func (ctr *SysOrg) SysOrgBatchAdd(ctx *Context)

SysOrgBatchAdd api implementation @Summary 批量添加组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_org body []types.SysOrg false "组织信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/org/batch_add [post]

func (*SysOrg) SysOrgBatchDel

func (ctr *SysOrg) SysOrgBatchDel(ctx *Context)

SysOrgBatchDel api implementation @Summary 批量删除组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_org body []types.SysOrg false "组织" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/batch_del [delete]

func (*SysOrg) SysOrgBatchUpdate

func (ctr *SysOrg) SysOrgBatchUpdate(ctx *Context)

SysOrgBatchUpdate api implementation @Summary 批量更新组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_org body []types.SysOrg false "组织信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/org/batch_update [put]

func (*SysOrg) SysOrgDel

func (ctr *SysOrg) SysOrgDel(ctx *Context)

SysOrgDel api implementation @Summary 删除组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_org body types.SysOrg false "组织" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/del [delete]

func (*SysOrg) SysOrgGet

func (ctr *SysOrg) SysOrgGet(ctx *Context)

SysOrgGet api implementation @Summary 获取组织信息 @Tags 组织 @Param Authorization header string false "认证令牌" @Param id query string false "组织id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/get [get]

func (*SysOrg) SysOrgPage

func (ctr *SysOrg) SysOrgPage(ctx *Context)

SysOrgPage api implementation @Summary 组织分页查询 @Tags 组织 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/page [get]

func (*SysOrg) SysOrgTree

func (ctr *SysOrg) SysOrgTree(ctx *Context)

SysOrgTree api implementation @Summary 菜单树形结构 @Tags 组织 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/org/tree [get]

func (*SysOrg) SysOrgUpdate

func (ctr *SysOrg) SysOrgUpdate(ctx *Context)

SysOrgUpdate api implementation @Summary 更新组织 @Tags 组织 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "组织信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/org/update [put]

type SysPermission

type SysPermission struct {
	Name string
	Srv  *srv.SysPermission
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysPermission

func NewSysPermission() *SysPermission

NewSysPermission defined

func (*SysPermission) SysPermissionAdd

func (ctr *SysPermission) SysPermissionAdd(ctx *Context)

SysPermissionAdd api implementation @Summary 添加权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysPermission false "权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/permission/add [post]

func (*SysPermission) SysPermissionBatchAdd

func (ctr *SysPermission) SysPermissionBatchAdd(ctx *Context)

SysPermissionBatchAdd api implementation @Summary 批量添加权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_permission body []types.SysPermission false "权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/permission/batch_add [post]

func (*SysPermission) SysPermissionBatchDel

func (ctr *SysPermission) SysPermissionBatchDel(ctx *Context)

SysPermissionBatchDel api implementation @Summary 批量删除权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_permission body []types.SysPermission false "权限" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/permission/batch_del [delete]

func (*SysPermission) SysPermissionBatchUpdate

func (ctr *SysPermission) SysPermissionBatchUpdate(ctx *Context)

SysPermissionBatchUpdate api implementation @Summary 批量更新权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_permission body []types.SysPermission false "权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/permission/batch_update [put]

func (*SysPermission) SysPermissionDel

func (ctr *SysPermission) SysPermissionDel(ctx *Context)

SysPermissionDel api implementation @Summary 删除权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_permission body types.SysPermission false "权限" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/permission/del [delete]

func (*SysPermission) SysPermissionGet

func (ctr *SysPermission) SysPermissionGet(ctx *Context)

SysPermissionGet api implementation @Summary 获取权限信息 @Tags 权限 @Param Authorization header string false "认证令牌" @Param id query string false "权限id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/permission/get [get]

func (*SysPermission) SysPermissionPage

func (ctr *SysPermission) SysPermissionPage(ctx *Context)

SysPermissionPage api implementation @Summary 权限分页查询 @Tags 权限 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/permission/page [get]

func (*SysPermission) SysPermissionUpdate

func (ctr *SysPermission) SysPermissionUpdate(ctx *Context)

SysPermissionUpdate api implementation @Summary 更新权限 @Tags 权限 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "权限信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/permission/update [put]

type SysRole

type SysRole struct {
	Name string
	Srv  *srv.SysRole
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	RoleMenuTree,
	RoleAppFunTree,
	Get Controller
}

Controller defined

func NewSysRole

func NewSysRole() *SysRole

NewSysRole defined

func (*SysRole) SysRoleAdd

func (ctr *SysRole) SysRoleAdd(ctx *Context)

SysRoleAdd api implementation @Summary 添加角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role body types.SysRole false "角色信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/add [post]

func (*SysRole) SysRoleBatchAdd

func (ctr *SysRole) SysRoleBatchAdd(ctx *Context)

SysRoleBatchAdd api implementation @Summary 批量添加角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role body []types.SysRole false "角色信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/role/batch_add [post]

func (*SysRole) SysRoleBatchDel

func (ctr *SysRole) SysRoleBatchDel(ctx *Context)

SysRoleBatchDel api implementation @Summary 批量删除角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysRole false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/batch_del [delete]

func (*SysRole) SysRoleBatchUpdate

func (ctr *SysRole) SysRoleBatchUpdate(ctx *Context)

SysRoleBatchUpdate api implementation @Summary 批量更新角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role body []types.SysRole false "角色信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/role/batch_update [post]

func (*SysRole) SysRoleDel

func (ctr *SysRole) SysRoleDel(ctx *Context)

SysRoleDel api implementation @Summary 删除角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role body types.SysRole false "角色" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/del [delete]

func (*SysRole) SysRoleGet

func (ctr *SysRole) SysRoleGet(ctx *Context)

SysRoleGet api implementation @Summary 获取角色信息 @Tags 角色 @Param Authorization header string false "认证令牌" @Param id query string false "角色id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/get [get]

func (*SysRole) SysRolePage

func (ctr *SysRole) SysRolePage(ctx *Context)

SysRolePage api implementation @Summary 角色分页查询 @Tags 角色 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/page [get]

func (*SysRole) SysRoleRoleAppFunTree

func (ctr *SysRole) SysRoleRoleAppFunTree(ctx *Context)

SysRoleRoleAppFunTree api implementation @Summary 角色App功能树形结构 @Tags 角色 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/role/role_app_fun_tree [get]

func (*SysRole) SysRoleRoleMenuTree

func (ctr *SysRole) SysRoleRoleMenuTree(ctx *Context)

SysRoleRoleMenuTree api implementation @Summary 角色菜单树形结构 @Tags 角色 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Router /api/sys/role/role_menu_tree [get]

func (*SysRole) SysRoleUpdate

func (ctr *SysRole) SysRoleUpdate(ctx *Context)

SysRoleUpdate api implementation @Summary 更新角色 @Tags 角色 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role body types.SysRole false "角色信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/update [put]

type SysRoleMenu

type SysRoleMenu struct {
	Name string
	Srv  *srv.SysRoleMenu
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysRoleMenu

func NewSysRoleMenu() *SysRoleMenu

NewSysRoleMenu defined

func (*SysRoleMenu) SysRoleMenuAdd

func (ctr *SysRoleMenu) SysRoleMenuAdd(ctx *Context)

SysRoleMenuAdd api implementation @Summary 添加角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role_menu body types.SysRoleMenu false "角色菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/add [post]

func (*SysRoleMenu) SysRoleMenuBatchAdd

func (ctr *SysRoleMenu) SysRoleMenuBatchAdd(ctx *Context)

SysRoleMenuBatchAdd api implementation @Summary 批量添加角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param role_menu body []types.SysRoleMenu false "角色菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/batch_add [post]

func (*SysRoleMenu) SysRoleMenuBatchDel

func (ctr *SysRoleMenu) SysRoleMenuBatchDel(ctx *Context)

SysRoleMenuBatchDel api implementation @Summary 批量删除角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysRoleMenu false "角色菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/batch_del [delete]

func (*SysRoleMenu) SysRoleMenuBatchUpdate

func (ctr *SysRoleMenu) SysRoleMenuBatchUpdate(ctx *Context)

SysRoleMenuBatchUpdate api implementation @Summary 批量更新角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role_menu body []types.SysRoleMenu false "角色菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/role/menu/batch_update [put]

func (*SysRoleMenu) SysRoleMenuDel

func (ctr *SysRoleMenu) SysRoleMenuDel(ctx *Context)

SysRoleMenuDel api implementation @Summary 删除角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role_menu body types.SysRoleMenu false "角色菜单" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/del [delete]

func (*SysRoleMenu) SysRoleMenuGet

func (ctr *SysRoleMenu) SysRoleMenuGet(ctx *Context)

SysRoleMenuGet api implementation @Summary 获取角色菜单信息 @Tags 角色菜单 @Param Authorization header string false "认证令牌" @Param id query string false "角色菜单id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/get [get]

func (*SysRoleMenu) SysRoleMenuPage

func (ctr *SysRoleMenu) SysRoleMenuPage(ctx *Context)

SysRoleMenuPage api implementation @Summary 角色菜单分页查询 @Tags 角色菜单 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/page [get]

func (*SysRoleMenu) SysRoleMenuUpdate

func (ctr *SysRoleMenu) SysRoleMenuUpdate(ctx *Context)

SysRoleMenuUpdate api implementation @Summary 更新角色菜单 @Tags 角色菜单 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_role_menu body types.SysRoleMenu false "角色菜单信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/role/menu/update [put]

type SysSchedule

type SysSchedule struct {
	Name string
	Srv  *srv.SysSchedule
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysSchedule

func NewSysSchedule() *SysSchedule

NewSysSchedule defined

func (*SysSchedule) SysScheduleAdd

func (ctr *SysSchedule) SysScheduleAdd(ctx *Context)

SysScheduleAdd api implementation @Summary 添加调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_schedule body types.SysSchedule false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/add [post]

func (*SysSchedule) SysScheduleBatchAdd

func (ctr *SysSchedule) SysScheduleBatchAdd(ctx *Context)

SysScheduleBatchAdd api implementation @Summary 批量添加调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_schedule body []types.SysSchedule false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/schedule/batch_add [post]

func (*SysSchedule) SysScheduleBatchDel

func (ctr *SysSchedule) SysScheduleBatchDel(ctx *Context)

SysScheduleBatchDel api implementation @Summary 批量删除调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysSchedule false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/batch_del [delete]

func (*SysSchedule) SysScheduleBatchUpdate

func (ctr *SysSchedule) SysScheduleBatchUpdate(ctx *Context)

SysScheduleBatchUpdate api implementation @Summary 批量更新调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_schedule body []types.SysSchedule false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/schedule/batch_update [post]

func (*SysSchedule) SysScheduleDel

func (ctr *SysSchedule) SysScheduleDel(ctx *Context)

SysScheduleDel api implementation @Summary 删除调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_schedule body types.SysSchedule false "调度" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/del [delete]

func (*SysSchedule) SysScheduleGet

func (ctr *SysSchedule) SysScheduleGet(ctx *Context)

SysScheduleGet api implementation @Summary 获取调度信息 @Tags 调度 @Param Authorization header string false "认证令牌" @Param id query string false "调度id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/get [get]

func (*SysSchedule) SysSchedulePage

func (ctr *SysSchedule) SysSchedulePage(ctx *Context)

SysSchedulePage api implementation @Summary 调度分页查询 @Tags 调度 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/page [get]

func (*SysSchedule) SysScheduleUpdate

func (ctr *SysSchedule) SysScheduleUpdate(ctx *Context)

SysScheduleUpdate api implementation @Summary 更新调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_schedule body types.SysSchedule false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/update [put]

type SysScheduleHistory

type SysScheduleHistory struct {
	Name string
	Srv  *srv.SysScheduleHistory
	Page Controller
}

Controller defined

func NewSysScheduleHistory

func NewSysScheduleHistory() *SysScheduleHistory

NewSysScheduleHistory defined

func (*SysScheduleHistory) SysScheduleHistoryPage

func (ctr *SysScheduleHistory) SysScheduleHistoryPage(ctx *Context)

SysScheduleHistoryPage api implementation @Summary 调度分页查询 @Tags 调度历史 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/schedule/history/page [get]

type SysScheduling

type SysScheduling struct {
	Name string
	Srv  *srv.SysScheduling
	Add,
	Del,
	Update,
	Page,
	Get Controller
}

Controller defined

func NewSysScheduling

func NewSysScheduling() *SysScheduling

NewSysScheduling defined

func (*SysScheduling) SysSchedulingAdd

func (ctr *SysScheduling) SysSchedulingAdd(ctx *Context)

SysSchedulingAdd api implementation @Summary 添加调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param scheduling body types.Scheduling false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/scheduling/add [post]

func (*SysScheduling) SysSchedulingDel

func (ctr *SysScheduling) SysSchedulingDel(ctx *Context)

SysSchedulingDel api implementation @Summary 删除调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param scheduling body types.Scheduling false "调度" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/scheduling/del [delete]

func (*SysScheduling) SysSchedulingGet

func (ctr *SysScheduling) SysSchedulingGet(ctx *Context)

SysSchedulingGet api implementation @Summary @Tags 调度 @Param Authorization header string false "认证令牌" @Param id query string false "调度id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/scheduling/get [get]

func (*SysScheduling) SysSchedulingPage

func (ctr *SysScheduling) SysSchedulingPage(ctx *Context)

SysSchedulingPage api implementation @Summary 调度分页查询 @Tags 调度 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/scheduling/page [get]

func (*SysScheduling) SysSchedulingUpdate

func (ctr *SysScheduling) SysSchedulingUpdate(ctx *Context)

SysSchedulingUpdate api implementation @Summary 更新调度 @Tags 调度 @Accept application/json @Param Authorization header string false "认证令牌" @Param scheduling body types.Scheduling false "调度信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/scheduling/update [put]

type SysSetting

type SysSetting struct {
	Name string
	Srv  *srv.SysSetting
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysSetting

func NewSysSetting() *SysSetting

NewSysSetting defined

func (*SysSetting) SysSettingAdd

func (ctr *SysSetting) SysSettingAdd(ctx *Context)

SysSettingAdd api implementation @Summary 添加设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysSetting false "设置信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/add [post]

func (*SysSetting) SysSettingBatchAdd

func (ctr *SysSetting) SysSettingBatchAdd(ctx *Context)

SysSettingBatchAdd api implementation @Summary 批量添加设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_setting body []types.SysSetting false "设置信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/setting/batch_add [post]

func (*SysSetting) SysSettingBatchDel

func (ctr *SysSetting) SysSettingBatchDel(ctx *Context)

SysSettingBatchDel api implementation @Summary 批量删除设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_setting body []types.SysSetting false "设置" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/batch_del [delete]

func (*SysSetting) SysSettingBatchUpdate

func (ctr *SysSetting) SysSettingBatchUpdate(ctx *Context)

SysSettingBatchUpdate api implementation @Summary 批量更新设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_setting body []types.SysSetting false "设置信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/setting/batch_update [put]

func (*SysSetting) SysSettingDel

func (ctr *SysSetting) SysSettingDel(ctx *Context)

SysSettingDel api implementation @Summary 删除设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_setting body types.SysSetting false "设置" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/del [delete]

func (*SysSetting) SysSettingGet

func (ctr *SysSetting) SysSettingGet(ctx *Context)

SysSettingGet api implementation @Summary 获取设置信息 @Tags 设置 @Param Authorization header string false "认证令牌" @Param id query string false "设置id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/get [get]

func (*SysSetting) SysSettingPage

func (ctr *SysSetting) SysSettingPage(ctx *Context)

SysSettingPage api implementation @Summary 设置分页查询 @Tags 设置 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Param app_name query string false "所属应用" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/page [get]

func (*SysSetting) SysSettingUpdate

func (ctr *SysSetting) SysSettingUpdate(ctx *Context)

SysSettingUpdate api implementation @Summary 更新设置 @Tags 设置 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "设置信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/setting/update [put]

type SysTable

type SysTable struct {
	Name string
	Srv  *srv.SysTable
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysTable

func NewSysTable() *SysTable

NewSysTable defined

func (*SysTable) SysTableAdd

func (ctr *SysTable) SysTableAdd(ctx *Context)

SysTableAdd api implementation @Summary 添加表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysTable false "表信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/add [post]

func (*SysTable) SysTableBatchAdd

func (ctr *SysTable) SysTableBatchAdd(ctx *Context)

SysTableBatchAdd api implementation @Summary 批量添加表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table body []types.SysTable false "表信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/table/batch_add [post]

func (*SysTable) SysTableBatchDel

func (ctr *SysTable) SysTableBatchDel(ctx *Context)

SysTableBatchDel api implementation @Summary 批量删除表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table body []types.SysTable false "表" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/batch_del [delete]

func (*SysTable) SysTableBatchUpdate

func (ctr *SysTable) SysTableBatchUpdate(ctx *Context)

SysTableBatchUpdate api implementation @Summary 批量更新表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table body []types.SysTable false "表信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/table/batch_update [put]

func (*SysTable) SysTableDel

func (ctr *SysTable) SysTableDel(ctx *Context)

SysTableDel api implementation @Summary 删除表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table body types.SysTable false "表" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/del [delete]

func (*SysTable) SysTableGet

func (ctr *SysTable) SysTableGet(ctx *Context)

SysTableGet api implementation @Summary 获取表信息 @Tags 表 @Param Authorization header string false "认证令牌" @Param id query string false "表id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/get [get]

func (*SysTable) SysTablePage

func (ctr *SysTable) SysTablePage(ctx *Context)

SysTablePage api implementation @Summary 表分页查询 @Tags 表 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/page [get]

func (*SysTable) SysTableUpdate

func (ctr *SysTable) SysTableUpdate(ctx *Context)

SysTableUpdate api implementation @Summary 更新表 @Tags 表 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "表信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/update [put]

type SysTableColumn

type SysTableColumn struct {
	Name string
	Srv  *srv.SysTableColumn
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysTableColumn

func NewSysTableColumn() *SysTableColumn

NewSysTableColumn defined

func (*SysTableColumn) SysTableColumnAdd

func (ctr *SysTableColumn) SysTableColumnAdd(ctx *Context)

SysTableColumnAdd api implementation @Summary 添加表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysTableColumn false "表字段信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/add [post]

func (*SysTableColumn) SysTableColumnBatchAdd

func (ctr *SysTableColumn) SysTableColumnBatchAdd(ctx *Context)

SysTableColumnBatchAdd api implementation @Summary 批量添加表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table_column body []types.SysTableColumn false "表字段" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/table/column/batch_add [post]

func (*SysTableColumn) SysTableColumnBatchDel

func (ctr *SysTableColumn) SysTableColumnBatchDel(ctx *Context)

SysTableColumnBatchDel api implementation @Summary 批量删除表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table_column body []types.SysTableColumn false "表字段" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/batch_del [delete]

func (*SysTableColumn) SysTableColumnBatchUpdate

func (ctr *SysTableColumn) SysTableColumnBatchUpdate(ctx *Context)

SysTableColumnBatchUpdate api implementation @Summary 批量更新表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table_column body []types.SysTableColumn false "表字段" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/table/column/batch_update [put]

func (*SysTableColumn) SysTableColumnDel

func (ctr *SysTableColumn) SysTableColumnDel(ctx *Context)

SysTableColumnDel api implementation @Summary 删除表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_table_column body types.SysTableColumn false "表字段" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/del [delete]

func (*SysTableColumn) SysTableColumnGet

func (ctr *SysTableColumn) SysTableColumnGet(ctx *Context)

SysTableColumnGet api implementation @Summary 获取表字段信息 @Tags 表字段 @Param Authorization header string false "认证令牌" @Param id query string false "表字段id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/get [get]

func (*SysTableColumn) SysTableColumnPage

func (ctr *SysTableColumn) SysTableColumnPage(ctx *Context)

SysTableColumnPage api implementation @Summary 表字段分页查询 @Tags 表字段 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/page [get]

func (*SysTableColumn) SysTableColumnUpdate

func (ctr *SysTableColumn) SysTableColumnUpdate(ctx *Context)

SysTableColumnUpdate api implementation @Summary 更新表字段 @Tags 表字段 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysRole false "表字段信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/table/column/update [put]

type SysTag

type SysTag struct {
	Name string
	Srv  *srv.SysTag
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysTag

func NewSysTag() *SysTag

NewSysTag defined

func (*SysTag) SysTagAdd

func (ctr *SysTag) SysTagAdd(ctx *Context)

SysTagAdd api implementation @Summary 添加标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body types.SysTag false "标签信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/add [post]

func (*SysTag) SysTagBatchAdd

func (ctr *SysTag) SysTagBatchAdd(ctx *Context)

SysTagBatchAdd api implementation @Summary 批量添加标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body []types.SysTag false "标签信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/tag/batch_add [post]

func (*SysTag) SysTagBatchDel

func (ctr *SysTag) SysTagBatchDel(ctx *Context)

SysTagBatchDel api implementation @Summary 批量删除标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body []types.SysTag false "删除标签" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/batch_del [delete]

func (*SysTag) SysTagBatchUpdate

func (ctr *SysTag) SysTagBatchUpdate(ctx *Context)

SysTagBatchUpdate api implementation @Summary 批量更新标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body []types.SysTag false "标签信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/tag/batch_update [put]

func (*SysTag) SysTagDel

func (ctr *SysTag) SysTagDel(ctx *Context)

SysTagDel api implementation @Summary 删除标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body types.SysUserTemplate false "标签" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/del [delete]

func (*SysTag) SysTagGet

func (ctr *SysTag) SysTagGet(ctx *Context)

SysTagGet api implementation @Summary 获取标签信息 @Tags 标签 @Param Authorization header string false "认证令牌" @Param id query string false "标签id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/get [get]

func (*SysTag) SysTagPage

func (ctr *SysTag) SysTagPage(ctx *Context)

SysTagPage api implementation @Summary 标签分页查询 @Tags 标签 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/page [get]

func (*SysTag) SysTagUpdate

func (ctr *SysTag) SysTagUpdate(ctx *Context)

SysTagUpdate api implementation @Summary 更新标签 @Tags 标签 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag body types.SysTag false "标签信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/update [put]

type SysTagGroup

type SysTagGroup struct {
	Name string
	Srv  *srv.SysTagGroup
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysTagGroup

func NewSysTagGroup() *SysTagGroup

NewSysTagGroup defined

func (*SysTagGroup) SysTagGroupAdd

func (ctr *SysTagGroup) SysTagGroupAdd(ctx *Context)

SysTagGroupAdd api implementation @Summary 添加标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body types.SysTagGroup false "标签组信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/group/add [post]

func (*SysTagGroup) SysTagGroupBatchAdd

func (ctr *SysTagGroup) SysTagGroupBatchAdd(ctx *Context)

SysTagGroupBatchAdd api implementation @Summary 批量添加标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body []types.SysTagGroup false "标签组信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/tag/group/batch_add [post]

func (*SysTagGroup) SysTagGroupBatchDel

func (ctr *SysTagGroup) SysTagGroupBatchDel(ctx *Context)

SysTagGroupBatchDel api implementation @Summary 批量删除标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body []types.SysTagGroup false "标签组信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/tag/group/batch_del [delete]

func (*SysTagGroup) SysTagGroupBatchUpdate

func (ctr *SysTagGroup) SysTagGroupBatchUpdate(ctx *Context)

SysTagGroupBatchUpdate api implementation @Summary 批量更新标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body []types.SysTagGroup false "标签组信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/tag/group/batch_update [put]

func (*SysTagGroup) SysTagGroupDel

func (ctr *SysTagGroup) SysTagGroupDel(ctx *Context)

SysTagGroupDel api implementation @Summary 删除标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body types.SysTagGroup false "标签" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/group/del [delete]

func (*SysTagGroup) SysTagGroupGet

func (ctr *SysTagGroup) SysTagGroupGet(ctx *Context)

SysTagGroupGet api implementation @Summary 获取标签组信息 @Tags 标签组 @Param Authorization header string false "认证令牌" @Param id query string false "标签组id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/group/get [get]

func (*SysTagGroup) SysTagGroupPage

func (ctr *SysTagGroup) SysTagGroupPage(ctx *Context)

SysTagGroupPage api implementation @Summary 标签组分页查询 @Tags 标签组 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/group/page [get]

func (*SysTagGroup) SysTagGroupUpdate

func (ctr *SysTagGroup) SysTagGroupUpdate(ctx *Context)

SysTagGroupUpdate api implementation @Summary 更新标签组 @Tags 标签组 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_tag_group body types.SysTagGroup false "标签组信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tag/group/update [put]

type SysTracker

type SysTracker struct {
	Name string
	Srv  *srv.SysTracker
	Page,
	Get Controller
}

Controller defined

func NewSysTracker

func NewSysTracker() *SysTracker

NewSysTracker defined

func (*SysTracker) SysTrackerGet

func (ctr *SysTracker) SysTrackerGet(ctx *Context)

SysTrackerGet api implementation @Summary 获取日志信息 @Tags 日志 @Param Authorization header string false "认证令牌" @Param id query string false "日志id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tracker/get [get]

func (*SysTracker) SysTrackerPage

func (ctr *SysTracker) SysTrackerPage(ctx *Context)

SysTrackerPage api implementation @Summary 日志分页查询 @Tags 日志 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/tracker/page [get]

type SysUser

type SysUser struct {
	Name string
	Srv  *srv.SysUser
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get,
	Login,
	Logout Controller
}

Controller defined

func NewSysUser

func NewSysUser() *SysUser

NewSysUser defined

func (*SysUser) SysUserAdd

func (ctr *SysUser) SysUserAdd(ctx *Context)

SysUserAdd api implementation @Summary 添加用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail "Invalid token" @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/add [post]

func (*SysUser) SysUserBatchAdd

func (ctr *SysUser) SysUserBatchAdd(ctx *Context)

SysUserBatchAdd api implementation @Summary 批量添加用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/batch_add [post]

func (*SysUser) SysUserBatchDel

func (ctr *SysUser) SysUserBatchDel(ctx *Context)

SysUserBatchDel api implementation @Summary 批量删除用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/batch_del [delete]

func (*SysUser) SysUserBatchUpdate

func (ctr *SysUser) SysUserBatchUpdate(ctx *Context)

SysUserBatchUpdate api implementation @Summary 批量更新用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body []types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/batch_update [put]

func (*SysUser) SysUserDel

func (ctr *SysUser) SysUserDel(ctx *Context)

SysUserDel api implementation @Summary 删除用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/del [delete]

func (*SysUser) SysUserGet

func (ctr *SysUser) SysUserGet(ctx *Context)

SysUserGet api implementation @Summary 获取用户信息 @Tags 用户 @Param Authorization header string false "认证令牌" @Param id query string false "用户id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/get [get]

func (*SysUser) SysUserLogin

func (ctr *SysUser) SysUserLogin(ctx *Context)

SysUserLogin api implementation @Summary 用户认证 @Tags 用户 @Accept application/json @Param payload body types.Login false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/login [post]

func (*SysUser) SysUserLogout

func (ctr *SysUser) SysUserLogout(ctx *Context)

SysUserLogout api implementation @Summary 用户退出登录 @Tags 用户 @Param Authorization header string false "认证令牌" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/logout [get]

func (*SysUser) SysUserPage

func (ctr *SysUser) SysUserPage(ctx *Context)

SysUserPage api implementation @Summary 用户分页查询 @Tags 用户 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/page [get]

func (*SysUser) SysUserUpdate

func (ctr *SysUser) SysUserUpdate(ctx *Context)

SysUserUpdate api implementation @Summary 更新用户 @Tags 用户 @Accept application/json @Param Authorization header string false "认证令牌" @Param user body types.SysUser false "用户信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/update [put]

type SysUserTemplate

type SysUserTemplate struct {
	Name string
	Srv  *srv.SysUserTemplate
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysUserTemplate

func NewSysUserTemplate() *SysUserTemplate

NewSysUserTemplate defined

func (*SysUserTemplate) SysUserTemplateAdd

func (ctr *SysUserTemplate) SysUserTemplateAdd(ctx *Context)

SysUserTemplateAdd api implementation @Summary 添加用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/add [post]

func (*SysUserTemplate) SysUserTemplateBatchAdd

func (ctr *SysUserTemplate) SysUserTemplateBatchAdd(ctx *Context)

SysUserTemplateBatchAdd api implementation @Summary 批量添加用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body []types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/batch_add [post]

func (*SysUserTemplate) SysUserTemplateBatchDel

func (ctr *SysUserTemplate) SysUserTemplateBatchDel(ctx *Context)

SysUserTemplateBatchDel api implementation @Summary 批量删除用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body []types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/batch_del [delete]

func (*SysUserTemplate) SysUserTemplateBatchUpdate

func (ctr *SysUserTemplate) SysUserTemplateBatchUpdate(ctx *Context)

SysUserTemplateBatchUpdate api implementation @Summary 批量更新用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body []types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/batch_update [put]

func (*SysUserTemplate) SysUserTemplateDel

func (ctr *SysUserTemplate) SysUserTemplateDel(ctx *Context)

SysUserTemplateDel api implementation @Summary 删除用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/del [delete]

func (*SysUserTemplate) SysUserTemplateGet

func (ctr *SysUserTemplate) SysUserTemplateGet(ctx *Context)

SysUserTemplateGet api implementation @Summary 获取用户模板信息 @Tags 用户模板 @Param Authorization header string false "认证令牌" @Param id query string false "用户模板id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/get [get]

func (*SysUserTemplate) SysUserTemplatePage

func (ctr *SysUserTemplate) SysUserTemplatePage(ctx *Context)

SysUserTemplatePage api implementation @Summary 用户模板分页查询 @Tags 用户模板 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/page [get]

func (*SysUserTemplate) SysUserTemplateUpdate

func (ctr *SysUserTemplate) SysUserTemplateUpdate(ctx *Context)

SysUserTemplateUpdate api implementation @Summary 更新用户模板 @Tags 用户模板 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template body types.SysUserTemplate false "用户模板信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/update [put]

type SysUserTemplateDetail

type SysUserTemplateDetail struct {
	Name string
	Srv  *srv.SysUserTemplateDetail
	Add,
	BatchAdd,
	Del,
	BatchDel,
	Update,
	BatchUpdate,
	Page,
	Get Controller
}

Controller defined

func NewSysUserTemplateDetail

func NewSysUserTemplateDetail() *SysUserTemplateDetail

NewSysUserTemplateDetail defined

func (*SysUserTemplateDetail) SysUserTemplateDetailAdd

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailAdd(ctx *Context)

SysUserTemplateDetailAdd api implementation @Summary 添加用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/detail/add [post]

func (*SysUserTemplateDetail) SysUserTemplateDetailBatchAdd

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchAdd(ctx *Context)

SysUserTemplateDetailBatchAdd api implementation @Summary 批量添加用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body []types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/detail/batch_add [post]

func (*SysUserTemplateDetail) SysUserTemplateDetailBatchDel

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchDel(ctx *Context)

SysUserTemplateDetailBatchDel api implementation @Summary 批量删除用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body []types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/detail/batch_del [delete]

func (*SysUserTemplateDetail) SysUserTemplateDetailBatchUpdate

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchUpdate(ctx *Context)

SysUserTemplateDetailBatchUpdate api implementation @Summary 批量更新用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body []types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router/api/sys/user/template/detail/batch_update [put]

func (*SysUserTemplateDetail) SysUserTemplateDetailDel

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailDel(ctx *Context)

SysUserTemplateDetailDel api implementation @Summary 删除用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/detail/del [delete]

func (*SysUserTemplateDetail) SysUserTemplateDetailGet

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailGet(ctx *Context)

SysUserTemplateDetailGet api implementation @Summary 获取用户模板详情信息 @Tags 用户模板详情 @Param Authorization header string false "认证令牌" @Param id query string false "用户模板详情id" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/detail/get [get]

func (*SysUserTemplateDetail) SysUserTemplateDetailPage

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailPage(ctx *Context)

SysUserTemplateDetailPage api implementation @Summary 用户模板详情分页查询 @Tags 用户模板详情 @Param Authorization header string false "认证令牌" @Param page query int false "页码" @Param size query int false "单页数" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/detail/page [get]

func (*SysUserTemplateDetail) SysUserTemplateDetailUpdate

func (ctr *SysUserTemplateDetail) SysUserTemplateDetailUpdate(ctx *Context)

SysUserTemplateDetailUpdate api implementation @Summary 更新用户模板详情 @Tags 用户模板详情 @Accept application/json @Param Authorization header string false "认证令牌" @Param sys_user_template_detail body types.SysUserTemplateDetail false "用户模板详情信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/user/template/detail/update [put]

type SysWechat

type SysWechat struct {
	Name   string
	Srv    *srv.SysWechat
	Oauth2 Controller
}

Controller defined

func NewSysWechat

func NewSysWechat() *SysWechat

NewSysWechat defined

func (*SysWechat) SysWechatOauth2

func (ctr *SysWechat) SysWechatOauth2(ctx *Context)

SysWechatOauth2 api implementation @Summary 授权回调 @Tags 微信 @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/wechat/oauth2 [get]

type SysWorker

type SysWorker struct {
	Name string
	Srv  *srv.SysWorker
	Add,
	Get Controller
}

Controller defined

func NewSysWorker

func NewSysWorker() *SysWorker

NewSysWorker defined

func (*SysWorker) SysWorkerAdd

func (ctr *SysWorker) SysWorkerAdd(ctx *Context)

SysWorkerAdd api implementation @Summary 添加worker @Tags worker @Accept application/json @Param Authorization header string false "认证令牌" @Param worker body types.Worker false "worker信息" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/worker/add [post]

func (*SysWorker) SysWorkerGet

func (ctr *SysWorker) SysWorkerGet(ctx *Context)

SysWorkerGet api implementation @Summary 获取worker信息 @Tags worker @Param Authorization header string false "认证令牌" @Param code query string false "worker code" @Produce application/json @Failure 403 {object} types.Fail @Success 200 {object} types.Success @Failure 500 {object} types.Fail @Router /api/sys/worker/get [get]

type Table

type Table interface {
	TableName() string
}

Table defined TODO

type Token

type Token struct {
	ClientID         string        `bson:"ClientID"`
	UserID           string        `bson:"UserID"`
	Domain           string        `bson:"Domain"`
	RedirectURI      string        `bson:"RedirectURI"`
	Scope            string        `bson:"Scope"`
	Code             string        `bson:"Code"`
	CodeCreateAt     time.Time     `bson:"CodeCreateAt"`
	CodeExpiresIn    time.Duration `bson:"CodeExpiresIn"`
	Access           string        `bson:"Access"`
	AccessCreateAt   time.Time     `bson:"AccessCreateAt"`
	AccessExpiresIn  time.Duration `bson:"AccessExpiresIn"`
	Refresh          string        `bson:"Refresh"`
	RefreshCreateAt  time.Time     `bson:"RefreshCreateAt"`
	RefreshExpiresIn time.Duration `bson:"RefreshExpiresIn"`
}

Token token model

func NewToken

func NewToken() *Token

NewToken create to token model instance

func (*Token) GetAccess

func (t *Token) GetAccess() string

GetAccess access Token

func (*Token) GetAccessCreateAt

func (t *Token) GetAccessCreateAt() time.Time

GetAccessCreateAt create Time

func (*Token) GetAccessExpiresIn

func (t *Token) GetAccessExpiresIn() time.Duration

GetAccessExpiresIn the lifetime in seconds of the access token

func (*Token) GetClientID

func (t *Token) GetClientID() string

GetClientID the client id

func (*Token) GetCode

func (t *Token) GetCode() string

GetCode authorization code

func (*Token) GetCodeCreateAt

func (t *Token) GetCodeCreateAt() time.Time

GetCodeCreateAt create Time

func (*Token) GetCodeExpiresIn

func (t *Token) GetCodeExpiresIn() time.Duration

GetCodeExpiresIn the lifetime in seconds of the authorization code

func (*Token) GetDomain

func (t *Token) GetDomain() string

GetDomain the domain of user

func (*Token) GetRedirectURI

func (t *Token) GetRedirectURI() string

GetRedirectURI redirect URI

func (*Token) GetRefresh

func (t *Token) GetRefresh() string

GetRefresh refresh Token

func (*Token) GetRefreshCreateAt

func (t *Token) GetRefreshCreateAt() time.Time

GetRefreshCreateAt create Time

func (*Token) GetRefreshExpiresIn

func (t *Token) GetRefreshExpiresIn() time.Duration

GetRefreshExpiresIn the lifetime in seconds of the refresh token

func (*Token) GetScope

func (t *Token) GetScope() string

GetScope get scope of authorization

func (*Token) GetUserID

func (t *Token) GetUserID() string

GetUserID the user id

func (*Token) New

func (t *Token) New() TokenInfo

New create to token model instance

func (*Token) SetAccess

func (t *Token) SetAccess(access string)

SetAccess access Token

func (*Token) SetAccessCreateAt

func (t *Token) SetAccessCreateAt(createAt time.Time)

SetAccessCreateAt create Time

func (*Token) SetAccessExpiresIn

func (t *Token) SetAccessExpiresIn(exp time.Duration)

SetAccessExpiresIn the lifetime in seconds of the access token

func (*Token) SetClientID

func (t *Token) SetClientID(clientID string)

SetClientID the client id

func (*Token) SetCode

func (t *Token) SetCode(code string)

SetCode authorization code

func (*Token) SetCodeCreateAt

func (t *Token) SetCodeCreateAt(createAt time.Time)

SetCodeCreateAt create Time

func (*Token) SetCodeExpiresIn

func (t *Token) SetCodeExpiresIn(exp time.Duration)

SetCodeExpiresIn the lifetime in seconds of the authorization code

func (*Token) SetDomain

func (t *Token) SetDomain(domain string)

SetDomain the domain of user

func (*Token) SetRedirectURI

func (t *Token) SetRedirectURI(redirectURI string)

SetRedirectURI redirect URI

func (*Token) SetRefresh

func (t *Token) SetRefresh(refresh string)

SetRefresh refresh Token

func (*Token) SetRefreshCreateAt

func (t *Token) SetRefreshCreateAt(createAt time.Time)

SetRefreshCreateAt create Time

func (*Token) SetRefreshExpiresIn

func (t *Token) SetRefreshExpiresIn(exp time.Duration)

SetRefreshExpiresIn the lifetime in seconds of the refresh token

func (*Token) SetScope

func (t *Token) SetScope(scope string)

SetScope get scope of authorization

func (*Token) SetUserID

func (t *Token) SetUserID(userID string)

SetUserID the user id

type TokenInfo

type TokenInfo interface {
	New() TokenInfo

	GetClientID() string
	SetClientID(string)
	GetUserID() string
	SetUserID(string)
	GetDomain() string
	SetDomain(string)
	GetRedirectURI() string
	SetRedirectURI(string)
	GetScope() string
	SetScope(string)

	GetCode() string
	SetCode(string)
	GetCodeCreateAt() time.Time
	SetCodeCreateAt(time.Time)
	GetCodeExpiresIn() time.Duration
	SetCodeExpiresIn(time.Duration)

	GetAccess() string
	SetAccess(string)
	GetAccessCreateAt() time.Time
	SetAccessCreateAt(time.Time)
	GetAccessExpiresIn() time.Duration
	SetAccessExpiresIn(time.Duration)

	GetRefresh() string
	SetRefresh(string)
	GetRefreshCreateAt() time.Time
	SetRefreshCreateAt(time.Time)
	GetRefreshExpiresIn() time.Duration
	SetRefreshExpiresIn(time.Duration)
}

TokenInfo the token information model interface

type TokenProvider added in v1.2.17

type TokenProvider struct {
	// contains filtered or unexported fields
}

func (*TokenProvider) Config added in v1.2.17

func (p *TokenProvider) Config(i *Identity)

Config defined TODO

func (*TokenProvider) GetName added in v1.2.17

func (p *TokenProvider) GetName() string

GetName defined TODO

func (*TokenProvider) Ticket added in v1.2.17

func (p *TokenProvider) Ticket(userId, extra string, ctx *Context) (TokenInfo, error)

Verify defined TODO

func (*TokenProvider) Verify added in v1.2.17

func (p *TokenProvider) Verify(ctx *Context) (TokenInfo, bool)

Verify defined TODO

type Worker

type Worker interface {
	AddJob(j worker.Job)
	AddJobHandler(string, func(types.Worker) (interface{}, error))
	GetJobHandler(string) func(types.Worker) (interface{}, error)
	Save(types.Worker) error
	Update(types.Worker) error
	Find(string) (types.Worker, error)
}

Worker defined TODO

type XLogger

type XLogger struct {
	*logrus.Logger
	// contains filtered or unexported fields
}

XLogger defined

func (*XLogger) IsShowSQL

func (s *XLogger) IsShowSQL() bool

IsShowSQL implement ILogger

func (*XLogger) Level

func (s *XLogger) Level() log.LogLevel

Level implement ILogger

func (*XLogger) SetLevel

func (s *XLogger) SetLevel(l log.LogLevel)

SetLevel implement ILogger

func (*XLogger) ShowSQL

func (s *XLogger) ShowSQL(show ...bool)

ShowSQL implement ILogger

Jump to

Keyboard shortcuts

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