feat: align ids to int64
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
"quyun/v2/pkg/consts"
|
||||
"quyun/v2/providers/jwt"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
"go.ipao.vip/gen/types"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -176,7 +175,7 @@ func (s *user) GetNotifications(ctx context.Context, userID int64, typeArg strin
|
||||
result := make([]user_dto.Notification, len(list))
|
||||
for i, v := range list {
|
||||
result[i] = user_dto.Notification{
|
||||
ID: cast.ToString(v.ID),
|
||||
ID: v.ID,
|
||||
Type: v.Type,
|
||||
Title: v.Title,
|
||||
Content: v.Content,
|
||||
@@ -189,7 +188,7 @@ func (s *user) GetNotifications(ctx context.Context, userID int64, typeArg strin
|
||||
|
||||
func (s *user) ToAuthUserDTO(u *models.User) *auth_dto.User {
|
||||
return &auth_dto.User{
|
||||
ID: cast.ToString(u.ID),
|
||||
ID: u.ID,
|
||||
Phone: u.Phone,
|
||||
Nickname: u.Nickname,
|
||||
Avatar: u.Avatar,
|
||||
|
||||
Reference in New Issue
Block a user