1 接口调度流程
2 接口清单
(1)查询支持的国家接口
/**
* 查询有权限的国家列表
* @param request 请求参数
* @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.CountriesRecordDTO>
*/
ResultDTO<List<CountriesDTO>> getCountries(CountriesRequest request);
入参:
//语言
protected String lang;
出参:
/**
* 国家代码
*/
protected String countryCode;
/**
* 国家名称
*/
protected String countryName;
/**
* 是否使用
*/
protected Integer usage;
(2)查询品牌接口
/**
* 查询品牌列表
* @param request 请求参数
* @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.BrandsDTO>
*/
ResultDTO<List<BrandsDTO>> getAmBrands(BrandsQueryRequest request);
入参:
//国家
protected String articleCountry;
//语言
protected String lang;
出参:
/**
* 品牌id
*/
protected Long brandId;
/**
* 品牌logoid
*/
protected String brandLogoID;
/**
* 品牌名称
*/
protected String brandName;
(3)根据OE号查询配件信息接口
/**
* 查询零件列表
* @param request 请求参数
* @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.ArticlesDTO>
*/
ResultDTO<List<ArticleDTO>> getArticles(ArticlesQueryRequest request);
入参:
//配件国家
protected String articleCountry;
//查询条件
protected String searchQuery;
/**
* 0: Article Number (DEFAULT),
* 1: OE Number, 原厂零件件号(OE号)查找
* 2: Trade Number,
* 3: Comparable Number,
* 4: Replacement Number,
* 5: Replaced Number,
* 6: EAN Number,
* 7: Criteria Number,
* 10: 任意编号,
* 99: 自定义文本
*/
//查询编号类型
protected Integer searchType;
/**
* exact: Exact Match (DEFAULT),
* prefix: Prefix Match,
* suffix: Suffix Match,
* prefix_or_suffix: Prefix or Suffix Matching
*/
//查询匹配类型
protected String searchMatchType;
//传统配件id
protected List<Long> legacyArticleIds;
//数据供应商/品牌id
protected List<Integer> dataSupplierIds;
/**
* 663:制动助力器阀门
* 339:压缩空气干燥器
* 1914:外后视镜玻璃
* 1319:多道阀
* 107:大灯灯泡
* 3255:弯道观察后视镜玻璃
* 348:拖车控制阀
* 1665:电子线圈接头
* 1457:白炽灯泡
* 369:空压机消声器
* 1329:继动阀
* 4017:继动阀修理组件
* 106:聚光灯灯泡
* 2:起动机
* 2110:轴承
* 370:铰链
* 3698:驻车制动杆
* 355:驻车制动阀
*/
//产品组id
protected List<Integer> genericArticleIds;
//装配组id
protected List<Long> assemblyGroupNodeIds;
/**
* Filter to parts that are linked to this target id (also requires the linkingTargetType)
*/
//关联目标id
protected Long linkageTargetId;
/**
* 'P': Vehicle Type (Passenger + Motorcycle + LCV),
* 'V': Passenger Car,
* 'L': LCV,
* 'B': Motorcycle,
* 'O': CV Type (Commercial Vehicle + Tractor),
* 'C': Commercial Vehicle,
* 'T': Tractor,
* 'M': Engine,
* 'A': Axle,
* 'K': CV Body Type,
* 'H': HMD Vehicle,
* 'S': Vehicle Model Series
*/
//关联目标类型
protected String linkageTargetType;
/**
* Only include articles added since this date (YYYY-MM-DD).
*/
protected String newArticlesDateFrom;
/**
* Only include articles added up until this date (YYYY-MM-DD).
*/
protected String newArticlesDateTo;
/**
* Only include articles with linkages added since this date (YYYY-MM-DD). Note: This is only accurate with a limited number of other filters.
*/
protected String newLinkagesDateFrom;
/**
* Only include articles with linkages added up until this date (YYYY-MM-DD). Note: This is only accurate with a limited number of other filters.
*/
protected String newLinkagesDateTo;
/**
* Only include new linkages with this mfr id. Only valid if using the newLinkagesDateFrom or newLinkagesDateTo field.
*/
protected Integer newLinkagesMfrId;
//语言
protected String lang;
//每页个数
protected Integer perPage;
//当前页
protected Integer page;
/**
* Include ALL Data in the response. Defaults to false.
*/
protected Boolean includeAll;
/**
* Include Misc Article Data. Defaults to false.
*/
protected Boolean includeMisc;
/**
* Include the Article Text in the response. Defaults to false.
*/
protected Boolean includeArticleText;
/**
* Include Global Trade Identification Numbers (GTINs) associated with the part in the response. Note: This includes EANs. Defaults to false.
*/
protected Boolean includeGTINs;
/**
* Include Trade Numbers in the response. Defaults to false.
*/
protected Boolean includeTradeNumbers;
/**
* Include OEM Numbers in the response. Defaults to false.
*/
protected Boolean includeOEMNumbers;
/**
* Include information about articles replaced by this part in the response. Defaults to false.
*/
protected Boolean includeReplacesArticles;
/**
* Include information about articles that replace this part in the response. Defaults to false.
*/
protected Boolean includeReplacedByArticles;
/**
* Include Article Criteria (TAF Table #210) in the response. Defaults to false.
*/
protected Boolean includeArticleCriteria;
/**
* Include Linkage and Linkage Criteria information in the response (only valid if filtering by linkage id). Defaults to false.
*/
protected Boolean includeLinkages;
/**
* Include PDFs in the response. Defaults to false.
*/
protected Boolean includePDFs;
/**
* Include Images in the response. Defaults to false.
*/
protected Boolean includeImages;
/**
* 是否返回所有品牌
*/
protected Boolean includeDataSupplierFacets;
/**
* 是否返回所有产品组
*/
protected Boolean includeGenericArticleFacets;
/**
* Include Generic Article Information in the response. Defaults to false.
*/
protected Boolean includeGenericArticles;
/**
* Include the facet counts for article and linkage (only included if filtering by linkage id) criteria. Defaults to false
*/
protected Boolean includeCriteriaFacets;
protected Boolean includeArticleStatusFacets;
/**
* Include Comparable Numbers in the response (Note: Right now only comparable numbers that match the search query are included). Defaults to false.
*/
protected Boolean includeComparableNumbers;
/**
* Include the Links in the response. Defaults to false.
*/
protected Boolean includeLinks;
/**
* Include the Prices in the response. Defaults to false.
*/
protected Boolean includePrices;
/**
* Only include prices active on this date (YYYY-MM-DD).
*/
protected String priceDate;
/**
* Include Article Logistics Criteria (TAF 2.5 Table #213) in the response. Defaults to false.
*/
protected Boolean includeArticleLogisticsCriteria;
/**
* Filter on Article Status (Key Table 73)
*/
protected List<Integer> articleStatusIds;
/**
* Only include articles since this date (YYYY-MM-DD). Requires articleStatusIds field.
*/
protected String articleStatusDateFrom;
/**
* Only include articles up until this date (YYYY-MM-DD). Requires articleStatusId field.
*/
protected String articleStatusDateTo;
出参:
/**
* 数据供应商/品牌id
*/
protected long dataSupplierId;
/**
* 零件编号
*/
protected String articleNumber;
/**
* 制造商id
*/
protected long mfrId;
/**
* 制造商名称
*/
protected String mfrName;
/**
* 基本信息
*/
protected MiscArticleDataRecordDTO misc;
/**
* 产品组信息
*/
protected List<GenericArticleRecordDTO> genericArticles;
/**
* 描述信息
*/
protected List<ArticleTextRecordDTO> articleText;
/**
* GTIN/EAN 编号
*/
protected List<String> gtins;
/**
* 贸易号码
*/
protected List<String> tradeNumbers;
/**
* 原厂零件号(OE 号)信息
*/
protected List<ArticleRefRecordDTO> oemNumbers;
/**
* 可代替零件信息,一般无
*/
protected List<ArticleRefRecordDTO> replacesArticles;
/**
* 可被代替零件信息,一般无
*/
protected List<ArticleRefRecordDTO> replacedByArticles;
/**
* 零件标准信息
*/
protected List<CriteriaRecordDTO> articleCriteria;
/**
* pdf信息
*/
protected List<PDFRecordDTO> pdfs;
/**
* 图片信息
*/
protected List<ImageRecordDTO> images;
/**
* 搜索匹配的信息(是通过什么搜索出来的)
*/
protected List<SearchQueryMatchDTO> searchQueryMatches;
/**
* 链接信息
*/
protected List<LinkRecordDTO> links;
protected Integer totalLinkages;
/**
* 附加说明
*/
protected String additionalDescription;
/**
* 状态id
*/
protected Integer articleStatusId;
/**
* 状态描述
*/
protected String articleStatusDescription;
/**
* 状态有效起始时间
*/
protected Integer articleStatusValidFromDate;
/**
* 每个包装单位的数量
*/
protected Integer quantityPerPackage;
/**
* 包装单位
*/
protected Integer quantityPerPartPerPackage;
/**
* 是否自助包装
*/
protected Boolean isSelfServicePacking;
/**
* 是否有强制性材料认证
*/
protected Boolean hasMandatoryMaterialCertification;
/**
* 是否是二次零件
*/
protected Boolean isRemanufacturedPart;
/**
* 是否是附件
*/
protected Boolean isAccessory;
/**
* 批大小1
*/
protected Integer batchSize1;
/**
* 批大小2
*/
protected Integer batchSize2;
/**
* 产品组id
*/
protected int genericArticleId;
/**
* 产品组名称
*/
protected String genericArticleDescription;
/**
* 旧产品id
*/
protected int legacyArticleId;
/**
* 原厂零件号(OE 号)
*/
protected String articleNumber;
/**
* 供应商/品牌id
*/
protected Integer dataSupplierId;
/**
* 制造商id
*/
protected int mfrId;
/**
* 制造商名称
*/
protected String mfrName;
/**
* 是否匹配搜索查询
*/
protected Boolean matchesSearchQuery;
/**
* 参考信息类型
*/
protected String referenceTypeKey;
/**
* 参考信息
*/
protected String referenceTypeDescription;
(4)根据泰安联零件id查询车型id接口
/**
* 查询配件关联车型列表
* @param request 请求参数
* @return com.taobao.gpf.common.ResultDTO<com.taobao.gpf.common.response.LinkingTargetDTO>
*/
ResultDTO<List<LinkingTargetDetailDTO>> getLinkingTargets(LinkingTargetQueryRequest request);
入参:
//国家
protected String articleCountry;
//零配件id
protected long articleId;
//国家
protected String country;
//语言
protected String lang;
//关联目标id
protected Long linkingTargetId;
/**
* V:乘用车
* O:商用车
* L:运输车
* B:摩托车
* VOLB:全部
*/
//关联目标类型
protected String linkingTargetType;
出参:
/**
* 零件关联id
*/
protected Long articleLinkId;
/**
* 关联目标id
*/
protected Long linkingTargetId;
/**
* 是佛关联
*/
protected boolean linked;
/**
* 关联目标类型
*/
protected String linkingTargetType;
(5)根据泰安联id查询车型库信息
/**
* 根据泰安联id查询车型库信息
* @param tecId
* @return
*/
ResultDTO<List<CarInfoDTO>> findByTecId(String tecId);
入参:
名称 | 类型 | 备注 |
---|---|---|
tecId | String | 泰安联车型id |
出参:
private String afid; //车型库afid,唯一值
//车型库pv对信息
private Long countryPid;
private Long countryVid;
private Long makePid;
private Long makeVid;
private Long modelPid;
private Long modelVid;
private Long yearPid;
private Long yearVid;
private Long trimPid;
private Long trimVid;
private Long enginePid;
private Long engineVid;
//车型库pv对信息
private boolean hotSale; //是否是热销
private Byte carType; //车型
private String tecId; //泰安联车型id
(6)根据泰安联id批量查询车型库信息
/**
* 根据泰安联id批量查询车型库信息
* @param tecIds
* @return
*/
ResultDTO<List<CarInfoDTO>> findListByTecIds(List<String> tecIds);
入参:
名称 | 类型 | 备注 |
---|---|---|
tecIds | List |
泰安联车型id集合 |
出参同上
(7)查询商品绑定的车型库信息
/**
* 查询商品绑定的车型库信息
* @param productId
* @param sellerId
* @return
*/
ResultDTO<List<CarInfoDTO>> findListByProductId(Long productId, Long sellerId);
入参:
名称 | 类型 | 备注 |
---|---|---|
productId | Long | 商品id |
sellerId | Long | 卖家id |
出参同上
(8)批量增量更新商品的车型库信息
/**
* 批量增量更新商品的车型库信息(先增量删除,再增量添加)
* @param addAfids 添加的车型库afid
* @param removeAfids 移除的车型库afid
* @return
*/
ResultDTO<Boolean> updateProductCarInfo(Long productId, Long sellerId, List<String> addAfids, List<String> removeAfids);
入参:
名称 | 类型 | 备注 |
---|---|---|
productId | Long | 商品id |
sellerId | Long | 卖家id |
addAfids | List |
添加的车型库afid集合 |
removeAfids | List |
删除的车型库afid集合 |
出参:true成功,false失败