Files
zmkgC/internal/app/system/service/project_finance.go

40 lines
1.4 KiB
Go
Raw Permalink Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期2024-04-29 12:01:01
// 生成路径: internal/app/system/service/project_finance.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 IProjectFinance interface {
List(ctx context.Context, req *system.ProjectFinanceSearchReq) (res *system.ProjectFinanceSearchRes, err error)
GetById(ctx context.Context, Id int) (res *model.ProjectFinanceInfoResVo, err error)
Add(ctx context.Context, req *system.ProjectFinanceAddReq) (err error)
Edit(ctx context.Context, req *system.ProjectFinanceEditReq) (err error)
Delete(ctx context.Context, Id []int) (err error)
GetByProjectId(ctx context.Context, id int) (res *model.ProjectFinanceInfoResVo, err error)
UploadExcel(ctx context.Context, id int64) (res *system.UploadExcelRes, err error)
}
var localProjectFinance IProjectFinance
func ProjectFinance() IProjectFinance {
if localProjectFinance == nil {
panic("implement not found for interface IProjectFinance, forgot register?")
}
return localProjectFinance
}
func RegisterProjectFinance(i IProjectFinance) {
localProjectFinance = i
}