21 lines
391 B
Go
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,
|
|
}
|
|
}
|