fix(server): improve message handling and data privacy
All checks were successful
Build Backend / build (push) Successful in 2m0s
Build Backend / build-docker (push) Successful in 7m38s

- fix unread count calculation logic in message repository
- implement logic to retrieve other participant's last read sequence in conversation handlers
- mask real names in verification record responses for privacy
- improve error reporting in main entry point by using stderr instead of zap logger during initialization
This commit is contained in:
2026-05-09 17:25:09 +08:00
parent 51fe517cb2
commit 9f3215d4eb
4 changed files with 22 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
@@ -14,9 +15,8 @@ func main() {
// 初始化应用程序Wire 自动生成)
app, err := InitializeApp()
if err != nil {
zap.L().Fatal("failed to initialize app",
zap.Error(err),
)
fmt.Fprintf(os.Stderr, "failed to initialize app: %v\n", err)
os.Exit(1)
}
// 启动应用程序