|
@@ -1,311 +0,0 @@
|
|
|
-package org.dromara.external.controller.thirdparty;
|
|
|
|
|
-
|
|
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
-import org.dromara.common.core.domain.R;
|
|
|
|
|
-import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
-import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
-import org.dromara.external.api.thirdparty.domain.bo.*;
|
|
|
|
|
-import org.dromara.external.api.thirdparty.domain.dto.*;
|
|
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
-
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * 第三方平台接口对接控制器
|
|
|
|
|
- * 优易达(武汉)有限公司-平台接口对接稳定V2.0
|
|
|
|
|
- * 时间:2026/1/5,19:03
|
|
|
|
|
- */
|
|
|
|
|
-@Slf4j
|
|
|
|
|
-@Validated
|
|
|
|
|
-@RequiredArgsConstructor
|
|
|
|
|
-@RestController
|
|
|
|
|
-@RequestMapping("/api/thirdparty")
|
|
|
|
|
-public class ThirdpartyController {
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品列表查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getListProducts")
|
|
|
|
|
- public TableDataInfo<ThirdpartyProductDto> getListProducts(@RequestBody ThirdpartyProductBo bo, PageQuery pageQuery) {
|
|
|
|
|
- // TODO: 实现产品列表查询逻辑
|
|
|
|
|
- return TableDataInfo.build();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品表体接口
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductBody")
|
|
|
|
|
- public R<ThirdpartyProductDto> getProductBody(@RequestBody ThirdpartyProductDetailBo bo) {
|
|
|
|
|
- // TODO: 实现产品表体查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品详情查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductDetails")
|
|
|
|
|
- public R<ThirdpartyProductDetailDto> getProductDetails(@RequestBody ThirdpartyProductDetailBo bo) {
|
|
|
|
|
- // TODO: 实现产品详情查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品价格查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getPrice")
|
|
|
|
|
- public R<ThirdpartyProductPriceDto> getPrice(@RequestBody ThirdpartyProductDetailBo bo) {
|
|
|
|
|
- // TODO: 实现产品价格查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 商品查询价格(批量)
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getBatchPrice")
|
|
|
|
|
- public R<List<ThirdpartyProductPriceDto>> getBatchPrice(@RequestBody ThirdpartyProductDetailBo bo) {
|
|
|
|
|
- // TODO: 实现批量价格查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 商品库存查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductStock")
|
|
|
|
|
- public R<ThirdpartyProductStockDto> getProductStock(@RequestBody ThirdpartyProductStockBo bo) {
|
|
|
|
|
- // TODO: 实现商品库存查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getStatus")
|
|
|
|
|
- public R<ThirdpartyProductStatusDto> getStatus(@RequestBody ThirdpartyProductDetailBo bo) {
|
|
|
|
|
- // TODO: 实现产品状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品品牌查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductBrand")
|
|
|
|
|
- public R<List<ThirdpartyProductBrandDto>> getProductBrand(@RequestBody ThirdpartyProductBrandBo bo) {
|
|
|
|
|
- // TODO: 实现产品品牌查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品单位查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductUnit")
|
|
|
|
|
- public R<ThirdpartyProductUnitDto> getProductUnit(@RequestBody ThirdpartyProductUnitBo bo) {
|
|
|
|
|
- // TODO: 实现产品单位查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 产品分类查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/product/getProductCates")
|
|
|
|
|
- public R<List<ThirdpartyProductCateDto>> getProductCates() {
|
|
|
|
|
- // TODO: 实现产品分类查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 获取区域地址
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Product/getSysArea")
|
|
|
|
|
- public R<List<ThirdpartyAreaDto>> getSysArea() {
|
|
|
|
|
- // TODO: 实现获取区域地址逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单新增
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/addOrder")
|
|
|
|
|
- public R<String> addOrder(@RequestBody ThirdpartyOrderAddBo bo) {
|
|
|
|
|
- // TODO: 实现订单新增逻辑
|
|
|
|
|
- //订单新增时 api传商品id跟数量 后台需要根据商品id查询返回商品价格
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/getOrder")
|
|
|
|
|
- public R<ThirdpartyOrderDto> getOrder(@RequestBody ThirdpartyOrderBo bo) {
|
|
|
|
|
- // TODO: 实现订单查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单列表查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/getOrders")
|
|
|
|
|
- public TableDataInfo<ThirdpartyOrderDto> getOrders(@RequestBody ThirdpartyOrderListBo bo, PageQuery pageQuery) {
|
|
|
|
|
- // TODO: 实现订单列表查询逻辑
|
|
|
|
|
- return TableDataInfo.build();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 主订单查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/getRootOrder")
|
|
|
|
|
- public R<ThirdpartyRootOrderDto> getRootOrder(@RequestBody ThirdpartyRootOrderBo bo) {
|
|
|
|
|
- // TODO: 实现主订单查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/getOrderStatus")
|
|
|
|
|
- public R<ThirdpartyOrderStatusDto> getOrderStatus(@RequestBody ThirdpartyOrderStatusBo bo) {
|
|
|
|
|
- // TODO: 实现订单状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 撤销订单
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/confirmOrder")
|
|
|
|
|
- public R<String> confirmOrder(@RequestBody ThirdpartyConfirmOrderBo bo) {
|
|
|
|
|
- // TODO: 实现撤销订单逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单支付状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/order/getOrderPayState")
|
|
|
|
|
- public R<ThirdpartyOrderPayStateDto> getOrderPayState(@RequestBody ThirdpartyOrderStatusBo bo) {
|
|
|
|
|
- // TODO: 实现订单支付状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 订单支付状态写入
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Order/setOrderPayState")
|
|
|
|
|
- public R<String> setOrderPayState(@RequestBody ThirdpartySetOrderPayStateBo bo) {
|
|
|
|
|
- // TODO: 实现订单支付状态写入逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 售后订单新增
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/AfterOrder/addAfterOrder")
|
|
|
|
|
- public R<String> addAfterOrder(@RequestBody ThirdpartyAfterOrderAddBo bo) {
|
|
|
|
|
- // TODO: 实现售后订单新增逻辑
|
|
|
|
|
- return R.ok("新增成功");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 售后订单状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/AfterOrder/getAfterStatus")
|
|
|
|
|
- public R<ThirdpartyAfterOrderStatusDto> getAfterStatus(@RequestBody ThirdpartyAfterOrderBo bo) {
|
|
|
|
|
- // TODO: 实现售后订单状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 售后订单状态修改
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/AfterOrder/setAfterState")
|
|
|
|
|
- public R<String> setAfterState(@RequestBody ThirdpartySetAfterStateBo bo) {
|
|
|
|
|
- // TODO: 实现售后订单状态修改逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 售后订单列表查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/AfterOrder/getAfterOrderList")
|
|
|
|
|
- public TableDataInfo<ThirdpartyAfterOrderDto> getAfterOrderList(@RequestBody ThirdpartyAfterOrderListBo bo, PageQuery pageQuery) {
|
|
|
|
|
- // TODO: 实现售后订单列表查询逻辑
|
|
|
|
|
- return TableDataInfo.build();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 售后订单查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/AfterOrder/getAfterOrder")
|
|
|
|
|
- public R<ThirdpartyAfterOrderDto> getAfterOrder(@RequestBody ThirdpartyAfterOrderBo bo) {
|
|
|
|
|
- // TODO: 实现售后订单查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 物流查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/geTtracking")
|
|
|
|
|
- public R<ThirdpartyTrackingDto> geTtracking(@RequestBody ThirdpartyTrackingBo bo) {
|
|
|
|
|
- // TODO: 实现物流查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 物流状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/getTrackingStatus")
|
|
|
|
|
- public R<ThirdpartyTrackingStatusDto> getTrackingStatus(@RequestBody ThirdpartyTrackingStatusBo bo) {
|
|
|
|
|
- // TODO: 实现物流状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 对账列表查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/getReconList")
|
|
|
|
|
- public TableDataInfo<ThirdpartyReconDto> getReconList(@RequestBody ThirdpartyReconListBo bo, PageQuery pageQuery) {
|
|
|
|
|
- // TODO: 实现对账列表查询逻辑
|
|
|
|
|
- return TableDataInfo.build();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 对账申请
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/applyRecon")
|
|
|
|
|
- public R<String> applyRecon(@RequestBody ThirdpartyApplyReconBo bo) {
|
|
|
|
|
- // TODO: 实现对账申请逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 对账状态查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/getReconState")
|
|
|
|
|
- public R<ThirdpartyReconStateDto> getReconState(@RequestBody ThirdpartyReconStateBo bo) {
|
|
|
|
|
- // TODO: 实现对账状态查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 申请开票
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/orderInvoice")
|
|
|
|
|
- public R<String> orderInvoice(@RequestBody ThirdpartyOrderInvoiceBo bo) {
|
|
|
|
|
- // TODO: 实现申请开票逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 开票信息查询
|
|
|
|
|
- */
|
|
|
|
|
- @PostMapping("/Other/getOrderInvoice")
|
|
|
|
|
- public R<ThirdpartyOrderInvoiceDto> getOrderInvoice(@RequestBody ThirdpartyOrderInvoiceBo bo) {
|
|
|
|
|
- // TODO: 实现开票信息查询逻辑
|
|
|
|
|
- return R.ok();
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|