22 lines
559 B
Go
Raw Normal View History

2025-02-24 16:48:20 +08:00
package subscribeplansvc
2025-02-24 20:18:09 +08:00
import (
subscribeplanrepository "github.com/ardeman/project-legalgo-go/internal/accessor/subscribeplan"
subscribeplandomain "github.com/ardeman/project-legalgo-go/internal/domain/subscribe_plan"
)
2025-02-24 16:48:20 +08:00
type SubsPlanSvc struct {
subsAccs subscribeplanrepository.SubsPlanIntf
}
type SubsPlanIntf interface {
2025-02-24 20:18:09 +08:00
CreatePlan(subscribeplandomain.SubscribePlanReq) error
GetAllPlan() ([]subscribeplandomain.SubscribePlan, error)
2025-02-24 16:48:20 +08:00
}
func New(
subsAccs subscribeplanrepository.SubsPlanIntf,
) SubsPlanIntf {
return &SubsPlanSvc{subsAccs}
}