Files
zmkgC/internal/app/system/service/sub_project.go
2025-07-07 20:11:59 +08:00

38 lines
1.2 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期2024-03-21 18:53:15
// 生成路径: internal/app/system/service/sub_project.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 ISubProject interface {
List(ctx context.Context, req *system.SubProjectSearchReq) (res *system.SubProjectSearchRes, err error)
GetById(ctx context.Context, Id uint) (res *model.SubProjectInfoRes, err error)
Add(ctx context.Context, req *system.SubProjectAddReq) (err error)
Edit(ctx context.Context, req *system.SubProjectEditReq) (err error)
Delete(ctx context.Context, Id []uint) (err error)
}
var localSubProject ISubProject
func SubProject() ISubProject {
if localSubProject == nil {
panic("implement not found for interface ISubProject, forgot register?")
}
return localSubProject
}
func RegisterSubProject(i ISubProject) {
localSubProject = i
}