feat: add superadmin user interaction views
This commit is contained in:
@@ -127,6 +127,60 @@ func (c *users) ListTenants(ctx fiber.Ctx, id int64, filter *dto.SuperUserTenant
|
||||
return services.Super.ListUserTenants(ctx, id, filter)
|
||||
}
|
||||
|
||||
// List user favorites
|
||||
//
|
||||
// @Router /super/v1/users/:id<int>/favorites [get]
|
||||
// @Summary List user favorites
|
||||
// @Description List user's favorited contents
|
||||
// @Tags User
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param id path int64 true "User ID"
|
||||
// @Param page query int false "Page number"
|
||||
// @Param limit query int false "Page size"
|
||||
// @Success 200 {object} requests.Pager{items=[]dto.SuperUserContentActionItem}
|
||||
// @Bind id path
|
||||
// @Bind filter query
|
||||
func (c *users) ListFavorites(ctx fiber.Ctx, id int64, filter *dto.SuperUserContentActionListFilter) (*requests.Pager, error) {
|
||||
return services.Super.ListUserFavorites(ctx, id, filter)
|
||||
}
|
||||
|
||||
// List user likes
|
||||
//
|
||||
// @Router /super/v1/users/:id<int>/likes [get]
|
||||
// @Summary List user likes
|
||||
// @Description List user's liked contents
|
||||
// @Tags User
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param id path int64 true "User ID"
|
||||
// @Param page query int false "Page number"
|
||||
// @Param limit query int false "Page size"
|
||||
// @Success 200 {object} requests.Pager{items=[]dto.SuperUserContentActionItem}
|
||||
// @Bind id path
|
||||
// @Bind filter query
|
||||
func (c *users) ListLikes(ctx fiber.Ctx, id int64, filter *dto.SuperUserContentActionListFilter) (*requests.Pager, error) {
|
||||
return services.Super.ListUserLikes(ctx, id, filter)
|
||||
}
|
||||
|
||||
// List user following tenants
|
||||
//
|
||||
// @Router /super/v1/users/:id<int>/following [get]
|
||||
// @Summary List user following tenants
|
||||
// @Description List tenants followed by user
|
||||
// @Tags User
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param id path int64 true "User ID"
|
||||
// @Param page query int false "Page number"
|
||||
// @Param limit query int false "Page size"
|
||||
// @Success 200 {object} requests.Pager{items=[]dto.UserTenantItem}
|
||||
// @Bind id path
|
||||
// @Bind filter query
|
||||
func (c *users) ListFollowing(ctx fiber.Ctx, id int64, filter *dto.SuperUserTenantListFilter) (*requests.Pager, error) {
|
||||
return services.Super.ListUserFollowing(ctx, id, filter)
|
||||
}
|
||||
|
||||
// Update user status
|
||||
//
|
||||
// @Router /super/v1/users/:id<int>/status [patch]
|
||||
|
||||
Reference in New Issue
Block a user