info address list

This commit is contained in:
eson 2023-10-11 11:25:38 +08:00
parent 3a9de995b2
commit 10e794110f
2 changed files with 3 additions and 3 deletions

View File

@ -38,12 +38,12 @@ func FsBool(v bool) *bool {
// SubscriptionStatus 订阅状态
type SubscriptionStatus struct {
NotificationEmail *struct {
NotificationEmail struct {
OrderUpdate bool `json:"order_update"`
Newseleter bool `json:"newseleter"`
} `json:"notification_email"`
NotificationPhone *struct {
NotificationPhone struct {
OrderUpdate bool `json:"order_update"`
Newseleter bool `json:"newseleter"`
} `json:"notification_phone"`

View File

@ -39,7 +39,7 @@ func (l *UserResetTokenLogic) UserResetToken(req *types.RequestUserResetToken, u
user, err := l.svcCtx.AllModels.FsUser.FindUserByEmail(context.TODO(), req.Email)
if err != nil {
logx.Error(err)
return resp.SetStatus(basic.CodeRequestParamsErr, err.Error())
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, err.Error())
}
token := &auth.ResetToken{