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.

63 lines
1.8 KiB
C#

using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Map.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Map.Interface
{
public interface IMappingYardService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<MappingYardRes>> GetListByPage(PageRequest request);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditMappingYard(MappingYardReq req);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<MappingYardRes> GetMappingYardInfo(string id);
/// <summary>
/// 删除
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult DelMappingYard(IdModel req);
/// <summary>
/// 批量删除
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult BatchDelMappingYard(IdModel req);
/// <summary>
/// 获取所有场站映射数据
/// </summary>
/// <param name="isFromCache">是否从缓存提取 true-从缓存读取 false-从数据库读取</param>
/// <returns>返回场站映射数据列表</returns>
Task<DataResult<List<MappingYardRes>>> GetAllList(bool isFromCache = true);
/// <summary>
/// 加载到缓存
/// </summary>
/// <returns></returns>
Task<DataResult> LoadCache();
}
}