32 lines
824 B
Go
32 lines
824 B
Go
package example
|
|
|
|
import "kra/internal/biz/example"
|
|
|
|
// ApiGroup Example API组
|
|
type ApiGroup struct {
|
|
FileUploadApi
|
|
CustomerApi
|
|
AttachmentCategoryApi
|
|
}
|
|
|
|
// 业务层依赖
|
|
var (
|
|
fileUploadUsecase *example.FileUploadUsecase
|
|
customerUsecase *example.CustomerUsecase
|
|
attachmentCategoryUsecase *example.AttachmentCategoryUsecase
|
|
breakpointContinueUsecase *example.BreakpointContinueUsecase
|
|
)
|
|
|
|
// InitUsecases 初始化业务层依赖
|
|
func InitUsecases(
|
|
fileUpload *example.FileUploadUsecase,
|
|
customer *example.CustomerUsecase,
|
|
attachmentCategory *example.AttachmentCategoryUsecase,
|
|
breakpointContinue *example.BreakpointContinueUsecase,
|
|
) {
|
|
fileUploadUsecase = fileUpload
|
|
customerUsecase = customer
|
|
attachmentCategoryUsecase = attachmentCategory
|
|
breakpointContinueUsecase = breakpointContinue
|
|
}
|