|
@@ -8,19 +8,19 @@ import {
|
|
|
Provide,
|
|
|
Put,
|
|
|
} from '@midwayjs/decorator';
|
|
|
-import { BusinessEntity } from '../../../payment/entity/business';
|
|
|
+import { BusinessEntity } from '../../payment/entity/business';
|
|
|
|
|
|
/**
|
|
|
* 受益人地址
|
|
|
*/
|
|
|
@Provide()
|
|
|
-@CoolController('/api/v1/')
|
|
|
-export class CustomerController extends BaseController {
|
|
|
+@CoolController('/api/v1/Fiat')
|
|
|
+export class BeneficiaryAddressController extends BaseController {
|
|
|
/**
|
|
|
* 创建受益人地址
|
|
|
* /api/v3/Fiat/BeneficiaryAddress
|
|
|
*/
|
|
|
- @Post('Fiat/BeneficiaryAddress', { summary: '创建受益人地址' })
|
|
|
+ @Post('/BeneficiaryAddress', { summary: '创建受益人地址' })
|
|
|
async createBeneficiaryAddress(@Body(ALL) business: BusinessEntity) {
|
|
|
// if (!this.allowKeys.includes(key)) {
|
|
|
// return this.fail('非法操作');
|
|
@@ -35,7 +35,7 @@ export class CustomerController extends BaseController {
|
|
|
* 获取受益人地址必填字段
|
|
|
* /api/v3/Fiat/BeneficiaryAddressRequiredFields
|
|
|
*/
|
|
|
- @Get('Fiat/BeneficiaryAddressRequiredFields', {
|
|
|
+ @Get('/BeneficiaryAddressRequiredFields', {
|
|
|
summary: '获取受益人地址必填字段',
|
|
|
})
|
|
|
async getBeneficiaryAddressRequiredFields(
|
|
@@ -54,7 +54,7 @@ export class CustomerController extends BaseController {
|
|
|
* 验证受益人地址必填字段
|
|
|
* /api/v3/Fiat/BeneficiaryAddress/Validate
|
|
|
*/
|
|
|
- @Post('Fiat/BeneficiaryAddress/Validate', {
|
|
|
+ @Post('/BeneficiaryAddress/Validate', {
|
|
|
summary: '验证受益人地址必填字段',
|
|
|
})
|
|
|
async BeneficiaryAddressValidate(@Body(ALL) business: BusinessEntity) {
|
|
@@ -71,7 +71,7 @@ export class CustomerController extends BaseController {
|
|
|
* 修改受益人地址
|
|
|
* /api/v3/Fiat/BeneficiaryAddress
|
|
|
*/
|
|
|
- @Put('Fiat/BeneficiaryAddress', {
|
|
|
+ @Put('/BeneficiaryAddress', {
|
|
|
summary: '修改受益人地址',
|
|
|
})
|
|
|
async updateBeneficiaryAddress(@Body(ALL) business: BusinessEntity) {
|
|
@@ -88,7 +88,7 @@ export class CustomerController extends BaseController {
|
|
|
* 获取受益人地址
|
|
|
* /api/v3/Fiat/BeneficiaryAddress/{id}
|
|
|
*/
|
|
|
- @Put('Fiat/BeneficiaryAddress/:id', {
|
|
|
+ @Put('/BeneficiaryAddress/:id', {
|
|
|
summary: '修改受益人地址',
|
|
|
})
|
|
|
async getBeneficiaryAddressForId(@Body(ALL) business: BusinessEntity) {
|
|
@@ -105,7 +105,7 @@ export class CustomerController extends BaseController {
|
|
|
* 获取受益人地址列表
|
|
|
* /api/v3/Fiat/BeneficiaryAddress
|
|
|
*/
|
|
|
- @Get('Fiat/BeneficiaryAddress', {
|
|
|
+ @Get('/BeneficiaryAddress', {
|
|
|
summary: '获取受益人地址列表',
|
|
|
})
|
|
|
async getBeneficiaryAddress(@Body(ALL) business: BusinessEntity) {
|
|
@@ -122,7 +122,7 @@ export class CustomerController extends BaseController {
|
|
|
* 删除受益人地址
|
|
|
* /api/v3/Fiat/BeneficiaryAddress/{id}
|
|
|
*/
|
|
|
- @Get('Fiat/BeneficiaryAddress/:id', {
|
|
|
+ @Get('/BeneficiaryAddress/:id', {
|
|
|
summary: '删除受益人地址',
|
|
|
})
|
|
|
async deleteBeneficiaryAddressForId(@Body(ALL) business: BusinessEntity) {
|