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"
|
||||
timeutils "legalgo-BE-go/internal/utilities/time_utils"
|
||||
)
|
||||
|
||||
func (i *impl) Update(id string, spec subscribeplandomain.SubscribePlanUpdate) error {
|
||||
newData := subscribeplandomain.SubscribePlan{
|
||||
ID: id,
|
||||
Code: spec.Code,
|
||||
Name: spec.Name,
|
||||
UpdatedAt: timeutils.Now(),
|
||||
}
|
||||
return i.subsRepo.Update(newData)
|
||||
}
|
||||
Reference in New Issue
Block a user