Documentation ¶
Index ¶
- Constants
- Variables
- func AuthEncrypt(ctx *Context)
- func AuthJWT(ctx *Context)
- func AuthToken(ctx *Context)
- func BuildExcel(cfg ExcelConfig) (types.ExportInfo, error)
- func CachePage(store persistence.CacheStore, expire time.Duration) gin.HandlerFunc
- func ClientSrvService(dol *Dolphin)
- func CreateKey(u string) string
- func DebugPrintRoute(httpMethod, absolutePath, _ string, _ int)
- func DebugRoutes(rg *RouterGroup)
- func DefaultFormat(interface{}) func(interface{}) interface{}
- func DefaultHandler(source map[string]interface{}) map[string]interface{}
- func Dir(root string, listDirectory bool) http.FileSystem
- func DomainFormat(ct string) []byte
- func DomainSrvService(dol *Dolphin)
- func DumpRecv(dol *Dolphin) func(ctx *Context, p *LogFormatterParams)
- func Formatter(param gin.LogFormatterParams) string
- func Hostname() string
- func InitLogger()
- func InitRedisClient()
- func InitSession()
- func InitTracker()
- func InitViper()
- func NewCookieStore(opt ...CookieOption) session.ManagerStore
- func NewLifeHook(e *Dolphin) lifeHook
- func NewRestful(engine *gin.Engine, dol *Dolphin) *restful
- func NewRpcClient(_ string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func OptionsetsFormat(db *xorm.Engine) func(interface{}) func(interface{}) interface{}
- func ParseExcel(cfg ExcelConfig) ([]map[string]string, error)
- func RegisterResponseCacheGob()
- func StaticRoutes(dol *Dolphin)
- func SysAppFunRoutes(rg *RouterGroup)
- func SysAreaRoutes(rg *RouterGroup)
- func SysAttachmentRoutes(rg *RouterGroup)
- func SysCasRoutes(rg *RouterGroup)
- func SysClientRoutes(rg *RouterGroup)
- func SysCommentRoutes(rg *RouterGroup)
- func SysDataPermissionRoutes(rg *RouterGroup)
- func SysDingtalkRoutes(rg *RouterGroup)
- func SysDomainRoutes(rg *RouterGroup)
- func SysMenuRoutes(rg *RouterGroup)
- func SysNotificationRoutes(rg *RouterGroup)
- func SysOptionsetRoutes(rg *RouterGroup)
- func SysOrgRoutes(rg *RouterGroup)
- func SysPermissionRoutes(rg *RouterGroup)
- func SysRoleMenuRoutes(rg *RouterGroup)
- func SysRoleRoutes(rg *RouterGroup)
- func SysScheduleHistoryRoutes(rg *RouterGroup)
- func SysScheduleRoutes(rg *RouterGroup)
- func SysSchedulingRoutes(rg *RouterGroup)
- func SysSettingRoutes(rg *RouterGroup)
- func SysTableColumnRoutes(rg *RouterGroup)
- func SysTableRoutes(rg *RouterGroup)
- func SysTagGroupRoutes(rg *RouterGroup)
- func SysTagRoutes(rg *RouterGroup)
- func SysTrackerRoutes(rg *RouterGroup)
- func SysUserRoutes(rg *RouterGroup)
- func SysUserTemplateDetailRoutes(rg *RouterGroup)
- func SysUserTemplateRoutes(rg *RouterGroup)
- func SysWechatRoutes(rg *RouterGroup)
- func SysWorkerRoutes(rg *RouterGroup)
- func UserSrvService(dol *Dolphin)
- type AuthInfo
- type AuthOAuth2
- type ClientStore
- type Context
- func (ctx *Context) BusinessDB(domain string) *xorm.Engine
- func (ctx *Context) Fail(err error, status ...int)
- func (ctx *Context) LoginInInfo(user *types.SysUser) (bool, error)
- func (ctx *Context) OmitByZero(source interface{}) (target interface{})
- func (ctx *Context) QueryBool(key string, init ...bool) bool
- func (ctx *Context) QueryInt(key string, init ...int) int
- func (ctx *Context) QueryRange(key string, init ...string) (string, string)
- func (ctx *Context) QueryString(key string, init ...string) string
- func (ctx *Context) RenderFile(filepath string, filename string, context ...interface{})
- func (ctx *Context) RenderHTML(filepath string, context ...interface{})
- func (ctx *Context) RenderXML(filepath string, context ...interface{})
- func (ctx *Context) ShouldBindBody(ptr interface{}) error
- func (ctx *Context) ShouldBindQuery(ptr interface{}) error
- func (ctx *Context) ShouldBindWith(ptr interface{}) error
- func (ctx *Context) String(code int, data string, context ...interface{}) error
- func (ctx *Context) Success(data interface{}, status ...int)
- func (ctx *Context) TypeQuery() *Query
- type Controller
- type CookieOption
- func SetBlockFunc(blockFunc func([]byte) (cipher.Block, error)) CookieOption
- func SetBlockKey(blockKey []byte) CookieOption
- func SetCookieName(cookieName string) CookieOption
- func SetHashFunc(hashFunc func() hash.Hash) CookieOption
- func SetHashKey(hashKey []byte) CookieOption
- func SetMaxAge(maxAge int) CookieOption
- func SetMaxLength(maxLength int) CookieOption
- func SetMinAge(minAge int) CookieOption
- func SetSecure(secure bool) CookieOption
- type Cron
- type Debug
- func (ctr *Debug) DebugAllocs(ctx *Context)
- func (ctr *Debug) DebugBlock(ctx *Context)
- func (ctr *Debug) DebugCmdline(ctx *Context)
- func (ctr *Debug) DebugGoroutine(ctx *Context)
- func (ctr *Debug) DebugHeap(ctx *Context)
- func (ctr *Debug) DebugMutex(ctx *Context)
- func (ctr *Debug) DebugPprof(ctx *Context)
- func (ctr *Debug) DebugProfile(ctx *Context)
- func (ctr *Debug) DebugSymbol(ctx *Context)
- func (ctr *Debug) DebugThreadcreate(ctx *Context)
- func (ctr *Debug) DebugTrace(ctx *Context)
- type DefaultCron
- type DefaultManager
- func (d *DefaultManager) AddBusinessDB(domain string, db *xorm.Engine)
- func (d *DefaultManager) Cron() Cron
- func (d *DefaultManager) GetBusinessDB(domain string) *xorm.Engine
- func (d *DefaultManager) GetBusinessDBSet() map[string]*xorm.Engine
- func (d *DefaultManager) GetTokenStore() oauth2.TokenStore
- func (d *DefaultManager) ModelSet() ModelSetter
- func (d *DefaultManager) Worker() Worker
- type DefaultWorker
- func (d *DefaultWorker) AddJob(j worker.Job)
- func (d *DefaultWorker) AddJobHandler(code string, funk func(types.Worker) (interface{}, error))
- func (d *DefaultWorker) Find(code string) (types.Worker, error)
- func (d *DefaultWorker) GetJobHandler(code string) func(types.Worker) (interface{}, error)
- func (d *DefaultWorker) Save(w types.Worker) error
- func (d *DefaultWorker) Update(w types.Worker) error
- type Dolphin
- func (dol *Dolphin) Reflesh() error
- func (dol *Dolphin) RegisterSQLDir(db *xorm.Engine, sqlDir string) error
- func (dol *Dolphin) RegisterSQLMap(db *xorm.Engine, sqlMap map[string]string) error
- func (dol *Dolphin) Run() error
- func (dol *Dolphin) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (dol *Dolphin) SyncController() error
- func (dol *Dolphin) SyncModel() error
- func (dol *Dolphin) SyncService() error
- func (dol *Dolphin) SyncSrv(svc svc.Svc) error
- type ExcelConfig
- type HandlerFunc
- type HandlersChain
- type Hook
- type HttpHandler
- type JWT
- type Job
- type Lifecycle
- type LogFormatterParams
- type Manager
- type ModelSetter
- type NopCloser
- type Option
- type Query
- func (q *Query) GetArrayBool(key string, init ...[]bool) []bool
- func (q *Query) GetArrayFloat64(key string, init ...[]float64) []float64
- func (q *Query) GetArrayInt(key string, init ...[]int) []int64
- func (q *Query) GetArrayString(key string, init ...[]string) []string
- func (q *Query) GetBool(key string, init ...bool) bool
- func (q *Query) GetInt(key string, init ...int64) int64
- func (q *Query) GetRange(key string, init ...string) (string, string)
- func (q *Query) GetString(key string, init ...string) string
- func (q *Query) GetUser() string
- func (q *Query) Remove(keys ...string)
- func (q *Query) Reset()
- func (q *Query) SetArrayBool(key string, init ...[]bool) func()
- func (q *Query) SetArrayFloat64(key string, init ...[]float64) func()
- func (q *Query) SetArrayInt(key string, init ...[]int64) func()
- func (q *Query) SetArrayString(key string, init ...[]string) func()
- func (q *Query) SetBool(key string, init ...bool) func()
- func (q *Query) SetInt(key string, init ...int) func()
- func (q *Query) SetRange(key string, init ...[]string) func()
- func (q *Query) SetRule(rule string)
- func (q *Query) SetString(key string, init ...string) func()
- func (q *Query) SetTags(params ...)
- func (q *Query) SetUnescaped(key string, value string)
- func (q *Query) SetUser(uid ...string)
- func (q *Query) Unmarshal(v interface{}) error
- func (q *Query) Value() map[string]interface{}
- type RedisStore
- func (c *RedisStore) Add(key string, value interface{}, expires time.Duration) error
- func (c *RedisStore) Decrement(key string, delta uint64) (newValue uint64, err error)
- func (c *RedisStore) Delete(key string) error
- func (c *RedisStore) Flush() error
- func (c *RedisStore) Get(key string, ptrValue interface{}) error
- func (c *RedisStore) Increment(key string, delta uint64) (uint64, error)
- func (c *RedisStore) Replace(key string, value interface{}, expires time.Duration) error
- func (c *RedisStore) Set(key string, value interface{}, expires time.Duration) error
- type RouterGroup
- func (group *RouterGroup) Group(relativePath string, handlers ...HandlerFunc) *RouterGroup
- func (group *RouterGroup) Handle(httpMethod, relativePath string, handlerFuncs ...HandlerFunc)
- func (group *RouterGroup) Static(relativePath, root string)
- func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem)
- func (group *RouterGroup) Use(middleware ...HandlerFunc)
- type RpcHandler
- type Secret
- type Static
- type SysAppFun
- func (ctr *SysAppFun) SysAppFunAdd(ctx *Context)
- func (ctr *SysAppFun) SysAppFunBatchAdd(ctx *Context)
- func (ctr *SysAppFun) SysAppFunBatchDel(ctx *Context)
- func (ctr *SysAppFun) SysAppFunBatchUpdate(ctx *Context)
- func (ctr *SysAppFun) SysAppFunDel(ctx *Context)
- func (ctr *SysAppFun) SysAppFunGet(ctx *Context)
- func (ctr *SysAppFun) SysAppFunPage(ctx *Context)
- func (ctr *SysAppFun) SysAppFunTree(ctx *Context)
- func (ctr *SysAppFun) SysAppFunUpdate(ctx *Context)
- type SysArea
- func (ctr *SysArea) SysAreaAdd(ctx *Context)
- func (ctr *SysArea) SysAreaBatchAdd(ctx *Context)
- func (ctr *SysArea) SysAreaBatchDel(ctx *Context)
- func (ctr *SysArea) SysAreaBatchUpdate(ctx *Context)
- func (ctr *SysArea) SysAreaDel(ctx *Context)
- func (ctr *SysArea) SysAreaGet(ctx *Context)
- func (ctr *SysArea) SysAreaPage(ctx *Context)
- func (ctr *SysArea) SysAreaUpdate(ctx *Context)
- type SysAttachment
- func (ctr *SysAttachment) SysAttachmentAdd(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentBatchAdd(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentBatchDel(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentBatchUpdate(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentDel(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentExport(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentGet(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentPage(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentUpdate(ctx *Context)
- func (ctr *SysAttachment) SysAttachmentUpload(ctx *Context)
- type SysCas
- func (ctr *SysCas) SysCasAffirm(ctx *Context)
- func (ctr *SysCas) SysCasAuthorize(ctx *Context)
- func (ctr *SysCas) SysCasCheck(ctx *Context)
- func (ctr *SysCas) SysCasLogin(ctx *Context)
- func (ctr *SysCas) SysCasLogout(ctx *Context)
- func (ctr *SysCas) SysCasOauth2(ctx *Context)
- func (ctr *SysCas) SysCasProfile(ctx *Context)
- func (ctr *SysCas) SysCasQrcode(ctx *Context)
- func (ctr *SysCas) SysCasRefresh(ctx *Context)
- func (ctr *SysCas) SysCasToken(ctx *Context)
- func (ctr *SysCas) SysCasURL(ctx *Context)
- type SysClient
- func (ctr *SysClient) SysClientAdd(ctx *Context)
- func (ctr *SysClient) SysClientBatchAdd(ctx *Context)
- func (ctr *SysClient) SysClientBatchDel(ctx *Context)
- func (ctr *SysClient) SysClientBatchUpdate(ctx *Context)
- func (ctr *SysClient) SysClientDel(ctx *Context)
- func (ctr *SysClient) SysClientGet(ctx *Context)
- func (ctr *SysClient) SysClientPage(ctx *Context)
- func (ctr *SysClient) SysClientUpdate(ctx *Context)
- type SysComment
- func (ctr *SysComment) SysCommentAdd(ctx *Context)
- func (ctr *SysComment) SysCommentBatchAdd(ctx *Context)
- func (ctr *SysComment) SysCommentBatchDel(ctx *Context)
- func (ctr *SysComment) SysCommentBatchUpdate(ctx *Context)
- func (ctr *SysComment) SysCommentDel(ctx *Context)
- func (ctr *SysComment) SysCommentGet(ctx *Context)
- func (ctr *SysComment) SysCommentPage(ctx *Context)
- func (ctr *SysComment) SysCommentUpdate(ctx *Context)
- type SysDataPermission
- func (ctr *SysDataPermission) SysDataPermissionAdd(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionBatchAdd(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionBatchDel(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionBatchUpdate(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionDel(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionGet(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionPage(ctx *Context)
- func (ctr *SysDataPermission) SysDataPermissionUpdate(ctx *Context)
- type SysDingtalk
- type SysDomain
- func (ctr *SysDomain) SysDomainAdd(ctx *Context)
- func (ctr *SysDomain) SysDomainBatchAdd(ctx *Context)
- func (ctr *SysDomain) SysDomainBatchDel(ctx *Context)
- func (ctr *SysDomain) SysDomainBatchUpdate(ctx *Context)
- func (ctr *SysDomain) SysDomainDel(ctx *Context)
- func (ctr *SysDomain) SysDomainGet(ctx *Context)
- func (ctr *SysDomain) SysDomainPage(ctx *Context)
- func (ctr *SysDomain) SysDomainUpdate(ctx *Context)
- type SysMenu
- func (ctr *SysMenu) SysMenuAdd(ctx *Context)
- func (ctr *SysMenu) SysMenuBatchAdd(ctx *Context)
- func (ctr *SysMenu) SysMenuBatchDel(ctx *Context)
- func (ctr *SysMenu) SysMenuBatchUpdate(ctx *Context)
- func (ctr *SysMenu) SysMenuDel(ctx *Context)
- func (ctr *SysMenu) SysMenuGet(ctx *Context)
- func (ctr *SysMenu) SysMenuPage(ctx *Context)
- func (ctr *SysMenu) SysMenuSidebar(ctx *Context)
- func (ctr *SysMenu) SysMenuTree(ctx *Context)
- func (ctr *SysMenu) SysMenuUpdate(ctx *Context)
- type SysNotification
- func (ctr *SysNotification) SysNotificationAdd(ctx *Context)
- func (ctr *SysNotification) SysNotificationBatchAdd(ctx *Context)
- func (ctr *SysNotification) SysNotificationBatchDel(ctx *Context)
- func (ctr *SysNotification) SysNotificationBatchUpdate(ctx *Context)
- func (ctr *SysNotification) SysNotificationDel(ctx *Context)
- func (ctr *SysNotification) SysNotificationGet(ctx *Context)
- func (ctr *SysNotification) SysNotificationPage(ctx *Context)
- func (ctr *SysNotification) SysNotificationUpdate(ctx *Context)
- type SysOptionset
- func (ctr *SysOptionset) SysOptionsetAdd(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetBatchAdd(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetBatchDel(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetBatchUpdate(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetDel(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetGet(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetPage(ctx *Context)
- func (ctr *SysOptionset) SysOptionsetUpdate(ctx *Context)
- type SysOrg
- func (ctr *SysOrg) SysOrgAdd(ctx *Context)
- func (ctr *SysOrg) SysOrgBatchAdd(ctx *Context)
- func (ctr *SysOrg) SysOrgBatchDel(ctx *Context)
- func (ctr *SysOrg) SysOrgBatchUpdate(ctx *Context)
- func (ctr *SysOrg) SysOrgDel(ctx *Context)
- func (ctr *SysOrg) SysOrgGet(ctx *Context)
- func (ctr *SysOrg) SysOrgPage(ctx *Context)
- func (ctr *SysOrg) SysOrgTree(ctx *Context)
- func (ctr *SysOrg) SysOrgUpdate(ctx *Context)
- type SysPermission
- func (ctr *SysPermission) SysPermissionAdd(ctx *Context)
- func (ctr *SysPermission) SysPermissionBatchAdd(ctx *Context)
- func (ctr *SysPermission) SysPermissionBatchDel(ctx *Context)
- func (ctr *SysPermission) SysPermissionBatchUpdate(ctx *Context)
- func (ctr *SysPermission) SysPermissionDel(ctx *Context)
- func (ctr *SysPermission) SysPermissionGet(ctx *Context)
- func (ctr *SysPermission) SysPermissionPage(ctx *Context)
- func (ctr *SysPermission) SysPermissionUpdate(ctx *Context)
- type SysRole
- func (ctr *SysRole) SysRoleAdd(ctx *Context)
- func (ctr *SysRole) SysRoleBatchAdd(ctx *Context)
- func (ctr *SysRole) SysRoleBatchDel(ctx *Context)
- func (ctr *SysRole) SysRoleBatchUpdate(ctx *Context)
- func (ctr *SysRole) SysRoleDel(ctx *Context)
- func (ctr *SysRole) SysRoleGet(ctx *Context)
- func (ctr *SysRole) SysRolePage(ctx *Context)
- func (ctr *SysRole) SysRoleRoleAppFunTree(ctx *Context)
- func (ctr *SysRole) SysRoleRoleMenuTree(ctx *Context)
- func (ctr *SysRole) SysRoleUpdate(ctx *Context)
- type SysRoleMenu
- func (ctr *SysRoleMenu) SysRoleMenuAdd(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuBatchAdd(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuBatchDel(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuBatchUpdate(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuDel(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuGet(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuPage(ctx *Context)
- func (ctr *SysRoleMenu) SysRoleMenuUpdate(ctx *Context)
- type SysSchedule
- func (ctr *SysSchedule) SysScheduleAdd(ctx *Context)
- func (ctr *SysSchedule) SysScheduleBatchAdd(ctx *Context)
- func (ctr *SysSchedule) SysScheduleBatchDel(ctx *Context)
- func (ctr *SysSchedule) SysScheduleBatchUpdate(ctx *Context)
- func (ctr *SysSchedule) SysScheduleDel(ctx *Context)
- func (ctr *SysSchedule) SysScheduleGet(ctx *Context)
- func (ctr *SysSchedule) SysSchedulePage(ctx *Context)
- func (ctr *SysSchedule) SysScheduleUpdate(ctx *Context)
- type SysScheduleHistory
- type SysScheduling
- type SysSetting
- func (ctr *SysSetting) SysSettingAdd(ctx *Context)
- func (ctr *SysSetting) SysSettingBatchAdd(ctx *Context)
- func (ctr *SysSetting) SysSettingBatchDel(ctx *Context)
- func (ctr *SysSetting) SysSettingBatchUpdate(ctx *Context)
- func (ctr *SysSetting) SysSettingDel(ctx *Context)
- func (ctr *SysSetting) SysSettingGet(ctx *Context)
- func (ctr *SysSetting) SysSettingPage(ctx *Context)
- func (ctr *SysSetting) SysSettingUpdate(ctx *Context)
- type SysTable
- func (ctr *SysTable) SysTableAdd(ctx *Context)
- func (ctr *SysTable) SysTableBatchAdd(ctx *Context)
- func (ctr *SysTable) SysTableBatchDel(ctx *Context)
- func (ctr *SysTable) SysTableBatchUpdate(ctx *Context)
- func (ctr *SysTable) SysTableDel(ctx *Context)
- func (ctr *SysTable) SysTableGet(ctx *Context)
- func (ctr *SysTable) SysTablePage(ctx *Context)
- func (ctr *SysTable) SysTableUpdate(ctx *Context)
- type SysTableColumn
- func (ctr *SysTableColumn) SysTableColumnAdd(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnBatchAdd(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnBatchDel(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnBatchUpdate(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnDel(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnGet(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnPage(ctx *Context)
- func (ctr *SysTableColumn) SysTableColumnUpdate(ctx *Context)
- type SysTag
- func (ctr *SysTag) SysTagAdd(ctx *Context)
- func (ctr *SysTag) SysTagBatchAdd(ctx *Context)
- func (ctr *SysTag) SysTagBatchDel(ctx *Context)
- func (ctr *SysTag) SysTagBatchUpdate(ctx *Context)
- func (ctr *SysTag) SysTagDel(ctx *Context)
- func (ctr *SysTag) SysTagGet(ctx *Context)
- func (ctr *SysTag) SysTagPage(ctx *Context)
- func (ctr *SysTag) SysTagUpdate(ctx *Context)
- type SysTagGroup
- func (ctr *SysTagGroup) SysTagGroupAdd(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupBatchAdd(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupBatchDel(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupBatchUpdate(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupDel(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupGet(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupPage(ctx *Context)
- func (ctr *SysTagGroup) SysTagGroupUpdate(ctx *Context)
- type SysTracker
- type SysUser
- func (ctr *SysUser) SysUserAdd(ctx *Context)
- func (ctr *SysUser) SysUserBatchAdd(ctx *Context)
- func (ctr *SysUser) SysUserBatchDel(ctx *Context)
- func (ctr *SysUser) SysUserBatchUpdate(ctx *Context)
- func (ctr *SysUser) SysUserDel(ctx *Context)
- func (ctr *SysUser) SysUserGet(ctx *Context)
- func (ctr *SysUser) SysUserLogin(ctx *Context)
- func (ctr *SysUser) SysUserLogout(ctx *Context)
- func (ctr *SysUser) SysUserPage(ctx *Context)
- func (ctr *SysUser) SysUserUpdate(ctx *Context)
- type SysUserTemplate
- func (ctr *SysUserTemplate) SysUserTemplateAdd(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateBatchAdd(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateBatchDel(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateBatchUpdate(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateDel(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateGet(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplatePage(ctx *Context)
- func (ctr *SysUserTemplate) SysUserTemplateUpdate(ctx *Context)
- type SysUserTemplateDetail
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailAdd(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchAdd(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchDel(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailBatchUpdate(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailDel(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailGet(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailPage(ctx *Context)
- func (ctr *SysUserTemplateDetail) SysUserTemplateDetailUpdate(ctx *Context)
- type SysWechat
- type SysWorker
- type Table
- type Token
- func (t *Token) GetAccess() string
- func (t *Token) GetAccessCreateAt() time.Time
- func (t *Token) GetAccessExpiresIn() time.Duration
- func (t *Token) GetClientID() string
- func (t *Token) GetCode() string
- func (t *Token) GetCodeCreateAt() time.Time
- func (t *Token) GetCodeExpiresIn() time.Duration
- func (t *Token) GetDomain() string
- func (t *Token) GetRedirectURI() string
- func (t *Token) GetRefresh() string
- func (t *Token) GetRefreshCreateAt() time.Time
- func (t *Token) GetRefreshExpiresIn() time.Duration
- func (t *Token) GetScope() string
- func (t *Token) GetUserID() string
- func (t *Token) New() TokenInfo
- func (t *Token) SetAccess(access string)
- func (t *Token) SetAccessCreateAt(createAt time.Time)
- func (t *Token) SetAccessExpiresIn(exp time.Duration)
- func (t *Token) SetClientID(clientID string)
- func (t *Token) SetCode(code string)
- func (t *Token) SetCodeCreateAt(createAt time.Time)
- func (t *Token) SetCodeExpiresIn(exp time.Duration)
- func (t *Token) SetDomain(domain string)
- func (t *Token) SetRedirectURI(redirectURI string)
- func (t *Token) SetRefresh(refresh string)
- func (t *Token) SetRefreshCreateAt(createAt time.Time)
- func (t *Token) SetRefreshExpiresIn(exp time.Duration)
- func (t *Token) SetScope(scope string)
- func (t *Token) SetUserID(userID string)
- type TokenInfo
- type Worker
- type XLogger
Constants ¶
const ( TokenExpiryDelta = 10 * time.Second TokenType = "token" EncryptType = "encrypt" JWTType = "jwt" )
TokenExpiryDelta determines how earlier a token should be considered expired than its actual expiration time. It is used to avoid late expirations due to client-server time mismatches.
const RootRelativePath = "/"
RootRelativePath defined TODO
Variables ¶
var ( // TokenkeyNamespace define TokenkeyNamespace = "dolphin:token:" // OA2Cfg defined OA2Cfg xoauth2.Config )
var ( // MaxWorkers defined TODO MaxWorkers = 15 // RedisClient defined TODO RedisClient redis.Cmdable // CacheStore defined TODO CacheStore persistence.CacheStore = persistence.NewInMemoryStore(60 * time.Second) )
var DebugInstance = NewDebug()
DebugInstance defined
var DomainInstance = NewStatic()
DomainInstance defined TODO
var Name = "platform"
Name project
var NopHandlerFunc = func(ctx *Context) { ctx.Next() }
var PageCachePrefix = "dolphin.page.cache"
var RpcClientDailTimeOut = 3 * time.Second
RpcClientDailTimeOut defined TODO
var SysAppFunInstance = NewSysAppFun()
SysAppFunInstance defined
var SysAreaInstance = NewSysArea()
SysAreaInstance defined
var SysAttachmentInstance = NewSysAttachment()
SysAttachmentInstance defined
var SysCasInstance = NewSysCas()
SysCasInstance defined
var SysClientInstance = NewSysClient()
SysClientInstance defined
var SysCommentInstance = NewSysComment()
SysCommentInstance defined
var SysDataPermissionInstance = NewSysDataPermission()
SysDataPermissionInstance defined
var SysDingtalkInstance = NewSysDingtalk()
SysDingtalkInstance defined
var SysDomainInstance = NewSysDomain()
SysDomainInstance defined
var SysMenuInstance = NewSysMenu()
SysMenuInstance defined
var SysNotificationInstance = NewSysNotification()
SysNotificationInstance defined
var SysOptionsetInstance = NewSysOptionset()
SysOptionsetInstance defined
var SysOrgInstance = NewSysOrg()
SysOrgInstance defined
var SysPermissionInstance = NewSysPermission()
SysPermissionInstance defined
var SysRoleInstance = NewSysRole()
SysRoleInstance defined
var SysRoleMenuInstance = NewSysRoleMenu()
SysRoleMenuInstance defined
var SysScheduleHistoryInstance = NewSysScheduleHistory()
SysScheduleHistoryInstance defined
var SysScheduleInstance = NewSysSchedule()
SysScheduleInstance defined
var SysSchedulingInstance = NewSysScheduling()
SysSchedulingInstance defined
var SysSettingInstance = NewSysSetting()
SysSettingInstance defined
var SysTableColumnInstance = NewSysTableColumn()
SysTableColumnInstance defined
var SysTableInstance = NewSysTable()
SysTableInstance defined
var SysTagGroupInstance = NewSysTagGroup()
SysTagGroupInstance defined
var SysTagInstance = NewSysTag()
SysTagInstance defined
var SysTrackerInstance = NewSysTracker()
SysTrackerInstance defined
var SysUserInstance = NewSysUser()
SysUserInstance defined
var SysUserTemplateDetailInstance = NewSysUserTemplateDetail()
SysUserTemplateDetailInstance defined
var SysUserTemplateInstance = NewSysUserTemplate()
SysUserTemplateInstance defined
var SysWechatInstance = NewSysWechat()
SysWechatInstance defined
var SysWorkerInstance = NewSysWorker()
SysWorkerInstance defined
var TrackerStore func(domain string, beans *[]types.SysTracker) error
TrackerStore store logs
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
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 base[0][2] != redirect[0][2] { logrus.Errorf("baseURI=%v, redirectURI=%v", base[0][2], redirect[0][2]) return errors.New("invalid redirect uri") } return nil }
ValidateURIHandler defined
Functions ¶
func CachePage ¶
func CachePage(store persistence.CacheStore, expire time.Duration) gin.HandlerFunc
CachePage Decorator
func DebugPrintRoute ¶ added in v1.2.1
DebugPrintRoute defined TODO
func DefaultFormat ¶
func DefaultFormat(interface{}) func(interface{}) interface{}
DefaultFormat defined
func DefaultHandler ¶
DefaultHandler defined
func DumpRecv ¶ added in v1.2.1
func DumpRecv(dol *Dolphin) func(ctx *Context, p *LogFormatterParams)
DumpRecv defined tracker recorder
func Hostname ¶
func Hostname() string
Hostname returns the name of the host, if no hostname, a random id is returned.
func InitTracker ¶ added in v1.2.2
func InitTracker()
func NewCookieStore ¶
func NewCookieStore(opt ...CookieOption) session.ManagerStore
NewCookieStore Create an instance of a cookie store
func NewRestful ¶ added in v1.2.1
NewRestful defined TODO
func NewRpcClient ¶
func NewRpcClient(_ string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
NewRpcClient defined TODO
func OptionsetsFormat ¶
OptionsetsFormat defiend
func RegisterResponseCacheGob ¶
func RegisterResponseCacheGob()
RegisterResponseCacheGob registers the responseCache type with the encoding/gob package
func SysDataPermissionRoutes ¶
func SysDataPermissionRoutes(rg *RouterGroup)
SysDataPermissionRoutes defined
func SysNotificationRoutes ¶
func SysNotificationRoutes(rg *RouterGroup)
SysNotificationRoutes defined
func SysScheduleHistoryRoutes ¶
func SysScheduleHistoryRoutes(rg *RouterGroup)
SysScheduleHistoryRoutes defined
func SysUserTemplateDetailRoutes ¶
func SysUserTemplateDetailRoutes(rg *RouterGroup)
SysUserTemplateDetailRoutes defined
func SysUserTemplateRoutes ¶
func SysUserTemplateRoutes(rg *RouterGroup)
SysUserTemplateRoutes defined
Types ¶
type AuthInfo ¶
type AuthInfo interface { GetToken() TokenInfo VerifyToken(*Context) bool VerifyEncrypt(*Context) bool VerifyJWT(*Context) bool }
AuthInfo defined
type AuthOAuth2 ¶
type AuthOAuth2 struct {
// contains filtered or unexported fields
}
AuthOAuth2 deifned
func (*AuthOAuth2) VerifyEncrypt ¶
func (auth *AuthOAuth2) VerifyEncrypt(ctx *Context) bool
VerifyEncrypt defined
func (*AuthOAuth2) VerifyJWT ¶
func (auth *AuthOAuth2) VerifyJWT(ctx *Context) bool
VerifyJWT defined
func (*AuthOAuth2) VerifyToken ¶
func (auth *AuthOAuth2) VerifyToken(ctx *Context) bool
VerifyToken defined
type ClientStore ¶
type ClientStore struct { }
ClientStore client information store
func (*ClientStore) GetByID ¶
func (cs *ClientStore) GetByID(id string) (oauth2.ClientInfo, error)
GetByID according to the ID for the client information
type Context ¶
Context defined TODO
func (*Context) BusinessDB ¶
BusinessDB defined TODO
func (*Context) LoginInInfo ¶
LoginInInfo defined TODO
func (*Context) OmitByZero ¶
func (ctx *Context) OmitByZero(source interface{}) (target interface{})
OmitByZero omit invalid fileds
func (*Context) QueryRange ¶
QueryRange defined TODO
func (*Context) QueryString ¶
QueryString defined TODO
func (*Context) RenderFile ¶
RenderFile defined TODO
func (*Context) RenderHTML ¶
RenderHTL defined TODO
func (*Context) ShouldBindBody ¶
ShouldBindBody defined TODO
func (*Context) ShouldBindQuery ¶
ShouldBindQuery defined TODO, support for nullType
func (*Context) ShouldBindWith ¶
ShouldBindWith defined TODO ShouldBindWith is done in following order: 1) path params; 2) query params; 3) request body.
type Controller ¶
type Controller struct { Method string RelativePath string Auth, Roles, Cache, Interceptor, Handler 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
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 }
Debug defined
func (*Debug) DebugAllocs ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) RefreshCron ¶
func (d *DefaultCron) RefreshCron(id int, spec string) (int, error)
RefreshCron 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) 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
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) 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
type Dolphin ¶
type Dolphin struct { http.Handler RouterGroup Lifecycle PlatformDB *xorm.Engine Manager Manager OAuth2 *server.Server JWT *JWT Http HttpHandler RPC RpcHandler // contains filtered or unexported fields }
Dolphin defined parse app engine
func (*Dolphin) RegisterSQLDir ¶
RegisterSQLDir defined TODO
func (*Dolphin) RegisterSQLMap ¶
RegisterSQLMap 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 HandlerFunc ¶
type HandlerFunc func(ctx *Context)
HandlerFunc defined TODO
func DumpBody ¶ added in v1.2.1
func DumpBody(recv func(*Context, *LogFormatterParams)) HandlerFunc
DumpBody instance a Logger middleware with config.
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
A Hook is a pair of start and stop callbacks, either of which can be nil, plus a string identifying the supplier of the hook.
type HttpHandler ¶
type HttpHandler interface { ServeHTTP(http.ResponseWriter, *http.Request) Handle(string, string, ...HandlerFunc) // contains filtered or unexported methods }
HttpHandler defined TODO
type JWT ¶
JWT defined TODO
func (*JWT) BearerAuth ¶
BearerAuth parse bearer token
func (*JWT) GenerateAccessToken ¶
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 string 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
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
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query defined TODO
func (*Query) GetArrayBool ¶
GetArrayBool defined TODO
func (*Query) GetArrayFloat64 ¶
GetArrayFloat64 defined TODO
func (*Query) GetArrayInt ¶
GetArrayInt defined TODO
func (*Query) GetArrayString ¶
GetArrayString defined TODO
func (*Query) SetArrayBool ¶
SetArrayBool defined TODO
func (*Query) SetArrayFloat64 ¶
SetArrayFloat64 defined TODO
func (*Query) SetArrayInt ¶
SetArrayInt defined TODO
func (*Query) SetArrayString ¶
SetArrayString defined TODO
func (*Query) SetUnescaped ¶ added in v1.2.10
SetUnescaped defined TODO
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
RedisStore represents the cache with redis persistence
func NewRedisCache ¶
func NewRedisCache(redis redis.Cmdable, defaultExpiration time.Duration) *RedisStore
NewRedisCache returns a RedisStore until redigo supports sharding/clustering, only one host will be in hostList
func NewRedisCacheWithPool ¶
func NewRedisCacheWithPool(redisClient *redis.Client, defaultExpiration time.Duration) *RedisStore
NewRedisCacheWithPool returns a RedisStore using the provided pool until redigo supports sharding/clustering, only one host will be in hostList
func (*RedisStore) Add ¶
func (c *RedisStore) Add(key string, value interface{}, expires time.Duration) error
Add (see CacheStore interface)
func (*RedisStore) Decrement ¶
func (c *RedisStore) Decrement(key string, delta uint64) (newValue uint64, err error)
Decrement (see CacheStore interface)
func (*RedisStore) Delete ¶
func (c *RedisStore) Delete(key string) error
Delete (see CacheStore interface)
func (*RedisStore) Get ¶
func (c *RedisStore) Get(key string, ptrValue interface{}) error
Get (see CacheStore interface)
func (*RedisStore) Increment ¶
func (c *RedisStore) Increment(key string, delta uint64) (uint64, error)
Increment (see CacheStore interface)
type RouterGroup ¶
type RouterGroup struct { Handlers HandlersChain // contains filtered or unexported fields }
RouterGroup defined TODO
func (*RouterGroup) Group ¶
func (group *RouterGroup) Group(relativePath string, handlers ...HandlerFunc) *RouterGroup
Group defined TODO
func (*RouterGroup) Handle ¶
func (group *RouterGroup) Handle(httpMethod, relativePath string, handlerFuncs ...HandlerFunc)
Handle defined TODO
func (*RouterGroup) Static ¶
func (group *RouterGroup) Static(relativePath, root string)
Static defined TODO
func (*RouterGroup) StaticFS ¶
func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem)
StaticFS defined TODO
type RpcHandler ¶
type RpcHandler interface { RegisterServer(func(*grpc.Server)) OnStart(context.Context) error OnStop(context.Context) error }
RpcHandler defined
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
type SysAppFun ¶
type SysAppFun struct { Name string Srv *srv.SysAppFun Add, BatchAdd, Del, BatchDel, Update, BatchUpdate, Page, Tree, Get Controller }
SysAppFun defined
func (*SysAppFun) SysAppFunAdd ¶
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 ¶
SysAppFunBatchAdd 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_add [post]
func (*SysAppFun) SysAppFunBatchDel ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysArea defined
func (*SysArea) SysAreaAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysAttachment 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, Refresh, Check, Profile, Qrcode Controller }
SysCas defined
func (*SysCas) SysCasAffirm ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) SysCasQrcode ¶
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) SysCasRefresh ¶
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 ¶
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 ¶
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 }
SysClient defined
func (*SysClient) SysClientAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysComment 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 }
SysDataPermission 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 }
SysDingtalk 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 }
SysDomain defined
func (*SysDomain) SysDomainAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysMenu defined
func (*SysMenu) SysMenuAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysNotification 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 }
SysOptionset 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 }
SysOrg defined
func (*SysOrg) SysOrgAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysPermission 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 }
SysRole defined
func (*SysRole) SysRoleAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysRoleMenu 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 }
SysSchedule 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 }
SysScheduleHistory 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 }
SysScheduling 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 }
SysSetting 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 }
SysTable defined
func (*SysTable) SysTableAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysTableColumn 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 }
SysTag defined
func (*SysTag) SysTagAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysTagGroup 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 }
SysTracker 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 }
SysUser defined
func (*SysUser) SysUserAdd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 }
SysUserTemplate 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 }
SysUserTemplateDetail 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 }
SysWechat defined
func (*SysWechat) SysWechatOauth2 ¶
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 }
SysWorker defined
func (*SysWorker) SysWorkerAdd ¶
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 ¶
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 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 (*Token) GetAccessCreateAt ¶
GetAccessCreateAt create Time
func (*Token) GetAccessExpiresIn ¶
GetAccessExpiresIn the lifetime in seconds of the access token
func (*Token) GetCodeCreateAt ¶
GetCodeCreateAt create Time
func (*Token) GetCodeExpiresIn ¶
GetCodeExpiresIn the lifetime in seconds of the authorization code
func (*Token) GetRefreshCreateAt ¶
GetRefreshCreateAt create Time
func (*Token) GetRefreshExpiresIn ¶
GetRefreshExpiresIn the lifetime in seconds of the refresh token
func (*Token) SetAccessCreateAt ¶
SetAccessCreateAt create Time
func (*Token) SetAccessExpiresIn ¶
SetAccessExpiresIn the lifetime in seconds of the access token
func (*Token) SetCodeCreateAt ¶
SetCodeCreateAt create Time
func (*Token) SetCodeExpiresIn ¶
SetCodeExpiresIn the lifetime in seconds of the authorization code
func (*Token) SetRedirectURI ¶
SetRedirectURI redirect URI
func (*Token) SetRefreshCreateAt ¶
SetRefreshCreateAt create Time
func (*Token) SetRefreshExpiresIn ¶
SetRefreshExpiresIn the lifetime in seconds of the refresh token
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 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
Source Files ¶
- app.auth.go
- app.auth.jwt.go
- app.auth.secret.go
- app.auth.token.go
- app.auto.go
- app.cache.go
- app.cookie.go
- app.ctx.go
- app.dolphin.go
- app.go
- app.http.go
- app.lifecycle.go
- app.logger.go
- app.manager.go
- app.middles.go
- app.model.go
- app.query.go
- app.redis.go
- app.routergroup.go
- app.rpc.go
- app.session.go
- app.static.go
- app.token.go
- app.viper.go
- app.xlsx.go
- sys_app_fun.go
- sys_area.go
- sys_attachment.go
- sys_cas.go
- sys_client.go
- sys_comment.go
- sys_data_permission.go
- sys_debug.go
- sys_dingtalk.go
- sys_domain.go
- sys_menu.go
- sys_notification.go
- sys_optionset.go
- sys_org.go
- sys_permission.go
- sys_role.go
- sys_role_menu.go
- sys_schedule.go
- sys_schedule_history.go
- sys_scheduling.go
- sys_setting.go
- sys_table.go
- sys_table_column.go
- sys_tag.go
- sys_tag_group.go
- sys_tracker.go
- sys_user.go
- sys_user_template.go
- sys_user_template_detail.go
- sys_wechat.go
- sys_worker.go