You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.System.Dtos;
|
|
using DS.WMS.Core.System.Interface;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class CommonController : ApiController
|
|
{
|
|
private readonly ICommonService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public CommonController(ICommonService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("GetTrainList")]
|
|
public DataResult<List<TrainListViewModel>> GetTrainList([FromBody] PageRequest request)
|
|
{
|
|
var res = _invokeService.GetTrainList(request);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[Route("GetCompanyList")]
|
|
public DataResult<List<CompanyCheckBoxViewModel>> GetCompanyList()
|
|
{
|
|
var res = _invokeService.GetCompanyList();
|
|
return res;
|
|
}
|
|
} |