42 lines
1.7 KiB
Go
42 lines
1.7 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成service操作代码。
|
|||
|
// 生成日期:2023-07-31 11:31:49
|
|||
|
// 生成路径: internal/app/system/service/qianqi_guangfuban.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 IQianqiGuangfuban interface {
|
|||
|
List(ctx context.Context, req *system.QianqiGuangfubanSearchReq) (res *system.QianqiGuangfubanSearchRes, err error)
|
|||
|
GetById(ctx context.Context, Id int) (res *model.QianqiGuangfubanInfoRes, err error)
|
|||
|
Add(ctx context.Context, req *system.QianqiGuangfubanAddReq) (err error)
|
|||
|
Edit(ctx context.Context, req *system.QianqiGuangfubanEditReq) (err error)
|
|||
|
ImportZuchuan(ctx context.Context, req *system.QianqiGuangfubanImportZuchuanReq) (err error)
|
|||
|
CaculateZuchuan(ctx context.Context, req *system.QianqiGuangfubanCalZuchuanReq) (err error)
|
|||
|
Delete(ctx context.Context, SourceIDs []string) (err error)
|
|||
|
CorrectFunc(ctx context.Context, req *system.CorrectFuncReq) (err error)
|
|||
|
CorrectQueryFunc(ctx context.Context, req *system.CorrectQueryFuncReq) (res *system.CorrectQueryFuncRes, err error)
|
|||
|
}
|
|||
|
|
|||
|
var localQianqiGuangfuban IQianqiGuangfuban
|
|||
|
|
|||
|
func QianqiGuangfuban() IQianqiGuangfuban {
|
|||
|
if localQianqiGuangfuban == nil {
|
|||
|
panic("implement not found for interface IQianqiGuangfuban, forgot register?")
|
|||
|
}
|
|||
|
return localQianqiGuangfuban
|
|||
|
}
|
|||
|
|
|||
|
func RegisterQianqiGuangfuban(i IQianqiGuangfuban) {
|
|||
|
localQianqiGuangfuban = i
|
|||
|
}
|