Commit 30949d32 authored by ml's avatar ml

修改

parent d2c4f160
...@@ -3,6 +3,7 @@ import { i18nInfo, i18nInfoLog, ormDB } from "@madex/ex-ts-dao"; ...@@ -3,6 +3,7 @@ import { i18nInfo, i18nInfoLog, ormDB } from "@madex/ex-ts-dao";
import * as i18nLogService from "../service/i18nlog.service"; import * as i18nLogService from "../service/i18nlog.service";
import { ErrorCode } from "../../../constant/errorCode"; import { ErrorCode } from "../../../constant/errorCode";
import { addOptLog } from "./userOptLog.service"; import { addOptLog } from "./userOptLog.service";
import { sendRobotMessage, ROBOT_KEYS } from "../../../utils/robotUtils";
let { logger } = require('@madex/ex-js-public'); let { logger } = require('@madex/ex-js-public');
...@@ -85,7 +86,7 @@ export const add = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => { ...@@ -85,7 +86,7 @@ export const add = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => {
await i18nInfo.prototype.create(infoVO); await i18nInfo.prototype.create(infoVO);
//管理后台操作日志 //管理后台操作日志
addOptLog(currentUserId, 0, '新增国际化信息', ip, JSON.stringify(infoVO), '国际化管理'); addOptLog(currentUserId, 0, '新增国际化信息', ip, JSON.stringify(infoVO), '国际化管理');
sendRobotMessage(ROBOT_KEYS.COMMON_KEY, `新增国际化信息:${JSON.stringify(infoVO)}`);
return 'ok'; return 'ok';
}; };
...@@ -133,6 +134,7 @@ export const update = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => ...@@ -133,6 +134,7 @@ export const update = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) =>
await transaction.commit(); await transaction.commit();
//管理后台操作日志 //管理后台操作日志
addOptLog(currentUserId, 0, '修改国际化信息', ip, JSON.stringify(infoVO), '国际化管理'); addOptLog(currentUserId, 0, '修改国际化信息', ip, JSON.stringify(infoVO), '国际化管理');
sendRobotMessage(ROBOT_KEYS.COMMON_KEY, `修改国际化信息:id:${infoVO.id},修改为:${JSON.stringify(infoVO)}`);
return 'ok'; return 'ok';
} }
...@@ -175,6 +177,8 @@ export const del = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => { ...@@ -175,6 +177,8 @@ export const del = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => {
await transaction.commit(); await transaction.commit();
//管理后台操作日志 //管理后台操作日志
addOptLog(currentUserId, 0, '删除国际化信息', ip, JSON.stringify(infoVO), '国际化管理'); addOptLog(currentUserId, 0, '删除国际化信息', ip, JSON.stringify(infoVO), '国际化管理');
sendRobotMessage(ROBOT_KEYS.COMMON_KEY, `删除国际化信息:id:${infoVO.id}`);
return 'ok'; return 'ok';
} }
catch (e) { catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment