Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wmvm
ts-api-demo
Commits
30949d32
Commit
30949d32
authored
Nov 12, 2024
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d2c4f160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
i18n.service.ts
src/functional/mvc/service/i18n.service.ts
+5
-1
No files found.
src/functional/mvc/service/i18n.service.ts
View file @
30949d32
...
...
@@ -3,6 +3,7 @@ import { i18nInfo, i18nInfoLog, ormDB } from "@madex/ex-ts-dao";
import
*
as
i18nLogService
from
"../service/i18nlog.service"
;
import
{
ErrorCode
}
from
"../../../constant/errorCode"
;
import
{
addOptLog
}
from
"./userOptLog.service"
;
import
{
sendRobotMessage
,
ROBOT_KEYS
}
from
"../../../utils/robotUtils"
;
let
{
logger
}
=
require
(
'@madex/ex-js-public'
);
...
...
@@ -85,7 +86,7 @@ export const add = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => {
await
i18nInfo
.
prototype
.
create
(
infoVO
);
//管理后台操作日志
addOptLog
(
currentUserId
,
0
,
'新增国际化信息'
,
ip
,
JSON
.
stringify
(
infoVO
),
'国际化管理'
);
sendRobotMessage
(
ROBOT_KEYS
.
COMMON_KEY
,
`新增国际化信息:
${
JSON
.
stringify
(
infoVO
)}
`
);
return
'ok'
;
};
...
...
@@ -133,6 +134,7 @@ export const update = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) =>
await
transaction
.
commit
();
//管理后台操作日志
addOptLog
(
currentUserId
,
0
,
'修改国际化信息'
,
ip
,
JSON
.
stringify
(
infoVO
),
'国际化管理'
);
sendRobotMessage
(
ROBOT_KEYS
.
COMMON_KEY
,
`修改国际化信息:id:
${
infoVO
.
id
}
,修改为:
${
JSON
.
stringify
(
infoVO
)}
`
);
return
'ok'
;
}
...
...
@@ -175,6 +177,8 @@ export const del = async (infoVO: I18nInfoVO, currentUserId: any, ip: any) => {
await
transaction
.
commit
();
//管理后台操作日志
addOptLog
(
currentUserId
,
0
,
'删除国际化信息'
,
ip
,
JSON
.
stringify
(
infoVO
),
'国际化管理'
);
sendRobotMessage
(
ROBOT_KEYS
.
COMMON_KEY
,
`删除国际化信息:id:
${
infoVO
.
id
}
`
);
return
'ok'
;
}
catch
(
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment