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

import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.app.dto.cmd.activity.ActivityRewardQueryCmd;
import com.red.circle.other.app.service.activity.ActivityRewardService;
import com.red.circle.other.inner.model.dto.activity.props.ActivityResource;
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/activity-reward
 */
@RequestMapping("/activity/activity-reward")
@RestController
@RequiredArgsConstructor
public class ActivityRewardController extends BaseController {

  private final ActivityRewardService activityRewardService;

  /**
   * 奖励列表.
   *
   * @eo.name 奖励列表
   * @eo.method get
   * @eo.request-type formdata
   */
  @GetMapping
  public List<ActivityResource> reward(ActivityRewardQueryCmd cmd) {
    return activityRewardService.listReward(cmd);
  }

}
