feat: CR login, register, subscribe
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package subscribesvc
|
||||
|
||||
func (s *SubsSvc) Create(subsPlanId string) (string, error) {
|
||||
subsId, err := s.subsRepo.Create(subsPlanId)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return subsId, nil
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package subscribesvc
|
||||
|
||||
import subscriberepository "github.com/ardeman/project-legalgo-go/internal/accessor/subscribe"
|
||||
|
||||
type SubsSvc struct {
|
||||
subsRepo subscriberepository.SubsIntf
|
||||
}
|
||||
|
||||
type SubsIntf interface {
|
||||
Create(string) (string, error)
|
||||
}
|
||||
|
||||
func New(subsRepo subscriberepository.SubsIntf) SubsIntf {
|
||||
return &SubsSvc{subsRepo}
|
||||
}
|
||||
Reference in New Issue
Block a user