diff --git a/backend/services/authorization-service/src/application/services/system-account-application.service.ts b/backend/services/authorization-service/src/application/services/system-account-application.service.ts index 7d2ed3b0..2ec40d75 100644 --- a/backend/services/authorization-service/src/application/services/system-account-application.service.ts +++ b/backend/services/authorization-service/src/application/services/system-account-application.service.ts @@ -84,12 +84,10 @@ export class SystemAccountApplicationService implements OnModuleInit { */ async initializeFixedAccounts(): Promise { const fixedAccountTypes = [ - SystemAccountType.HQ_COMMUNITY, SystemAccountType.COST_ACCOUNT, SystemAccountType.OPERATION_ACCOUNT, + SystemAccountType.HQ_COMMUNITY, SystemAccountType.RWAD_POOL_PENDING, - SystemAccountType.SHARE_RIGHT_POOL, - SystemAccountType.FEE_COLLECTION, ] for (const accountType of fixedAccountTypes) { diff --git a/backend/services/authorization-service/src/domain/enums/index.ts b/backend/services/authorization-service/src/domain/enums/index.ts index 604e3787..772e73a2 100644 --- a/backend/services/authorization-service/src/domain/enums/index.ts +++ b/backend/services/authorization-service/src/domain/enums/index.ts @@ -51,12 +51,10 @@ export enum RegionType { // 系统账户类型 export enum SystemAccountType { - COST_ACCOUNT = 'COST_ACCOUNT', // 成本账户 (S0000000002) - OPERATION_ACCOUNT = 'OPERATION_ACCOUNT', // 运营账户 (S0000000003) - HQ_COMMUNITY = 'HQ_COMMUNITY', // 总部社区账户 (S0000000001) - RWAD_POOL_PENDING = 'RWAD_POOL_PENDING', // RWAD矿池待注入 (S0000000004) - SHARE_RIGHT_POOL = 'SHARE_RIGHT_POOL', // 分享权益池 (S0000000005) - FEE_COLLECTION = 'FEE_COLLECTION', // 手续费归集账户 (S0000000006) + COST_ACCOUNT = 'COST_ACCOUNT', // 成本账户 + OPERATION_ACCOUNT = 'OPERATION_ACCOUNT', // 运营账户 + HQ_COMMUNITY = 'HQ_COMMUNITY', // 总部社区账户 + RWAD_POOL_PENDING = 'RWAD_POOL_PENDING', // RWAD矿池待注入 SYSTEM_PROVINCE = 'SYSTEM_PROVINCE', // 系统省账户(无授权时) SYSTEM_CITY = 'SYSTEM_CITY', // 系统市账户(无授权时) } diff --git a/backend/services/identity-service/prisma/seed.ts b/backend/services/identity-service/prisma/seed.ts index b3f75607..abd0e214 100644 --- a/backend/services/identity-service/prisma/seed.ts +++ b/backend/services/identity-service/prisma/seed.ts @@ -5,7 +5,7 @@ const prisma = new PrismaClient(); // ============================================ // 系统账户定义 -// 系统账户使用特殊序列号格式: S + 00000 + 序号 (S0000000001 ~ S0000000006) +// 系统账户使用特殊序列号格式: S + 00000 + 序号 (S0000000001 ~ S0000000004) // ============================================ // ============================================ // 管理员账户定义 @@ -51,20 +51,6 @@ const SYSTEM_ACCOUNTS = [ }, { userId: BigInt(5), - accountSequence: 'S0000000005', // 分享权益池账户 - nickname: '分享权益池账户', - referralCode: 'SHARE005', - status: 'SYSTEM', - }, - { - userId: BigInt(6), - accountSequence: 'S0000000006', // 手续费归集账户 - nickname: '手续费归集账户', - referralCode: 'FEE00006', - status: 'SYSTEM', - }, - { - userId: BigInt(7), accountSequence: 'D25129999999', // 种子用户 (特殊序号,区别于真实用户) nickname: '种子用户', referralCode: 'SEED01', diff --git a/backend/services/reporting-service/src/application/services/system-account-report-application.service.ts b/backend/services/reporting-service/src/application/services/system-account-report-application.service.ts index 3a70f17c..cae1ea67 100644 --- a/backend/services/reporting-service/src/application/services/system-account-report-application.service.ts +++ b/backend/services/reporting-service/src/application/services/system-account-report-application.service.ts @@ -76,12 +76,11 @@ export interface SystemAccountReportResponse { * 固定账户类型映射 */ const FIXED_ACCOUNT_TYPES: Record = { - HQ_COMMUNITY: 'hqCommunity', COST_ACCOUNT: 'costAccount', OPERATION_ACCOUNT: 'operationAccount', + HQ_COMMUNITY: 'hqCommunity', RWAD_POOL_PENDING: 'rwadPoolPending', - SHARE_RIGHT_POOL: 'shareRightPool', - FEE_COLLECTION: 'feeCollection', + PLATFORM_FEE: 'platformFee', }; @Injectable()