a2r call option

This commit is contained in:
withchao
2023-07-05 20:30:54 +08:00
parent 7bb069d435
commit c2b7d3bc2c
2 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ func (o *FriendApi) AddBlack(c *gin.Context) {
}
func (o *FriendApi) GetPaginationBlacks(c *gin.Context) {
a2r.Call(friend.FriendClient.GetPaginationBlacks, o.Client, c)
a2r.Call(friend.FriendClient.GetPaginationBlacks, o.Client, c, func(resp *friend.GetPaginationBlacksResp) {
a2r.List(&resp.Blacks)
})
}
func (o *FriendApi) RemoveBlack(c *gin.Context) {