mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-11-11 07:41:10 +00:00
add repositories and fixed services
This commit is contained in:
@@ -12,7 +12,7 @@ type ApiService struct {
|
||||
|
||||
func NewApiService(repository *repository.ApiRepository) *ApiService {
|
||||
return &ApiService{
|
||||
repository,
|
||||
repository: repository,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,6 @@ Starts database migration.
|
||||
*model.MessageResponse: Message response object.
|
||||
*model.Exception: Exception response object.
|
||||
*/
|
||||
func (as ApiService) PostMigrate(ctx context.Context, version string) (*model.MessageResponse, *model.Exception) {
|
||||
func (as ApiService) PostMigrate(ctx context.Context, version string) []error {
|
||||
return as.repository.PostMigrate(ctx, version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user