初始
This commit is contained in:
36
internal/app/system/service/document_project.go
Normal file
36
internal/app/system/service/document_project.go
Normal file
@ -0,0 +1,36 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2023-09-16 10:32:03
|
||||
// 生成路径: internal/app/system/service/document_project.go
|
||||
// 生成人:gfast
|
||||
// desc:项目模板
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type IDocumentProject interface {
|
||||
//List(ctx context.Context, req *system.DocumentProjectSearchReq) (res *system.DocumentProjectSearchRes, err error)
|
||||
//GetById(ctx context.Context, Id int) (res *model.DocumentProjectInfoRes, err error)
|
||||
//Add(ctx context.Context, req *system.DocumentProjectAddReq) (err error)
|
||||
//Edit(ctx context.Context, req *system.DocumentProjectEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []int) (err error)
|
||||
//TreeStructureFunc(ctx context.Context, req *system.TreeStructureReq) (res *system.TreeStructureRes, err error)
|
||||
}
|
||||
|
||||
var localDocumentProject IDocumentProject
|
||||
|
||||
func DocumentProject() IDocumentProject {
|
||||
if localDocumentProject == nil {
|
||||
panic("implement not found for interface IDocumentProject, forgot register?")
|
||||
}
|
||||
return localDocumentProject
|
||||
}
|
||||
|
||||
func RegisterDocumentProject(i IDocumentProject) {
|
||||
localDocumentProject = i
|
||||
}
|
Reference in New Issue
Block a user