using Myshipping.Core.Entity;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using System.Collections.Generic;
using Myshipping.Core.Entity.CommonDB;
using Myshipping.Core.Service.CommonDB.Dto;
namespace Myshipping.Core.Service;
public interface ICommonDBService
{
///
/// 获取船公司
///
///
Task GetAllCarrier(bool flag);
///
/// 获取船公司映射
///
///
Task GetAllMappingCarrier(bool flag);
///
/// 获取船名
///
///
Task GetAllVessel(bool flag);
///
/// 获取船名映射
///
///
Task GetAllMappingVessel(bool flag);
///
/// 获取船代
///
///
Task GetAllForwarder(bool flag);
///
/// 获取场站
///
///
Task GetAllYard(bool flag);
///
/// 获取场站映射
///
///
Task GetAllMappingYard(bool flag);
///
/// 获取起始港
///
///
Task GetAllPortload(bool flag);
///
/// 获取目的港
///
///
Task GetAllPort(bool flag);
///
/// 获取包装
///
///
Task GetAllPackage(bool flag);
///
/// 获取运输方式
///
///
Task GetAllService(bool flag);
///
/// 获取箱型
///
///
Task GetAllCtn(bool flag);
///
/// 获取箱型映射
///
///
Task GetAllMappingCtn(bool flag);
///
/// 付费方式
///
///
Task GetAllFrt(bool flag);
///
/// 航线
///
///
Task GetAllLane(bool flag);
///
/// 航线与港口的的关系
///
///
Task GetAllRelaPortCarrierLane(bool flag);
///
/// 起运港与船代的关系
///
///
Task GetAllRelaPortLoadForwarder(bool flag);
///
/// 国家
///
///
Task GetAllCountry(bool flag);
///
/// 付费方式映射
///
Task GetAllMappingFrt(bool flag);
///
/// 起始港映射
///
Task GetAllMappingPortLoad(bool flag);
///
/// 目的港映射
///
Task GetAllMappingPort(bool flag);
///
/// 包装映射
///
Task GetAllMappingPackage(bool flag);
///
/// 运输服务映射
///
Task GetAllMappingService(bool flag);
///
/// 签单方式
///
Task GetAllCodeIssueType(bool flag);
Task GetAllMappingIssueType(bool flag);
Task GetAllMappingForwarder(bool flag = false);
Task GetAllCity(bool flag = false);
Task GetAllProvince(bool flag = false);
///
/// 保存航线信息
///
/// 航线
///
Task SaveCodeLane(CodeLaneDto dto);
///
/// 查询航线信息
///
/// 查询条件
///
Task CodeLaneList([FromQuery] NameQueryDto input);
///
/// 保存航线与港口的的关系表
///
/// 航线与港口的的关系表
///
Task SaveRelaPortCarrierLaneDto(RelaPortCarrierLaneDto dto);
///
/// 查询航线与港口的的关系表
///
/// 查询条件
///
Task RelaPortCarrierLaneDtoList([FromQuery] RelaPortCarrierLaneQueryDto input);
///
/// 保存国家
///
/// 国家
///
Task SaveCodeCountry(CodeCountryDto dto);
///
/// 查询国家
///
/// 查询条件
///
Task CodeCountryList([FromQuery] NameQueryDto input);
///
/// 同步船名
///
/// 请求参数
/// 返回主键
Task SyncVessel([FromBody] CodeVesselDto dto);
}