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.
paopao-ce/mirc/web/v1/followship.go

29 lines
672 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(WebFollowship))
}
type WebFollowship struct {
Chain Chain `mir:"-"`
Group Group `mir:"v1"`
// AddFollowing 添加关注
AddFollowing func(Post) `mir:"/following/add"`
// DeleteFollowing 取消关注
DeleteFollowing func(Post) `mir:"/following/delete"`
// ListFollowings 获取用户的关注列表
ListFollowings func(Get) `mir:"/following/list"`
// ListFollowers 获取用户的追随者列表
ListFollowers func(Get, web.ListFollowersReq) web.ListFollowersResp `mir:"/follower/list"`
}