Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
7c1476eb
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7c1476eb
编写于
7月 01, 2021
作者:
L
leejoker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "
📝
增加swagger"
This reverts commit
82477141
上级
82477141
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
9 deletion
+1
-9
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveController.java
...inkwechat/web/controller/wecom/WeSensitiveController.java
+1
-9
未找到文件。
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveController.java
浏览文件 @
7c1476eb
...
...
@@ -9,9 +9,8 @@ import com.linkwechat.common.enums.BusinessType;
import
com.linkwechat.wecom.domain.WeSensitive
;
import
com.linkwechat.wecom.domain.query.WeSensitiveHitQuery
;
import
com.linkwechat.wecom.service.IWeSensitiveService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
...
...
@@ -27,7 +26,6 @@ import java.util.stream.Collectors;
*/
@RestController
@RequestMapping
(
"/wecom/sensitive"
)
@Api
(
tags
=
"敏感词管理"
)
public
class
WeSensitiveController
extends
BaseController
{
@Autowired
private
IWeSensitiveService
weSensitiveService
;
...
...
@@ -37,7 +35,6 @@ public class WeSensitiveController extends BaseController {
*/
// @PreAuthorize("@ss.hasPermi('wecom:sensitive:list')")
@GetMapping
(
"/list"
)
@ApiOperation
(
"查询敏感词列表"
)
public
TableDataInfo
list
(
WeSensitive
weSensitive
)
{
startPage
();
List
<
WeSensitive
>
list
=
weSensitiveService
.
selectWeSensitiveList
(
weSensitive
);
...
...
@@ -49,7 +46,6 @@ public class WeSensitiveController extends BaseController {
*/
// @PreAuthorize("@ss.hasPermi('wecom:sensitive:query')")
@GetMapping
(
value
=
"/{id}"
)
@ApiOperation
(
"查询敏感词详情"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weSensitiveService
.
selectWeSensitiveById
(
id
));
}
...
...
@@ -60,7 +56,6 @@ public class WeSensitiveController extends BaseController {
// @PreAuthorize("@ss.hasPermi('wecom:sensitive:add')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@ApiOperation
(
"添加敏感词"
)
public
AjaxResult
add
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
return
toAjax
(
weSensitiveService
.
insertWeSensitive
(
weSensitive
));
}
...
...
@@ -71,7 +66,6 @@ public class WeSensitiveController extends BaseController {
// @PreAuthorize("@ss.hasPermi('wecom:sensitive:edit')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@ApiOperation
(
"修改敏感词"
)
public
AjaxResult
edit
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
Long
id
=
weSensitive
.
getId
();
WeSensitive
originData
=
weSensitiveService
.
selectWeSensitiveById
(
id
);
...
...
@@ -87,7 +81,6 @@ public class WeSensitiveController extends BaseController {
// @PreAuthorize("@ss.hasPermi('wecom:sensitive:remove')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@ApiOperation
(
"删除敏感词"
)
public
AjaxResult
remove
(
@PathVariable
(
"ids"
)
String
ids
)
{
String
[]
id
=
ids
.
split
(
","
);
Long
[]
idArray
=
new
Long
[
id
.
length
];
...
...
@@ -100,7 +93,6 @@ public class WeSensitiveController extends BaseController {
*/
// @PreAuthorize("@ss.hasPermi('wecom:sensitivehit:list')")
@GetMapping
(
"/hit/list"
)
@ApiOperation
(
"敏感词命中查询"
)
public
TableDataInfo
hitList
(
WeSensitiveHitQuery
query
)
{
return
getDataTable
(
weSensitiveService
.
getHitSensitiveList
(
query
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录