feat: CR login, register, subscribe
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package subscribeplansvc
|
||||
|
||||
func (sb *SubsPlanSvc) CreatePlan(code string) error {
|
||||
return sb.subsAccs.Create(code)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package subscribeplansvc
|
||||
|
||||
import subscribeplanrepository "github.com/ardeman/project-legalgo-go/internal/accessor/subscribeplan"
|
||||
|
||||
type SubsPlanSvc struct {
|
||||
subsAccs subscribeplanrepository.SubsPlanIntf
|
||||
}
|
||||
|
||||
type SubsPlanIntf interface {
|
||||
CreatePlan(string) error
|
||||
}
|
||||
|
||||
func New(
|
||||
subsAccs subscribeplanrepository.SubsPlanIntf,
|
||||
) SubsPlanIntf {
|
||||
return &SubsPlanSvc{subsAccs}
|
||||
}
|
||||
Reference in New Issue
Block a user