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

40 lines
1.4 KiB
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/tiger1103/gfast/v3/api/v1/system"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
)
type ISysDept interface {
GetList(ctx context.Context, req *system.DeptSearchReq) (list []*entity.SysDept, err error)
GetFromCache(ctx context.Context) (list []*entity.SysDept, err error)
Add(ctx context.Context, req *system.DeptAddReq) (err error)
Edit(ctx context.Context, req *system.DeptEditReq) (err error)
Delete(ctx context.Context, id uint64) (err error)
FindSonByParentId(deptList []*entity.SysDept, deptId uint64) []*entity.SysDept
GetListTree(pid uint64, list []*entity.SysDept) (deptTree []*model.SysDeptTreeRes)
GetByDeptId(ctx context.Context, deptId uint64) (dept *entity.SysDept, err error)
GetByDept(ctx context.Context, deptId interface{}) (dept *model.LinkDeptRes)
}
var localSysDept ISysDept
func SysDept() ISysDept {
if localSysDept == nil {
panic("implement not found for interface ISysDept, forgot register?")
}
return localSysDept
}
func RegisterSysDept(i ISysDept) {
localSysDept = i
}