chore: migrate to KT financial system

This commit is contained in:
woshiqp465
2025-11-04 16:06:44 +08:00
parent 2c0505b73d
commit f4cd0a5f22
289 changed files with 7362 additions and 41458 deletions

View File

@@ -693,11 +693,11 @@ export interface Category {
}
export const MOCK_CATEGORIES: Category[] = [
// 支出分类
// 支出分类 (ID 1-17)
{
id: 1,
userId: null,
name: '餐饮',
name: '餐饮美食',
type: 'expense',
icon: '🍜',
color: '#ff6b6b',
@@ -708,9 +708,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 2,
userId: null,
name: '交通',
name: '佣金/返佣',
type: 'expense',
icon: '🚗',
icon: '💸',
color: '#4ecdc4',
sortOrder: 2,
isSystem: true,
@@ -719,9 +719,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 3,
userId: null,
name: '购物',
name: '分红',
type: 'expense',
icon: '🛍️',
icon: '💰',
color: '#95e1d3',
sortOrder: 3,
isSystem: true,
@@ -730,9 +730,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 4,
userId: null,
name: '娱乐',
name: '技术/软件',
type: 'expense',
icon: '🎮',
icon: '💻',
color: '#f38181',
sortOrder: 4,
isSystem: true,
@@ -741,9 +741,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 5,
userId: null,
name: '软件订阅',
name: '固定资产',
type: 'expense',
icon: '💻',
icon: '🏠',
color: '#aa96da',
sortOrder: 5,
isSystem: true,
@@ -752,9 +752,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 6,
userId: null,
name: '投资支出',
name: '退款',
type: 'expense',
icon: '📊',
icon: '↩️',
color: '#fcbad3',
sortOrder: 6,
isSystem: true,
@@ -763,9 +763,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 7,
userId: null,
name: '医疗健康',
name: '服务器/技术',
type: 'expense',
icon: '🏥',
icon: '🖥️',
color: '#a8d8ea',
sortOrder: 7,
isSystem: true,
@@ -774,9 +774,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 8,
userId: null,
name: '房租房贷',
name: '工资',
type: 'expense',
icon: '🏠',
icon: '💼',
color: '#ffcccc',
sortOrder: 8,
isSystem: true,
@@ -785,9 +785,9 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 9,
userId: null,
name: '教育',
name: '借款/转账',
type: 'expense',
icon: '📚',
icon: '🔄',
color: '#ffd3b6',
sortOrder: 9,
isSystem: true,
@@ -796,29 +796,106 @@ export const MOCK_CATEGORIES: Category[] = [
{
id: 10,
userId: null,
name: '广告推广',
type: 'expense',
icon: '📢',
color: '#dfe4ea',
sortOrder: 10,
isSystem: true,
isActive: true,
},
{
id: 11,
userId: null,
name: '交通出行',
type: 'expense',
icon: '🚗',
color: '#74b9ff',
sortOrder: 11,
isSystem: true,
isActive: true,
},
{
id: 12,
userId: null,
name: '购物消费',
type: 'expense',
icon: '🛍️',
color: '#fd79a8',
sortOrder: 12,
isSystem: true,
isActive: true,
},
{
id: 13,
userId: null,
name: '娱乐休闲',
type: 'expense',
icon: '🎮',
color: '#fdcb6e',
sortOrder: 13,
isSystem: true,
isActive: true,
},
{
id: 14,
userId: null,
name: '医疗健康',
type: 'expense',
icon: '🏥',
color: '#55efc4',
sortOrder: 14,
isSystem: true,
isActive: true,
},
{
id: 15,
userId: null,
name: '教育学习',
type: 'expense',
icon: '📚',
color: '#a29bfe',
sortOrder: 15,
isSystem: true,
isActive: true,
},
{
id: 16,
userId: null,
name: '房租房贷',
type: 'expense',
icon: '🏘️',
color: '#ff7675',
sortOrder: 16,
isSystem: true,
isActive: true,
},
{
id: 17,
userId: null,
name: '其他支出',
type: 'expense',
icon: '📝',
color: '#dfe4ea',
color: '#b2bec3',
sortOrder: 99,
isSystem: true,
isActive: true,
},
// 收入分类
// 收入分类 (ID 18-23)
{
id: 11,
id: 18,
userId: null,
name: '工资',
name: '工资收入',
type: 'income',
icon: '💼',
icon: '💵',
color: '#38ada9',
sortOrder: 1,
isSystem: true,
isActive: true,
},
{
id: 12,
id: 19,
userId: null,
name: '奖金',
type: 'income',
@@ -829,7 +906,7 @@ export const MOCK_CATEGORIES: Category[] = [
isActive: true,
},
{
id: 13,
id: 20,
userId: null,
name: '投资收益',
type: 'income',
@@ -840,7 +917,7 @@ export const MOCK_CATEGORIES: Category[] = [
isActive: true,
},
{
id: 14,
id: 21,
userId: null,
name: '副业收入',
type: 'income',
@@ -851,12 +928,23 @@ export const MOCK_CATEGORIES: Category[] = [
isActive: true,
},
{
id: 15,
id: 22,
userId: null,
name: '退款收入',
type: 'income',
icon: '↩️',
color: '#82ccdd',
sortOrder: 5,
isSystem: true,
isActive: true,
},
{
id: 23,
userId: null,
name: '其他收入',
type: 'income',
icon: '💰',
color: '#82ccdd',
color: '#10ac84',
sortOrder: 99,
isSystem: true,
isActive: true,