fix: update user plan and rearrange structur project
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package subscribeplansvc
|
||||
|
||||
import (
|
||||
subscribeplandomain "legalgo-BE-go/internal/domain/subscribe_plan"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func (sb *impl) Create(spec subscribeplandomain.SubscribePlanReq) error {
|
||||
data := subscribeplandomain.SubscribePlan{
|
||||
ID: uuid.NewString(),
|
||||
Code: spec.Code,
|
||||
Name: spec.Name,
|
||||
}
|
||||
return sb.subsRepo.Create(data)
|
||||
}
|
||||
Reference in New Issue
Block a user