yxh 379abd65e0 fix 1、修复虚拟树形结构ID错误问题
2、修复组件name首字母大写造成的页面缓存失败问题
    3、修复excel导出文件未关闭资源的问题
    4、更新数据权限同时支持按创建人划分(created_by)或按部门(dept_id划分)
    5、更新token自动刷新功能
2024-06-08 23:17:33 +08:00

36 lines
983 B
Go

// ================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type IContext interface {
Init(r *ghttp.Request, customCtx *model.Context)
Get(ctx context.Context) *model.Context
SetUser(ctx context.Context, ctxUser *model.ContextUser)
GetLoginUser(ctx context.Context) *model.ContextUser
GetUserId(ctx context.Context) uint64
GetDeptId(ctx context.Context) uint64
}
var localContext IContext
func Context() IContext {
if localContext == nil {
panic("implement not found for interface IContext, forgot register?")
}
return localContext
}
func RegisterContext(i IContext) {
localContext = i
}