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

import com.red.circle.console.app.dto.clienobject.team.RefundAnchorTrackRecordCO;
import com.red.circle.console.app.service.app.team.AnchorLogService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.order.inner.model.cmd.RoomRefundAnchorTrackRecordPageQryCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户退款影响至主播业绩减少情况记录表 前端控制器.
 * </p>
 *
 * @author pengliang on 2022/04/11
 */
@RestController
@RequestMapping("/refund-anchor-track-record")
@RequiredArgsConstructor
public class RefundAnchorTrackRecordRestController extends BaseController {

  private final AnchorLogService anchorLogService;

  /**
   * 分页列表.
   */
  @GetMapping("/page")
  public PageResult<RefundAnchorTrackRecordCO> pageTable(
      RoomRefundAnchorTrackRecordPageQryCmd cmd) {
    return anchorLogService.opsPage(cmd);
  }

}
