- 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>
26 lines
917 B
Go
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"`
|
|
}
|