2025-02-24 16:48:20 +08:00
|
|
|
package subscribesvc
|
|
|
|
|
|
2025-02-27 07:25:25 +08:00
|
|
|
import subscriberepository "legalgo-BE-go/internal/accessor/subscribe"
|
2025-02-24 16:48:20 +08:00
|
|
|
|
|
|
|
|
type SubsSvc struct {
|
|
|
|
|
subsRepo subscriberepository.SubsIntf
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SubsIntf interface {
|
|
|
|
|
Create(string) (string, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func New(subsRepo subscriberepository.SubsIntf) SubsIntf {
|
|
|
|
|
return &SubsSvc{subsRepo}
|
|
|
|
|
}
|