fix: simplify balance billing and govern operation logs
This commit is contained in:
@@ -6,8 +6,6 @@ import {
|
||||
BillingService,
|
||||
BillingActionDto,
|
||||
CreateManualRechargeDto,
|
||||
CreateRechargeOrderDto,
|
||||
CreateBillingPlanDto,
|
||||
CreateBillingRuleDto,
|
||||
CreateSmsBillingRecordDto,
|
||||
CreateTenantAccountDto,
|
||||
@@ -19,16 +17,6 @@ import {
|
||||
export class BillingController {
|
||||
constructor(private readonly billing: BillingService) {}
|
||||
|
||||
@Get('plans')
|
||||
listPlans() {
|
||||
return this.billing.listPlans();
|
||||
}
|
||||
|
||||
@Post('plans')
|
||||
createPlan(@Body() body: CreateBillingPlanDto) {
|
||||
return this.billing.createPlan(body);
|
||||
}
|
||||
|
||||
@Get('accounts')
|
||||
listAccounts() {
|
||||
return this.billing.listAccounts();
|
||||
@@ -44,11 +32,6 @@ export class BillingController {
|
||||
return this.billing.listRechargeOrders(tenantId);
|
||||
}
|
||||
|
||||
@Post('recharges')
|
||||
createRechargeOrder(@Body() body: CreateRechargeOrderDto) {
|
||||
return this.billing.createRechargeOrder(body);
|
||||
}
|
||||
|
||||
@Get('manual-recharges')
|
||||
listManualRechargeRecords(@TenantId() tenantId?: string) {
|
||||
return this.billing.listManualRechargeRecords(tenantId);
|
||||
@@ -123,16 +106,6 @@ export class BillingController {
|
||||
export class ClientBillingController {
|
||||
constructor(private readonly billing: BillingService) {}
|
||||
|
||||
@Get('plans')
|
||||
listPlans() {
|
||||
return this.billing.listPlans();
|
||||
}
|
||||
|
||||
@Post('orders')
|
||||
createRechargeOrder(@Body() body: CreateRechargeOrderDto) {
|
||||
return this.billing.createRechargeOrder(body);
|
||||
}
|
||||
|
||||
@Get('orders')
|
||||
listRechargeOrders(@TenantId() tenantId?: string) {
|
||||
return this.billing.listRechargeOrders(tenantId);
|
||||
|
||||
Reference in New Issue
Block a user