mall:完善 cloud 的 api 调用

This commit is contained in:
YunaiV 2023-10-24 12:41:26 +08:00
parent b133cfa2a8
commit f7d264eff7
2 changed files with 5 additions and 8 deletions

View File

@ -57,13 +57,13 @@ public interface CombinationRecordApi {
@Parameters({
@Parameter(name = "userId", description = "用户编号", required = true, example = "1024"),
@Parameter(name = "activityId", description = "活动编号", required = true, example = "2048"),
@Parameter(name = "headId", description = "团长编号", required = true, example = "4096"),
@Parameter(name = "headId", description = "团长编号", example = "4096"), // 如果新发起的团headId 不用传递
@Parameter(name = "skuId", description = "SKU 编号", required = true, example = "8192"),
@Parameter(name = "count", description = "数量", required = true, example = "1"),
})
CommonResult<CombinationValidateJoinRespDTO> validateJoinCombination(@RequestParam("userId") Long userId,
@RequestParam("activityId") Long activityId,
@RequestParam("headId") Long headId,
@RequestParam(value = "headId", required = false) Long headId,
@RequestParam("skuId") Long skuId,
@RequestParam("count") Integer count);

View File

@ -9,10 +9,7 @@ import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
@ -26,10 +23,10 @@ public interface PayOrderApi {
@Operation(summary = "创建支付单")
CommonResult<Long> createOrder(@Valid @RequestBody PayOrderCreateReqDTO reqDTO);
@PostMapping(PREFIX + "/get")
@GetMapping(PREFIX + "/get")
@Operation(summary = "获得支付单")
@Parameter(name = "id", description = "支付单编号", example = "1", required = true)
CommonResult<PayOrderRespDTO> getOrder(Long id);
CommonResult<PayOrderRespDTO> getOrder(@RequestParam("id") Long id);
@PutMapping(PREFIX + "/update-price")
@Operation(summary = "更新支付订单价格")