|
|
@ -13,6 +13,7 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.iocoder.yudao.framework.common.pojo.ApiResult; |
|
|
|
import cn.iocoder.yudao.framework.common.pojo.ApiResult; |
|
|
|
import cn.iocoder.yudao.framework.common.exception.ShopException; |
|
|
|
import cn.iocoder.yudao.framework.common.exception.ShopException; |
|
|
|
|
|
|
|
import cn.iocoder.yudao.framework.idempotent.core.annotation.Idempotent; |
|
|
|
import co.yixiang.app.common.aop.NoRepeatSubmit; |
|
|
|
import co.yixiang.app.common.aop.NoRepeatSubmit; |
|
|
|
import co.yixiang.app.common.bean.LocalUser; |
|
|
|
import co.yixiang.app.common.bean.LocalUser; |
|
|
|
import co.yixiang.app.modules.order.param.*; |
|
|
|
import co.yixiang.app.modules.order.param.*; |
|
|
@ -133,7 +134,7 @@ public class AppStoreOrderController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单创建", type = 1) |
|
|
|
@AppLog(value = "订单创建", type = 1) |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@PostMapping("/order/create/{key}") |
|
|
|
@PostMapping("/order/create/{key}") |
|
|
|
@ApiOperation(value = "订单创建", notes = "订单创建") |
|
|
|
@ApiOperation(value = "订单创建", notes = "订单创建") |
|
|
|
public ApiResult<Map<String, Object>> create(@Valid @RequestBody OrderParam param, |
|
|
|
public ApiResult<Map<String, Object>> create(@Valid @RequestBody OrderParam param, |
|
|
@ -301,7 +302,7 @@ public class AppStoreOrderController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单评价", type = 1) |
|
|
|
@AppLog(value = "订单评价", type = 1) |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@PostMapping("/order/comment") |
|
|
|
@PostMapping("/order/comment") |
|
|
|
@ApiOperation(value = "订单评价", notes = "订单评价") |
|
|
|
@ApiOperation(value = "订单评价", notes = "订单评价") |
|
|
|
public ApiResult<Boolean> comment(@Valid @RequestBody ProductReplyParam param) { |
|
|
|
public ApiResult<Boolean> comment(@Valid @RequestBody ProductReplyParam param) { |
|
|
@ -325,7 +326,7 @@ public class AppStoreOrderController { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单评价", type = 1) |
|
|
|
@AppLog(value = "订单评价", type = 1) |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@PostMapping("/order/comments") |
|
|
|
@PostMapping("/order/comments") |
|
|
|
@ApiOperation(value = "订单评价", notes = "订单评价") |
|
|
|
@ApiOperation(value = "订单评价", notes = "订单评价") |
|
|
|
public ApiResult<Boolean> comments(@Valid @RequestBody List<ProductReplyParam> param) { |
|
|
|
public ApiResult<Boolean> comments(@Valid @RequestBody List<ProductReplyParam> param) { |
|
|
@ -383,7 +384,7 @@ public class AppStoreOrderController { |
|
|
|
* 订单退款审核 |
|
|
|
* 订单退款审核 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单退款审核", type = 1) |
|
|
|
@AppLog(value = "订单退款审核", type = 1) |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@PostMapping("/order/refund/verify") |
|
|
|
@PostMapping("/order/refund/verify") |
|
|
|
@ApiOperation(value = "订单退款审核", notes = "订单退款审核") |
|
|
|
@ApiOperation(value = "订单退款审核", notes = "订单退款审核") |
|
|
@ -400,7 +401,7 @@ public class AppStoreOrderController { |
|
|
|
* 订单取消 未支付的订单回退积分,回退优惠券,回退库存 |
|
|
|
* 订单取消 未支付的订单回退积分,回退优惠券,回退库存 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单取消", type = 1) |
|
|
|
@AppLog(value = "订单取消", type = 1) |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@PostMapping("/order/cancel") |
|
|
|
@PostMapping("/order/cancel") |
|
|
|
@ApiOperation(value = "订单取消", notes = "订单取消") |
|
|
|
@ApiOperation(value = "订单取消", notes = "订单取消") |
|
|
@ -426,7 +427,7 @@ public class AppStoreOrderController { |
|
|
|
* 订单删除,用户不可见,但后台可见 |
|
|
|
* 订单删除,用户不可见,但后台可见 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单删除", type = 1) |
|
|
|
@AppLog(value = "订单删除", type = 1) |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@PostMapping("/order/delete") |
|
|
|
@PostMapping("/order/delete") |
|
|
|
@ApiOperation(value = "用户进行订单删除", notes = "用户进行订单删除") |
|
|
|
@ApiOperation(value = "用户进行订单删除", notes = "用户进行订单删除") |
|
|
@ -475,7 +476,7 @@ public class AppStoreOrderController { |
|
|
|
* 订单核销 |
|
|
|
* 订单核销 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@AppLog(value = "订单核销", type = 1) |
|
|
|
@AppLog(value = "订单核销", type = 1) |
|
|
|
@NoRepeatSubmit |
|
|
|
@Idempotent |
|
|
|
@AuthCheck |
|
|
|
@AuthCheck |
|
|
|
@PostMapping("/order/order_verific") |
|
|
|
@PostMapping("/order/order_verific") |
|
|
|
@ApiOperation(value = "订单核销", notes = "订单核销") |
|
|
|
@ApiOperation(value = "订单核销", notes = "订单核销") |
|
|
|