38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成service操作代码。
|
|||
|
// 生成日期:2024-03-13 18:10:56
|
|||
|
// 生成路径: internal/app/system/service/construction_details.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 IConstructionDetails interface {
|
|||
|
List(ctx context.Context, req *system.ConstructionDetailsSearchReq) (res *system.ConstructionDetailsSearchRes, err error)
|
|||
|
GetById(ctx context.Context, Id uint64) (res *model.ConstructionDetailsInfoRes, err error)
|
|||
|
Add(ctx context.Context, req *system.ConstructionDetailsAddReq) (err error)
|
|||
|
Edit(ctx context.Context, req *system.ConstructionDetailsEditReq) (err error)
|
|||
|
Delete(ctx context.Context, Id []uint64) (err error)
|
|||
|
}
|
|||
|
|
|||
|
var localConstructionDetails IConstructionDetails
|
|||
|
|
|||
|
func ConstructionDetails() IConstructionDetails {
|
|||
|
if localConstructionDetails == nil {
|
|||
|
panic("implement not found for interface IConstructionDetails, forgot register?")
|
|||
|
}
|
|||
|
return localConstructionDetails
|
|||
|
}
|
|||
|
|
|||
|
func RegisterConstructionDetails(i IConstructionDetails) {
|
|||
|
localConstructionDetails = i
|
|||
|
}
|