add get me route

This commit is contained in:
2026-07-06 22:41:58 +07:00
parent b7219cfff9
commit 728fcc6fda
8 changed files with 313 additions and 37 deletions
+19
View File
@@ -0,0 +1,19 @@
package app
import (
"evening_detective_server/internal/repos"
proto "evening_detective_server/proto"
"google.golang.org/protobuf/types/known/timestamppb"
)
func mapUser(o *repos.User) *proto.User {
return &proto.User{
Id: int32(o.ID),
Username: o.Username,
Email: o.Email,
Roles: o.Roles,
IsActive: o.IsActive,
CreatedAt: timestamppb.New(o.CreatedAt),
}
}