Implement greet inbox and outbox

- Add user_greet model and startup table sync
- Implement /greet/user and /greet/delete handlers
- Implement noticeFriendGreeting inbox and noticeUserGreetingHistory outbox
- Return peer profile and center unit info for greeting notices
- Update login topInfo friend greet counters from unread inbox messages

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-05 01:54:59 +08:00
parent d48293be44
commit 101f7e8a3f
16 changed files with 641 additions and 15 deletions
+15 -4
View File
@@ -1,10 +1,21 @@
package noticeschema
type UserGreetingData struct {
ItemCount int `json:"item_count"`
HasNext bool `json:"has_next"`
NoticeList []any `json:"notice_list"`
ServerTimestamp int64 `json:"server_timestamp"`
ItemCount int `json:"item_count"`
HasNext bool `json:"has_next"`
NoticeList []UserGreetingNotice `json:"notice_list"`
ServerTimestamp int64 `json:"server_timestamp"`
}
type UserGreetingNotice struct {
NoticeID int `json:"notice_id"`
ReferenceTable int `json:"reference_table"`
Message string `json:"message"`
ListMessage string `json:"list_message"`
InsertDate string `json:"insert_date"`
Receiver GreetingPeer `json:"receiver"`
ReplyFlag bool `json:"reply_flag"`
Readed bool `json:"readed"`
}
type UserGreetingResp struct {