Эх сурвалжийг харах

feat(): 增加确认订单 api ,调整获取受益人地址请求方式,删除接口todo

zerogo 7 сар өмнө
parent
commit
c7fe18b68b

+ 3 - 2
src/modules/api/controller/beneficiaryAddress.ts

@@ -88,8 +88,8 @@ export class BeneficiaryAddressController extends BaseController {
    * 获取受益人地址
    * /api/v3/Fiat/BeneficiaryAddress/{id}
    */
-  @Put('/BeneficiaryAddress/:id', {
-    summary: '修改受益人地址',
+  @Get('/BeneficiaryAddress/:id', {
+    summary: '获取受益人地址',
   })
   async getBeneficiaryAddressForId(@Body(ALL) business: BusinessEntity) {
     // if (!this.allowKeys.includes(key)) {
@@ -122,6 +122,7 @@ export class BeneficiaryAddressController extends BaseController {
    * 删除受益人地址
    * /api/v3/Fiat/BeneficiaryAddress/{id}
    */
+  // delete 请求存疑
   @Get('/BeneficiaryAddress/:id', {
     summary: '删除受益人地址',
   })

+ 15 - 0
src/modules/api/controller/payOut.ts

@@ -53,6 +53,21 @@ export class CustomerController extends BaseController {
     console.log(business);
     return this.ok('hello, cool-admin!!!');
   }
+    /**
+   * 确认订单
+   * /api/v3/Fiat/PayOut/{orderNo}/Cancel
+   */
+    @Post('/PayOut/:orderNo/Confirm', { summary: '确认订单' })
+    async confirmPayOutOrderForOrderNo(@Body(ALL) business: BusinessEntity) {
+      // if (!this.allowKeys.includes(key)) {
+      //   return this.fail('非法操作');
+      // }
+      // 关键参数校验
+      // 数据落库
+      // 回调
+      console.log(business);
+      return this.ok('hello, cool-admin!!!');
+    }
   /**
    * TODO 创建订单回调通知
    * /api/v3/Fiat/PayOut/{orderNo}/Cancel