package com.red.circle.console.adapter.app.activity;

import com.red.circle.console.app.dto.clienobject.activity.ContributionActivityReceivedCO;
import com.red.circle.console.app.dto.cmd.app.activity.ActivityRoomContributionQryCmd;
import com.red.circle.console.app.service.app.activity.ContributionActivityService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 房间支持活动-领取金额记录.
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/activity/room-contribution")
public class ActivityRoomContributionRestController extends BaseController {

  private final ContributionActivityService contributionActivityService;

  /**
   * 分页.
   */
  @GetMapping("/page")
  public PageResult<ContributionActivityReceivedCO> pageData(
      ActivityRoomContributionQryCmd qryCmd) {
    return contributionActivityService.pageQuery(qryCmd);
  }

}

