revert: 撤销对 authorization/identity/reporting 服务的修改

这些服务不需要同步手续费账户的定义,wallet-service 独立处理。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-06 09:48:42 -08:00
parent 2be9a2d9c2
commit 36a83397a8
4 changed files with 8 additions and 27 deletions

View File

@ -84,12 +84,10 @@ export class SystemAccountApplicationService implements OnModuleInit {
*/
async initializeFixedAccounts(): Promise<void> {
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) {

View File

@ -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', // 系统市账户(无授权时)
}

View File

@ -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',

View File

@ -76,12 +76,11 @@ export interface SystemAccountReportResponse {
*
*/
const FIXED_ACCOUNT_TYPES: Record<string, string> = {
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()