Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
Overview
Overview
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
shenjunjie
brandkbs2
Commits
b3910e54
Commit
b3910e54
authored
Jun 01, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增情报方案和关键词配置2
parent
aaf91644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/main/java/com/zhiwei/brandkbs2/controller/app/AppWarnController.java
+17
-0
No files found.
src/main/java/com/zhiwei/brandkbs2/controller/app/AppWarnController.java
View file @
b3910e54
...
@@ -126,6 +126,18 @@ public class AppWarnController extends BaseController {
...
@@ -126,6 +126,18 @@ public class AppWarnController extends BaseController {
}
}
}
}
@ApiOperation
(
"情报预警-推送任务删除"
)
@DeleteMapping
(
"/project"
)
@Auth
(
role
=
RoleEnum
.
ADMIN
)
public
ResponseResult
deletePushTaskId
(
@RequestParam
(
value
=
"taskId"
)
String
taskId
)
{
try
{
return
pushTaskId
(
taskId
,
null
,
HttpMethod
.
DELETE
);
}
catch
(
Exception
e
)
{
log
.
error
(
"情报预警-推送任务删除失败"
,
e
);
return
ResponseResult
.
failure
(
"情报预警-推送任务删除失败"
);
}
}
@ApiOperation
(
"情报预警-获取项目预警更新条件"
)
@ApiOperation
(
"情报预警-获取项目预警更新条件"
)
@GetMapping
(
"/warnCriteria"
)
@GetMapping
(
"/warnCriteria"
)
public
ResponseResult
getProjectWarnCriteria
(
@RequestParam
(
value
=
"type"
)
String
type
)
{
public
ResponseResult
getProjectWarnCriteria
(
@RequestParam
(
value
=
"type"
)
String
type
)
{
...
@@ -309,6 +321,11 @@ public class AppWarnController extends BaseController {
...
@@ -309,6 +321,11 @@ public class AppWarnController extends BaseController {
request
=
new
HttpEntity
<>(
headers
);
request
=
new
HttpEntity
<>(
headers
);
return
ResponseResult
.
success
(
restTemplate
.
exchange
(
warnProjectUrl
+
"?projectId={1}&projectName={2}"
,
httpMethod
,
request
,
JSONObject
.
class
,
projectId
,
projectName
).
getBody
().
getJSONArray
(
"data"
));
return
ResponseResult
.
success
(
restTemplate
.
exchange
(
warnProjectUrl
+
"?projectId={1}&projectName={2}"
,
httpMethod
,
request
,
JSONObject
.
class
,
projectId
,
projectName
).
getBody
().
getJSONArray
(
"data"
));
}
}
if
(
HttpMethod
.
DELETE
==
httpMethod
)
{
request
=
new
HttpEntity
<>(
headers
);
return
ResponseResult
.
success
(
restTemplate
.
exchange
(
warnProjectUrl
+
"/"
+
taskId
,
httpMethod
,
request
,
JSONObject
.
class
).
getBody
().
getJSONArray
(
"data"
));
}
JSONObject
paramMap
=
new
JSONObject
();
JSONObject
paramMap
=
new
JSONObject
();
paramMap
.
put
(
"planName"
,
planName
);
paramMap
.
put
(
"planName"
,
planName
);
if
(
HttpMethod
.
PUT
==
httpMethod
)
{
if
(
HttpMethod
.
PUT
==
httpMethod
)
{
...
...
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