fix:重构合图模块

This commit is contained in:
Hiven
2023-08-14 17:56:06 +08:00
parent fde5ef8b25
commit 05e3853134
7 changed files with 230 additions and 126 deletions

24
initalize/service.go Normal file
View File

@@ -0,0 +1,24 @@
package initalize
import (
"fusenapi/service/repositories"
"github.com/aws/aws-sdk-go/aws/session"
"gorm.io/gorm"
)
type Repositories struct {
ImageHandle repositories.ImageHandle
}
type NewAllRepositorieData struct {
GormDB *gorm.DB
BLMServiceUrl *string
AwsSession *session.Session
}
func NewAllRepositories(newData *NewAllRepositorieData) *Repositories {
return &Repositories{
ImageHandle: repositories.NewImageHandle(newData.GormDB, newData.BLMServiceUrl, newData.AwsSession),
}
}