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
725 B
32 lines
725 B
package v1
|
|
|
|
import (
|
|
. "github.com/alimy/mir/v3"
|
|
. "github.com/alimy/mir/v3/engine"
|
|
"github.com/rocboss/paopao-ce/internal/model/web"
|
|
)
|
|
|
|
func init() {
|
|
AddEntry(new(WebFriendship))
|
|
}
|
|
|
|
type WebFriendship struct {
|
|
Chain Chain `mir:"-"`
|
|
Group Group `mir:"v1"`
|
|
|
|
// RequestingFriend 请求添加朋友
|
|
RequestingFriend func(Post) `mir:"/friend/requesting"`
|
|
|
|
// AddFriend 同意添加好友
|
|
AddFriend func(Post) `mir:"/friend/add"`
|
|
|
|
// RejectFriend 拒绝添加好友
|
|
RejectFriend func(Post) `mir:"/friend/reject"`
|
|
|
|
// DeleteFriend 删除好友
|
|
DeleteFriend func(Post) `mir:"/friend/delete"`
|
|
|
|
// GetContacts 获取好友列表
|
|
GetContacts func(Get, web.GetContactsReq) web.GetContactsResp `mir:"/user/contacts"`
|
|
}
|