package com.red.circle.other.adapter.app.sys;

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.sys.MikeTypeConfigCO;
import com.red.circle.other.app.service.sys.SysMikeTypeConfigService;
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 zongpubin on 2023-04-19 15:24
 * @eo.api-type http
 * @eo.groupName 系统服务.麦位类型配置
 * @eo.path /sys/mike-type-config
 */
@RestController
@RequestMapping(value = "/sys/mike-type-config", produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class MikeTypeConfigRestController extends BaseController {

  private final SysMikeTypeConfigService sysMikeTypeConfigService;

  /**
   * 获取麦位类型配置.
   *
   * @eo.name 获取麦位类型配置.
   * @eo.url /list
   * @eo.method get
   * @eo.request-type formdata
   */
  @GetMapping("/list")
  public List<MikeTypeConfigCO> listMikeType(AppExtCommand cmd) {
    return sysMikeTypeConfigService.listMikeType(cmd);
  }

}
