feat: get all plans and improvement
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
package subscribeplanrepository
|
||||
|
||||
import "github.com/ardeman/project-legalgo-go/database"
|
||||
import (
|
||||
"github.com/ardeman/project-legalgo-go/database"
|
||||
subscribeplandomain "github.com/ardeman/project-legalgo-go/internal/domain/subscribe_plan"
|
||||
)
|
||||
|
||||
type SubsPlan struct {
|
||||
DB *database.DB
|
||||
}
|
||||
|
||||
type SubsPlanIntf interface {
|
||||
Create(string) error
|
||||
Create(subscribeplandomain.SubscribePlanReq) error
|
||||
GetAll() ([]subscribeplandomain.SubscribePlan, error)
|
||||
}
|
||||
|
||||
func New(
|
||||
|
||||
Reference in New Issue
Block a user