This commit is contained in:
2026-10-02 01:01:58 +07:00
parent 7052f80144
commit d85967968f
7 changed files with 60 additions and 11 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package app
import (
"evening_detective_server/internal/repos"
"evening_detective_server/internal/services/users_service"
proto "evening_detective_server/proto"
"google.golang.org/protobuf/types/known/timestamppb"
@@ -10,7 +10,7 @@ import (
// mapUser преобразует пользователя в proto-структуру. Возвращает nil для
// обезличенного автора (аккаунт удалён, контент сохранён) — клиент отображает
// такого автора как «Автор удалён».
func mapUser(o *repos.User) *proto.User {
func mapUser(o *users_service.User) *proto.User {
if o == nil {
return nil
}