统一 boot 和 cloud 代码
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user