This commit is contained in:
@@ -195,6 +195,21 @@ func (ctl *posts) Show(ctx fiber.Ctx, post *models.Post) (*PostItem, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Buyers
|
||||
//
|
||||
// @Summary 作品购买人列表
|
||||
// @Tags Admin Posts
|
||||
// @Produce json
|
||||
// @Param id path int64 true "作品 ID"
|
||||
// @Param pagination query requests.Pagination false "分页参数"
|
||||
// @Success 200 {object} requests.Pager{items=dto.PostBuyerItem} "成功"
|
||||
// @Router /admin/v1/posts/:id/buyers [get]
|
||||
// @Bind post path key(id) model(id)
|
||||
// @Bind pagination query
|
||||
func (ctl *posts) Buyers(ctx fiber.Ctx, post *models.Post, pagination *requests.Pagination) (*requests.Pager, error) {
|
||||
return services.Posts.Buyers(ctx, post.ID, pagination)
|
||||
}
|
||||
|
||||
// SendTo
|
||||
//
|
||||
// @Summary 赠送作品给用户
|
||||
|
||||
Reference in New Issue
Block a user