统一 boot 和 cloud 代码

This commit is contained in:
YunaiV
2023-10-24 20:45:01 +08:00
parent e10f325843
commit 80edb0e808
18 changed files with 108 additions and 129 deletions

View File

@@ -8,8 +8,10 @@ import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
@@ -23,9 +25,9 @@ public interface PayRefundApi {
@Operation(summary = "创建退款单")
CommonResult<Long> createRefund(@Valid @RequestBody PayRefundCreateReqDTO reqDTO);
@PostMapping(PREFIX + "/get")
@GetMapping(PREFIX + "/get")
@Operation(summary = "获得退款单")
@Parameter(name = "id", description = "退款单编号", example = "1", required = true)
CommonResult<PayRefundRespDTO> getRefund(Long id);
CommonResult<PayRefundRespDTO> getRefund(@RequestParam("id") Long id);
}