记得上下班打卡 | git大法好,push需谨慎

Commit f625bba0 authored by 胡佳晨's avatar 胡佳晨

修改接口文档

parent 738d59d3
...@@ -23,7 +23,7 @@ import javax.validation.Valid; ...@@ -23,7 +23,7 @@ import javax.validation.Valid;
import java.math.BigDecimal; import java.math.BigDecimal;
@ApiSupport(order = 149101) @ApiSupport(order = 149101)
@Api(tags = "店铺-订单") @Api(tags = "店铺-退款订单")
@Slf4j @Slf4j
@Validated @Validated
@RestController @RestController
......
...@@ -54,7 +54,7 @@ public class GoblinStoreOrderController { ...@@ -54,7 +54,7 @@ public class GoblinStoreOrderController {
@ApiOperation(value = "订单详情") @ApiOperation(value = "订单详情")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderId", value = "订单id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单id"),
}) })
@GetMapping(value = "details") @GetMapping(value = "details")
public ResponseDto<GoblinStoreOrderListVo> orderList(@RequestParam(value = "orderId", required = true) @Valid String orderId) { public ResponseDto<GoblinStoreOrderListVo> orderList(@RequestParam(value = "orderId", required = true) @Valid String orderId) {
...@@ -72,8 +72,8 @@ public class GoblinStoreOrderController { ...@@ -72,8 +72,8 @@ public class GoblinStoreOrderController {
@ApiOperation(value = "修改快递价格") @ApiOperation(value = "修改快递价格")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderId", value = "订单id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单id"),
@ApiImplicitParam(type = "form", required = false, dataType = "BigDecimal", name = "price", value = "快递金额"), @ApiImplicitParam(type = "form", required = true, dataType = "BigDecimal", name = "price", value = "快递金额"),
}) })
@GetMapping(value = "change/expressPrice") @GetMapping(value = "change/expressPrice")
public ResponseDto<Boolean> changeExpressPrice(@RequestParam(value = "orderId", required = true) @Valid String orderId, public ResponseDto<Boolean> changeExpressPrice(@RequestParam(value = "orderId", required = true) @Valid String orderId,
...@@ -83,9 +83,9 @@ public class GoblinStoreOrderController { ...@@ -83,9 +83,9 @@ public class GoblinStoreOrderController {
@ApiOperation(value = "修改sku价格") @ApiOperation(value = "修改sku价格")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderId", value = "订单id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单id"),
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderSkuId", value = "orderSkuId"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderSkuId", value = "orderSkuId"),
@ApiImplicitParam(type = "form", required = false, dataType = "BigDecimal", name = "price", value = "修改金额"), @ApiImplicitParam(type = "form", required = true, dataType = "BigDecimal", name = "price", value = "修改金额"),
}) })
@GetMapping(value = "change/skuPrice") @GetMapping(value = "change/skuPrice")
public ResponseDto<Boolean> changeSkuPrice(@RequestParam(value = "orderId", required = true) @Valid String orderId, public ResponseDto<Boolean> changeSkuPrice(@RequestParam(value = "orderId", required = true) @Valid String orderId,
...@@ -109,15 +109,15 @@ public class GoblinStoreOrderController { ...@@ -109,15 +109,15 @@ public class GoblinStoreOrderController {
return goblinStoreOrderService.changeAddress(orderId, expressContacts, expressPhone, expressAddressDetail); return goblinStoreOrderService.changeAddress(orderId, expressContacts, expressPhone, expressAddressDetail);
} }
@ApiOperation(value = "sku退款") @ApiOperation(value = "退款(sku/整单)")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderId", value = "订单id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单id"),
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderSkuId", value = "详细快递地址"), @ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderSkuId", value = "orderSkuId[整单退不传]"),
@ApiImplicitParam(type = "form", required = false, dataType = "BigDecimal", name = "price", value = "退款金额"), @ApiImplicitParam(type = "form", required = true, dataType = "BigDecimal", name = "price", value = "退款金额"),
}) })
@GetMapping(value = "refund/sku") @GetMapping(value = "refund/sku")
public ResponseDto<Boolean> refundOrderSku(@RequestParam(value = "orderId", required = true) @Valid String orderId, public ResponseDto<Boolean> refundOrderSku(@RequestParam(value = "orderId", required = true) @Valid String orderId,
@RequestParam(value = "orderSkuId", required = true) @Valid String orderSkuId, @RequestParam(value = "orderSkuId", required = false) String orderSkuId,
@RequestParam(value = "price", required = true) @Valid BigDecimal price) { @RequestParam(value = "price", required = true) @Valid BigDecimal price) {
return goblinStoreOrderService.refundOrderSku(orderId, orderSkuId, price); return goblinStoreOrderService.refundOrderSku(orderId, orderSkuId, price);
} }
...@@ -130,8 +130,8 @@ public class GoblinStoreOrderController { ...@@ -130,8 +130,8 @@ public class GoblinStoreOrderController {
@ApiOperation(value = "发货") @ApiOperation(value = "发货")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "orderId", value = "订单id"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "orderId", value = "订单id"),
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "mailNo", value = "快递单号"), @ApiImplicitParam(type = "form", required = true, dataType = "String", name = "mailNo", value = "快递单号"),
}) })
@GetMapping(value = "express") @GetMapping(value = "express")
public ResponseDto<Boolean> express(@RequestParam(value = "orderId", required = true) @Valid String orderId, public ResponseDto<Boolean> express(@RequestParam(value = "orderId", required = true) @Valid String orderId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment