34 lines
996 B
C#
Raw Normal View History

2025-07-09 11:58:18 +08:00
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
{
2025-07-10 12:32:01 +08:00
[Route("Common")]
2025-07-09 11:58:18 +08:00
public class CommonController:IoTController
{
private readonly ICommonService _commonService;
public CommonController(ICommonService commonService)
{
_commonService = commonService;
}
/// <summary>
/// 根据type名称获取下拉框数据
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
2025-07-10 12:32:01 +08:00
[HttpGet("GetSelectList")]
2025-07-09 11:58:18 +08:00
[SwaggerOperation(summary: "根据type名称获取下拉框数据", Tags = new[] { "Common" })]
public List<SelectResult> GetSelectResultList(SelectResultListInput input)
{
return _commonService.GetSelectResultList(input);
}
}
}