Files
honoka-chan/internal/schema/notice/friendgreeting.go
T
YumeMichi 101f7e8a3f 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>
2026-06-05 01:54:59 +08:00

26 lines
917 B
Go

package noticeschema
type FriendGreetingData struct {
NextId int `json:"next_id"`
NoticeList []FriendGreetingNotice `json:"notice_list"`
ServerTimestamp int64 `json:"server_timestamp"`
}
type FriendGreetingNotice struct {
NoticeID int `json:"notice_id"`
NewFlag bool `json:"new_flag"`
ReferenceTable int `json:"reference_table"`
Message string `json:"message"`
ListMessage string `json:"list_message"`
Readed bool `json:"readed"`
InsertDate string `json:"insert_date"`
Affector GreetingPeer `json:"affector"`
ReplyFlag bool `json:"reply_flag"`
}
type FriendGreetingResp struct {
ResponseData FriendGreetingData `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
}