generated from VLADIMIR/template
update
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user