package com.red.circle.other.adapter.app.activity.room;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.app.dto.clientobject.activity.FirstChargeRewardPoolCO;
import com.red.circle.other.app.service.activity.FirstChargeRewardService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首充活动.
 *
 * @author lisizhe on 2023/9/25
 * @eo.api-type http
 * @eo.groupName 活动服务.首充活动
 * @eo.path /activity/first-charge-reward
 */
@RequestMapping("/activity/first-charge-reward")
@RestController
@RequiredArgsConstructor
public class FirstChargeRewardRestController extends BaseController {

  private final FirstChargeRewardService firstChargeRewardService;

  /**
   * 奖励列表.
   *
   * @eo.name 奖励列表
   * @eo.url /list
   * @eo.method get
   * @eo.request-type formdata
   */
  @GetMapping("/list")
  public List<FirstChargeRewardPoolCO> listReward(AppExtCommand cmd) {
    return firstChargeRewardService.listReward(cmd);
  }

}
