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 ) // InitUsecases 初始化业务层依赖 func InitUsecases( fileUpload *example.FileUploadUsecase, customer *example.CustomerUsecase, attachmentCategory *example.AttachmentCategoryUsecase, ) { fileUploadUsecase = fileUpload customerUsecase = customer attachmentCategoryUsecase = attachmentCategory }