Yimaru-BackEnd/internal/services/team/service.go
2026-04-17 10:16:25 -07:00

21 lines
391 B
Go

package team
import (
"Yimaru-Backend/internal/ports"
)
type Service struct {
teamStore ports.TeamStore
refreshExpirySec int
}
func NewService(teamStore ports.TeamStore, refreshExpirySeconds int) *Service {
if refreshExpirySeconds <= 0 {
refreshExpirySeconds = 7 * 24 * 3600
}
return &Service{
teamStore: teamStore,
refreshExpirySec: refreshExpirySeconds,
}
}