forked from wangziqi/gongxue-base
fix: normalize operation log module names across controllers
This commit is contained in:
@@ -38,7 +38,7 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req.user?.id,
|
||||
username: req.user?.username,
|
||||
module: '账单',
|
||||
module: '账单管理',
|
||||
action: '生成账单',
|
||||
detail: `周期 ${dto.periodStart}~${dto.periodEnd}, 生成 ${result.count} 条`,
|
||||
ipAddress,
|
||||
@@ -81,8 +81,8 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req.user?.id,
|
||||
username: req.user?.username,
|
||||
module: '账单',
|
||||
action: `状态变更为${dto.status}`,
|
||||
module: '账单管理',
|
||||
action: '确认账单',
|
||||
targetId: +id,
|
||||
targetType: 'bill',
|
||||
ipAddress,
|
||||
@@ -99,8 +99,8 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req.user?.id,
|
||||
username: req.user?.username,
|
||||
module: '账单',
|
||||
action: `批量状态变更为${body.status}`,
|
||||
module: '账单管理',
|
||||
action: '确认账单',
|
||||
detail: `IDs: ${body.ids.join(',')}`,
|
||||
ipAddress,
|
||||
userAgent,
|
||||
@@ -116,7 +116,7 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req.user?.id,
|
||||
username: req.user?.username,
|
||||
module: '账单',
|
||||
module: '账单管理',
|
||||
action: '删除账单',
|
||||
targetId: +id,
|
||||
targetType: 'bill',
|
||||
@@ -134,7 +134,7 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req.user?.id,
|
||||
username: req.user?.username,
|
||||
module: '账单',
|
||||
module: '账单管理',
|
||||
action: '批量删除账单',
|
||||
detail: `IDs: ${body.ids.join(',')}`,
|
||||
ipAddress,
|
||||
@@ -157,8 +157,8 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req?.user?.id,
|
||||
username: req?.user?.username,
|
||||
module: '账单',
|
||||
action: '导出Excel',
|
||||
module: '账单管理',
|
||||
action: '导出账单',
|
||||
detail: `筛选: 周期${periodStart || '全部'}~${periodEnd || '全部'}, 状态${status || '全部'}`,
|
||||
ipAddress,
|
||||
userAgent,
|
||||
@@ -181,8 +181,8 @@ export class BillsController {
|
||||
await this.logService.log({
|
||||
userId: req?.user?.id,
|
||||
username: req?.user?.username,
|
||||
module: '账单',
|
||||
action: '导出PDF',
|
||||
module: '账单管理',
|
||||
action: '导出账单',
|
||||
targetId: +id,
|
||||
targetType: 'bill',
|
||||
ipAddress,
|
||||
|
||||
Reference in New Issue
Block a user