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

25 lines
667 B

package v1
import (
. "github.com/alimy/mir/v5"
"github.com/rocboss/paopao-ce/internal/model/web"
)
// Followship 关注者模式 服务
type Followship struct {
Schema `mir:"v1,chain"`
// FollowUser 关注用户
FollowUser func(Post, web.FollowUserReq) `mir:"user/follow"`
// UnfollowUser 取消关注用户
UnfollowUser func(Post, web.UnfollowUserReq) `mir:"user/unfollow"`
// ListFollows 获取用户的关注列表
ListFollows func(Get, web.ListFollowsReq) web.ListFollowsResp `mir:"user/follows"`
// ListFollowings 获取用户的追随者列表
ListFollowings func(Get, web.ListFollowingsReq) web.ListFollowingsResp `mir:"user/followings"`
}