21 lines
501 B
Go
21 lines
501 B
Go
package profileService
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"gitea.cybertalant.ru/VisionCareerMiniapp/MiniappGoService/internal/application/constants"
|
|
)
|
|
|
|
func (t *service) DeleteResume(fileName string) error {
|
|
op := "profileService/DeleteResume"
|
|
// Remove resume file
|
|
err := t.minioDB.Remove(fileName, constants.ResumeBucketName)
|
|
|
|
if err != nil {
|
|
t.logger.Error(fmt.Sprintf("%v: %v", op, err.Error()))
|
|
return fmt.Errorf("Произошла ошибка при удалени резюме...")
|
|
}
|
|
|
|
return nil
|
|
}
|