|
@@ -5,6 +5,7 @@ import { BaseSysConfService } from '../../../base/service/sys/conf';
|
|
|
import { CurrencyService } from '../../service/currency';
|
|
|
import { MerchantService } from '../../service/merchant';
|
|
|
import { PayTypeService } from '../../service/payType';
|
|
|
+import { ChannelService } from '../../service/channel';
|
|
|
|
|
|
@Provide()
|
|
|
@CoolController()
|
|
@@ -20,6 +21,9 @@ export class OrdertController extends BaseController {
|
|
|
|
|
|
@Inject()
|
|
|
payTypeService: PayTypeService;
|
|
|
+
|
|
|
+ @Inject()
|
|
|
+ channelService: ChannelService;
|
|
|
|
|
|
@Inject()
|
|
|
baseSysConfService: BaseSysConfService;
|
|
@@ -46,7 +50,12 @@ export class OrdertController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Post('/getPayTypes', { summary: '支付类型列表' })
|
|
|
- async getPayTypes() {
|
|
|
- return this.ok(await this.payTypeService.getPayTypeList());
|
|
|
+ async getPayTypes(@Body('type') type) {
|
|
|
+ return this.ok(await this.payTypeService.getPayTypeList(type));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Post('/getChannels', { summary: '支付通道列表' })
|
|
|
+ async getChannels() {
|
|
|
+ return this.ok(await this.channelService.getChannelList());
|
|
|
}
|
|
|
}
|