Files
teletypegames/domain/service.file.go
T
2026-01-27 21:03:15 +01:00

20 lines
387 B
Go

package domain
type FileServiceInterface interface {
GetPath(path string) string
}
type FileService struct {
FileRepository FileRepositoryInterface
}
func NewFileService(file_repository FileRepositoryInterface) *FileService {
return &FileService{
FileRepository: file_repository,
}
}
func (s *FileService) GetPath(path string) string {
return s.FileRepository.GetPath(path)
}