|
|
|
using DS.Module.Core;
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
using DS.WMS.Core.Code.Dtos;
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Code.Interface;
|
|
|
|
|
|
|
|
public interface ICodeVesselService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<List<CodeVesselRes>> GetListByPage(PageRequest request);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 编辑
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="req"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult EditCodeVessel(CodeVesselReq req);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取详情
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<CodeVesselRes> GetCodeVesselInfo(string id);
|
|
|
|
/// <summary>
|
|
|
|
/// 列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<List<CodeVesselRes>> GetClientListByPage(PageRequest request);
|
|
|
|
/// <summary>
|
|
|
|
/// 编辑-客户端
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="req"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult EditClientCodeVessel(CodeVesselReq req);
|
|
|
|
/// <summary>
|
|
|
|
/// 获取详情 -客户端
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public DataResult<CodeVesselRes> GetClientCodeVesselInfo(string id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取船名列表-基础库
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult<List<CodeVesselRes>> GetCodeVesselList(PageRequest request);
|
|
|
|
/// <summary>
|
|
|
|
/// 导入船名列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="req"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
DataResult ImportCodeVessel(IdModel req);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取当前租户已有的船名
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
public DataResult<List<string>> GetExistCodeVesselList();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 批量删除
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="req"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public DataResult BatchDelCodeVessel(IdModel req);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取所有船名基础数据
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="isFromCache">是否从缓存提取 true-从缓存读取 false-从数据库读取</param>
|
|
|
|
/// <returns>返回船名基础数据列表</returns>
|
|
|
|
Task<DataResult<List<CodeVesselRes>>> GetAllList(bool isFromCache = true);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 加载到缓存
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
Task<DataResult> LoadCache();
|
|
|
|
}
|