38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// ==========================================================================
|
||
// GFast自动生成service操作代码。
|
||
// 生成日期:2023-07-29 15:32:09
|
||
// 生成路径: internal/app/system/service/sys_file.go
|
||
// 生成人:gfast
|
||
// desc:文件
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package service
|
||
|
||
import (
|
||
"context"
|
||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||
)
|
||
|
||
type ISysFile interface {
|
||
List(ctx context.Context, req *system.SysFileSearchReq) (res *system.SysFileSearchRes, err error)
|
||
GetByFileId(ctx context.Context, FileId int) (res *model.SysFileInfoRes, err error)
|
||
Add(ctx context.Context, req *system.SysFileAddReq) (err error)
|
||
Edit(ctx context.Context, req *system.SysFileEditReq) (err error)
|
||
Delete(ctx context.Context, FileId []int) (err error)
|
||
}
|
||
|
||
var localSysFile ISysFile
|
||
|
||
func SysFile() ISysFile {
|
||
if localSysFile == nil {
|
||
panic("implement not found for interface ISysFile, forgot register?")
|
||
}
|
||
return localSysFile
|
||
}
|
||
|
||
func RegisterSysFile(i ISysFile) {
|
||
localSysFile = i
|
||
}
|