package com.red.circle.order.adapter.app;


import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.order.app.dto.clientobject.ProductConfigItemCO;
import com.red.circle.order.app.service.SysProductConfigService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
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
 * @eo.api-type http
 * @eo.groupName 内购服务.内购产品列表
 * @eo.path /order/product-config
 */
@RestController
@RequestMapping(value = "/product-config", produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class ProductConfigRestController extends BaseController {

  private final SysProductConfigService sysProductConfigService;

  /**
   * 产品列表2023-03-31.
   *
   * @eo.name 产品列表
   * @eo.method get
   * @eo.request-type formdata
   */
  @GetMapping
  public List<ProductConfigItemCO> getProduct(AppExtCommand cmd) {
    return sysProductConfigService.listProductConfigGold(cmd);
  }

}
