- Add friend search/list/request/requestCancel/response/expel handlers and schemas - Store friend relationships in user_friend and backfill default friend links at startup - Auto-add the default user as a friend for newly created accounts - Support target user_id in /api profile requests and return target profile data - Make profile accessory_info optional to avoid zero-value accessory payloads - Update login topInfo friend counters from friend relationship state Signed-off-by: Sean Du <do4suki@gmail.com>
15 lines
327 B
Go
15 lines
327 B
Go
package apischema
|
|
|
|
type ApiReq struct {
|
|
Module string `json:"module"`
|
|
UserID int `json:"user_id"`
|
|
Action string `json:"action"`
|
|
Timestamp int64 `json:"timeStamp"`
|
|
}
|
|
|
|
type ApiResp struct {
|
|
ResponseData any `json:"response_data"`
|
|
ReleaseInfo any `json:"release_info"`
|
|
StatusCode int `json:"status_code"`
|
|
}
|