mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
696 B
32 lines
696 B
2 years ago
|
package rest
|
||
|
|
||
|
type RequestingFriendReq struct {
|
||
|
UserId int64 `json:"user_id" binding:"required"`
|
||
|
Greetings string `json:"greetings" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type AddFriendReq struct {
|
||
|
UserId int64 `json:"user_id" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type RejectFriendReq struct {
|
||
|
UserId int64 `json:"user_id" binding:"required"`
|
||
|
}
|
||
|
|
||
|
type DeleteFriendReq struct {
|
||
|
UserId int64 `json:"user_id"`
|
||
|
}
|
||
|
|
||
|
type ContactItem struct {
|
||
|
UserId int64 `json:"user_id"`
|
||
|
UserName string `json:"username"`
|
||
|
Nickname string `json:"nickname"`
|
||
|
Avatar string `json:"avatar"`
|
||
|
Phone string `json:"phone"`
|
||
|
}
|
||
|
|
||
|
type ContactsResp struct {
|
||
|
Contacts []ContactItem `json:"contacts"`
|
||
|
Total int64 `json:"total"`
|
||
|
}
|