2025-07-10 12:32:01 +08:00

34 lines
996 B
C#

using JiShe.IoT.CommonServices;
using JiShe.IoT.CommonServices.Dto;
using JiShe.ServicePro.Commons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiShe.IoT.Controllers
{
[Route("Common")]
public class CommonController:IoTController
{
private readonly ICommonService _commonService;
public CommonController(ICommonService commonService)
{
_commonService = commonService;
}
/// <summary>
/// 根据type名称获取下拉框数据
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("GetSelectList")]
[SwaggerOperation(summary: "根据type名称获取下拉框数据", Tags = new[] { "Common" })]
public List<SelectResult> GetSelectResultList(SelectResultListInput input)
{
return _commonService.GetSelectResultList(input);
}
}
}