info address list
This commit is contained in:
parent
3a9de995b2
commit
10e794110f
|
@ -38,12 +38,12 @@ func FsBool(v bool) *bool {
|
||||||
|
|
||||||
// SubscriptionStatus 订阅状态
|
// SubscriptionStatus 订阅状态
|
||||||
type SubscriptionStatus struct {
|
type SubscriptionStatus struct {
|
||||||
NotificationEmail *struct {
|
NotificationEmail struct {
|
||||||
OrderUpdate bool `json:"order_update"`
|
OrderUpdate bool `json:"order_update"`
|
||||||
Newseleter bool `json:"newseleter"`
|
Newseleter bool `json:"newseleter"`
|
||||||
} `json:"notification_email"`
|
} `json:"notification_email"`
|
||||||
|
|
||||||
NotificationPhone *struct {
|
NotificationPhone struct {
|
||||||
OrderUpdate bool `json:"order_update"`
|
OrderUpdate bool `json:"order_update"`
|
||||||
Newseleter bool `json:"newseleter"`
|
Newseleter bool `json:"newseleter"`
|
||||||
} `json:"notification_phone"`
|
} `json:"notification_phone"`
|
||||||
|
|
|
@ -39,7 +39,7 @@ func (l *UserResetTokenLogic) UserResetToken(req *types.RequestUserResetToken, u
|
||||||
user, err := l.svcCtx.AllModels.FsUser.FindUserByEmail(context.TODO(), req.Email)
|
user, err := l.svcCtx.AllModels.FsUser.FindUserByEmail(context.TODO(), req.Email)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatus(basic.CodeRequestParamsErr, err.Error())
|
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
token := &auth.ResetToken{
|
token := &auth.ResetToken{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user