fix: update user plan and rearrange structur project
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package userdomain
|
||||
|
||||
import subscribedm "legalgo-BE-go/internal/domain/subscribe_model"
|
||||
import (
|
||||
subscribe "legalgo-BE-go/internal/domain/subscribe"
|
||||
"time"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
@@ -9,7 +12,7 @@ type User struct {
|
||||
Email string `json:"email"`
|
||||
Phone string `json:"phone"`
|
||||
|
||||
Subscribe subscribedm.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
|
||||
Subscribe subscribe.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
|
||||
}
|
||||
|
||||
type UserRegister struct {
|
||||
@@ -24,7 +27,7 @@ type UserProfile struct {
|
||||
Email string `json:"email"`
|
||||
Phone string `json:"phone"`
|
||||
|
||||
Subscribe subscribedm.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
|
||||
Subscribe subscribe.Subscribe `gorm:"foreignKey:SubscribeID" json:"subscribe"`
|
||||
}
|
||||
|
||||
type UserLogin struct {
|
||||
@@ -33,5 +36,10 @@ type UserLogin struct {
|
||||
}
|
||||
|
||||
type UserSubsUpdate struct {
|
||||
Status string `json:"status"`
|
||||
ID string `json:"id"`
|
||||
Status string `json:"status"`
|
||||
SubscribePlanID string `json:"subscribe_plan_id"`
|
||||
AutoRenew bool `json:"auto_renew"`
|
||||
StartDate time.Time `json:"start_date"`
|
||||
EndDate *time.Time `json:"end_date"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user