33 lines
976 B
C#
33 lines
976 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
|
|||
|
|
{
|
|||
|
|
public class CommonController:IoTController
|
|||
|
|
{
|
|||
|
|
private readonly ICommonService _commonService;
|
|||
|
|
public CommonController(ICommonService commonService)
|
|||
|
|
{
|
|||
|
|
_commonService = commonService;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 根据type名称获取下拉框数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="input"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
[HttpGet("get-select-list")]
|
|||
|
|
[SwaggerOperation(summary: "根据type名称获取下拉框数据", Tags = new[] { "Common" })]
|
|||
|
|
public List<SelectResult> GetSelectResultList(SelectResultListInput input)
|
|||
|
|
{
|
|||
|
|
return _commonService.GetSelectResultList(input);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|