fix: simplify balance billing and govern operation logs

This commit is contained in:
hectorzhao
2026-07-14 17:40:32 +08:00
parent f35691f185
commit 28dad93e3e
40 changed files with 740 additions and 395 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
import type { BatchTask, BillingPlan, ClientOverview, Invoice, RecentMessage, Signature, SmsTemplate } from '@/mock/types';
import type { BatchTask, ClientOverview, Invoice, RecentMessage, Signature, SmsTemplate } from '@/mock/types';
export const clientOverview: ClientOverview = {
availableBalance: 28642.5,
@@ -70,12 +70,6 @@ export const signatures: Signature[] = [
{ id: 'SIG-103', name: '北辰出行', company: '深圳北辰出行服务有限公司', status: 'rejected' },
];
export const billingPlans: BillingPlan[] = [
{ id: 'PLAN-01', name: '基础包', messages: 10000, price: 680 },
{ id: 'PLAN-02', name: '增长包', messages: 50000, price: 2980, highlight: true },
{ id: 'PLAN-03', name: '企业包', messages: 200000, price: 10800 },
];
export const invoices: Invoice[] = [
{ id: 'INV-20260601', title: '增长包充值', amount: 2980, messages: 50000, status: 'paid', createdAt: '2026-06-01 10:12' },
{ id: 'INV-20260518', title: '基础包充值', amount: 680, messages: 10000, status: 'paid', createdAt: '2026-05-18 14:26' },
+1 -5
View File
@@ -1,4 +1,4 @@
import { batchTasks, billingPlans, clientOverview, invoices, recentMessages, signatures, smsTemplates } from '@/mock/clientData';
import { batchTasks, clientOverview, invoices, recentMessages, signatures, smsTemplates } from '@/mock/clientData';
import { readLocalData, writeLocalData } from '@/mock/storage';
import type { BatchTask, RecentMessage, Signature, SmsTemplate } from '@/mock/types';
@@ -45,10 +45,6 @@ export const clientService = {
writeLocalData(keys.signatures, nextSignatures);
},
getBillingPlans() {
return billingPlans;
},
getInvoices() {
return invoices;
},
-1
View File
@@ -8,7 +8,6 @@ export type {
BatchSendType,
BatchTask,
BatchTaskStatus,
BillingPlan,
Channel,
ClientOverview,
Customer,
-8
View File
@@ -75,14 +75,6 @@ export type Channel = {
enabled: boolean;
};
export type BillingPlan = {
id: string;
name: string;
messages: number;
price: number;
highlight?: boolean;
};
export type Invoice = {
id: string;
title: string;