Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68ab9cca
authored
Mar 25, 2021
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
为配合系统UI升级,暂且去除接口权限
1 parent
bf52630a
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
167 additions
and
167 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatItemController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityGroupSopController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityKeywordGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityNewGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityPresTagGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeConversationArchiveController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCorpAccountController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerMessagePushController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeDepartmentController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeEmpleCodeController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeActualController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMaterialController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMessagePushController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMsgTlpController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WePageDateContraller.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WePosterController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveActController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTagGroupController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionRecordController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionRewardController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionStaffController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeUserController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatItemController.java
View file @
68ab9cc
...
@@ -30,8 +30,8 @@ public class WeChatItemController extends BaseController {
...
@@ -30,8 +30,8 @@ public class WeChatItemController extends BaseController {
/**
/**
* 侧边栏抓取素材
* 侧边栏抓取素材
*/
*/
@PreAuthorize
(
"@ss.hasPermi('chat:item:add')"
)
//
@PreAuthorize("@ss.hasPermi('chat:item:add')")
//
@Log(title = "侧边栏抓取素材", businessType = BusinessType.INSERT)
@Log
(
title
=
"侧边栏抓取素材"
,
businessType
=
BusinessType
.
INSERT
)
@PutMapping
@PutMapping
public
AjaxResult
add
(
@RequestBody
WeChatItemDto
chatItemDto
)
{
public
AjaxResult
add
(
@RequestBody
WeChatItemDto
chatItemDto
)
{
return
toAjax
(
weChatItemService
.
checkItems
(
chatItemDto
));
return
toAjax
(
weChatItemService
.
checkItems
(
chatItemDto
));
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
View file @
68ab9cc
...
@@ -29,7 +29,7 @@ public class WeChatSideController extends BaseController {
...
@@ -29,7 +29,7 @@ public class WeChatSideController extends BaseController {
/**
/**
* 群发侧边栏列表
* 群发侧边栏列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('chat:side:list')"
)
//
@PreAuthorize("@ss.hasPermi('chat:side:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
()
{
public
TableDataInfo
list
()
{
startPage
();
startPage
();
...
@@ -40,7 +40,7 @@ public class WeChatSideController extends BaseController {
...
@@ -40,7 +40,7 @@ public class WeChatSideController extends BaseController {
/**
/**
* 更新侧边栏信息
* 更新侧边栏信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('chat:side:edit')"
)
//
@PreAuthorize("@ss.hasPermi('chat:side:edit')")
@Log
(
title
=
"更新侧边栏信息"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"更新侧边栏信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeChatSide
weChatSide
)
{
public
AjaxResult
edit
(
@RequestBody
WeChatSide
weChatSide
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityGroupSopController.java
View file @
68ab9cc
...
@@ -40,7 +40,7 @@ public class WeCommunityGroupSopController extends BaseController {
...
@@ -40,7 +40,7 @@ public class WeCommunityGroupSopController extends BaseController {
* @return 群sop规则列表
* @return 群sop规则列表
*/
*/
@ApiOperation
(
value
=
"通过过滤条件获取群sop列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"通过过滤条件获取群sop列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityGroupSop:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityGroupSop:list')")
@GetMapping
(
path
=
"/list"
)
@GetMapping
(
path
=
"/list"
)
public
TableDataInfo
<
List
<
WeGroupSopVo
>>
getSopList
(
public
TableDataInfo
<
List
<
WeGroupSopVo
>>
getSopList
(
@RequestParam
(
value
=
"ruleName"
,
required
=
false
)
String
ruleName
,
@RequestParam
(
value
=
"ruleName"
,
required
=
false
)
String
ruleName
,
...
@@ -61,7 +61,7 @@ public class WeCommunityGroupSopController extends BaseController {
...
@@ -61,7 +61,7 @@ public class WeCommunityGroupSopController extends BaseController {
* @return 结果
* @return 结果
*/
*/
@ApiOperation
(
value
=
"新增SOP规则"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增SOP规则"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityGroupSop:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityGroupSop:add')")
@PostMapping
(
path
=
"/"
)
@PostMapping
(
path
=
"/"
)
public
AjaxResult
addGroupSop
(
@Validated
@RequestBody
WeGroupSopDto
groupSopDto
)
{
public
AjaxResult
addGroupSop
(
@Validated
@RequestBody
WeGroupSopDto
groupSopDto
)
{
if
(!
groupSopService
.
isRuleNameUnique
(
groupSopDto
.
getRuleName
()))
{
if
(!
groupSopService
.
isRuleNameUnique
(
groupSopDto
.
getRuleName
()))
{
...
@@ -86,7 +86,7 @@ public class WeCommunityGroupSopController extends BaseController {
...
@@ -86,7 +86,7 @@ public class WeCommunityGroupSopController extends BaseController {
* @return 结果
* @return 结果
*/
*/
@ApiOperation
(
value
=
"通过规则id获取sop规则详情"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"通过规则id获取sop规则详情"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityGroupSop:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityGroupSop:query')")
@GetMapping
(
path
=
"/{ruleId}"
)
@GetMapping
(
path
=
"/{ruleId}"
)
public
AjaxResult
getGroupSop
(
@PathVariable
(
"ruleId"
)
Long
ruleId
)
{
public
AjaxResult
getGroupSop
(
@PathVariable
(
"ruleId"
)
Long
ruleId
)
{
WeGroupSopVo
groupSopVo
=
groupSopService
.
getGroupSopById
(
ruleId
);
WeGroupSopVo
groupSopVo
=
groupSopService
.
getGroupSopById
(
ruleId
);
...
@@ -104,7 +104,7 @@ public class WeCommunityGroupSopController extends BaseController {
...
@@ -104,7 +104,7 @@ public class WeCommunityGroupSopController extends BaseController {
* @return 结果
* @return 结果
*/
*/
@ApiOperation
(
value
=
"更改SOP规则"
,
httpMethod
=
"PUT"
)
@ApiOperation
(
value
=
"更改SOP规则"
,
httpMethod
=
"PUT"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityGroupSop:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityGroupSop:edit')")
@PutMapping
(
path
=
"/{ruleId}"
)
@PutMapping
(
path
=
"/{ruleId}"
)
public
AjaxResult
updateGroupSop
(
@PathVariable
Long
ruleId
,
@Validated
@RequestBody
WeGroupSopDto
groupSopDto
)
{
public
AjaxResult
updateGroupSop
(
@PathVariable
Long
ruleId
,
@Validated
@RequestBody
WeGroupSopDto
groupSopDto
)
{
// 校验是否存在
// 校验是否存在
...
@@ -136,7 +136,7 @@ public class WeCommunityGroupSopController extends BaseController {
...
@@ -136,7 +136,7 @@ public class WeCommunityGroupSopController extends BaseController {
* @return 结果
* @return 结果
*/
*/
@ApiOperation
(
value
=
"根据id列表批量删除群sop规则"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"根据id列表批量删除群sop规则"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityGroupSop:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityGroupSop:remove')")
@DeleteMapping
(
path
=
"/{ids}"
)
@DeleteMapping
(
path
=
"/{ids}"
)
public
AjaxResult
batchDeleteSopRule
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
public
AjaxResult
batchDeleteSopRule
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
return
toAjax
(
groupSopService
.
batchRemoveGroupSopByIds
(
ids
));
return
toAjax
(
groupSopService
.
batchRemoveGroupSopByIds
(
ids
));
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityKeywordGroupController.java
View file @
68ab9cc
...
@@ -41,7 +41,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
...
@@ -41,7 +41,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
* @param endTime 结束时间
* @param endTime 结束时间
* @return 列表数据
* @return 列表数据
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communityKeyword:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityKeyword:list')")
@GetMapping
(
path
=
"/list"
)
@GetMapping
(
path
=
"/list"
)
public
TableDataInfo
<
List
<
WeKeywordGroupTaskVo
>>
list
(
public
TableDataInfo
<
List
<
WeKeywordGroupTaskVo
>>
list
(
@RequestParam
(
value
=
"taskName"
,
required
=
false
)
String
taskName
,
@RequestParam
(
value
=
"taskName"
,
required
=
false
)
String
taskName
,
...
@@ -63,7 +63,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
...
@@ -63,7 +63,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
* @param taskId 任务id
* @param taskId 任务id
* @return 任务详情
* @return 任务详情
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communityKeyword:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityKeyword:query')")
@GetMapping
(
path
=
"/{taskId}"
)
@GetMapping
(
path
=
"/{taskId}"
)
public
AjaxResult
getTask
(
@PathVariable
(
"taskId"
)
Long
taskId
)
{
public
AjaxResult
getTask
(
@PathVariable
(
"taskId"
)
Long
taskId
)
{
WeKeywordGroupTaskVo
keywordsGroupVo
=
keywordToGroupService
.
getTaskById
(
taskId
);
WeKeywordGroupTaskVo
keywordsGroupVo
=
keywordToGroupService
.
getTaskById
(
taskId
);
...
@@ -78,7 +78,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
...
@@ -78,7 +78,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
* @param keywordToGroupDto 添加任务所需的数据
* @param keywordToGroupDto 添加任务所需的数据
* @return 结果
* @return 结果
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communityKeyword:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityKeyword:add')")
@PostMapping
(
path
=
"/"
)
@PostMapping
(
path
=
"/"
)
public
AjaxResult
addTask
(
@RequestBody
@Validated
WeKeywordGroupTaskDto
keywordToGroupDto
)
{
public
AjaxResult
addTask
(
@RequestBody
@Validated
WeKeywordGroupTaskDto
keywordToGroupDto
)
{
// 群活码必须存在
// 群活码必须存在
...
@@ -103,7 +103,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
...
@@ -103,7 +103,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
* @param keywordToGroupDto 更新所需数据
* @param keywordToGroupDto 更新所需数据
* @return 结果
* @return 结果
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communityKeyword:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityKeyword:edit')")
@PutMapping
(
path
=
"/{taskId}"
)
@PutMapping
(
path
=
"/{taskId}"
)
public
AjaxResult
updateTask
(
@PathVariable
(
"taskId"
)
Long
taskId
,
@RequestBody
@Validated
WeKeywordGroupTaskDto
keywordToGroupDto
)
{
public
AjaxResult
updateTask
(
@PathVariable
(
"taskId"
)
Long
taskId
,
@RequestBody
@Validated
WeKeywordGroupTaskDto
keywordToGroupDto
)
{
// 群活码必须存在
// 群活码必须存在
...
@@ -130,7 +130,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
...
@@ -130,7 +130,7 @@ public class WeCommunityKeywordGroupController extends BaseController {
* @param ids id列表
* @param ids id列表
* @return 结果
* @return 结果
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communityKeyword:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityKeyword:remove')")
@DeleteMapping
(
path
=
"/{ids}"
)
@DeleteMapping
(
path
=
"/{ids}"
)
public
AjaxResult
batchDeleteTask
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
public
AjaxResult
batchDeleteTask
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
return
toAjax
(
keywordToGroupService
.
batchRemoveTaskByIds
(
ids
));
return
toAjax
(
keywordToGroupService
.
batchRemoveTaskByIds
(
ids
));
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityNewGroupController.java
View file @
68ab9cc
...
@@ -53,7 +53,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -53,7 +53,7 @@ public class WeCommunityNewGroupController extends BaseController {
* 查询新客自动拉群列表
* 查询新客自动拉群列表
*/
*/
@ApiOperation
(
value
=
"查询新客自动拉群列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询新客自动拉群列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
<
List
<
WeCommunityNewGroupVo
>>
list
(
@RequestParam
(
value
=
"empleCodeName"
,
required
=
false
)
String
empleCodeName
public
TableDataInfo
<
List
<
WeCommunityNewGroupVo
>>
list
(
@RequestParam
(
value
=
"empleCodeName"
,
required
=
false
)
String
empleCodeName
,
@RequestParam
(
value
=
"createBy"
,
required
=
false
)
String
createBy
,
@RequestParam
(
value
=
"createBy"
,
required
=
false
)
String
createBy
...
@@ -68,7 +68,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -68,7 +68,7 @@ public class WeCommunityNewGroupController extends BaseController {
* 获取新客自动拉群详细信息
* 获取新客自动拉群详细信息
*/
*/
@ApiOperation
(
value
=
"获取新客自动拉群详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取新客自动拉群详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:query')")
@GetMapping
(
value
=
"/{newGroupId}"
)
@GetMapping
(
value
=
"/{newGroupId}"
)
public
AjaxResult
<
WeCommunityNewGroupVo
>
getInfo
(
@PathVariable
(
"newGroupId"
)
@ApiParam
(
"主键ID"
)
String
newGroupId
)
{
public
AjaxResult
<
WeCommunityNewGroupVo
>
getInfo
(
@PathVariable
(
"newGroupId"
)
@ApiParam
(
"主键ID"
)
String
newGroupId
)
{
return
AjaxResult
.
success
(
weCommunityNewGroupService
.
selectWeCommunityNewGroupById
(
new
Long
(
newGroupId
)));
return
AjaxResult
.
success
(
weCommunityNewGroupService
.
selectWeCommunityNewGroupById
(
new
Long
(
newGroupId
)));
...
@@ -78,7 +78,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -78,7 +78,7 @@ public class WeCommunityNewGroupController extends BaseController {
* 修改新客自动拉群
* 修改新客自动拉群
*/
*/
@ApiOperation
(
value
=
"修改新客自动拉群"
,
httpMethod
=
"PUT"
)
@ApiOperation
(
value
=
"修改新客自动拉群"
,
httpMethod
=
"PUT"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:edit')")
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/update"
)
@PutMapping
(
"/update"
)
public
AjaxResult
edit
(
@RequestBody
@Validated
WeCommunityNewGroupDto
communityNewGroupDto
)
{
public
AjaxResult
edit
(
@RequestBody
@Validated
WeCommunityNewGroupDto
communityNewGroupDto
)
{
...
@@ -91,7 +91,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -91,7 +91,7 @@ public class WeCommunityNewGroupController extends BaseController {
* 删除新客自动拉群
* 删除新客自动拉群
*/
*/
@ApiOperation
(
value
=
"删除新客自动拉群"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"删除新客自动拉群"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:remove')")
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
String
ids
)
{
public
AjaxResult
remove
(
@PathVariable
String
ids
)
{
...
@@ -104,7 +104,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -104,7 +104,7 @@ public class WeCommunityNewGroupController extends BaseController {
* 新增新客自动拉群
* 新增新客自动拉群
*/
*/
@ApiOperation
(
value
=
"新增新客自动拉群"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增新客自动拉群"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:communityNewGroup:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communityNewGroup:add')")
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"新客自动拉群"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
@Validated
WeCommunityNewGroupDto
communityNewGroupDto
)
{
public
AjaxResult
add
(
@RequestBody
@Validated
WeCommunityNewGroupDto
communityNewGroupDto
)
{
...
@@ -132,7 +132,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -132,7 +132,7 @@ public class WeCommunityNewGroupController extends BaseController {
* @throws Exception
* @throws Exception
*/
*/
@ApiOperation
(
value
=
"员工活码批量下载"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"员工活码批量下载"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:code:downloadBatch')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:downloadBatch')")
@Log
(
title
=
"员工活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"员工活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/downloadBatch"
)
@GetMapping
(
"/downloadBatch"
)
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
@@ -174,7 +174,7 @@ public class WeCommunityNewGroupController extends BaseController {
...
@@ -174,7 +174,7 @@ public class WeCommunityNewGroupController extends BaseController {
}
}
@ApiOperation
(
value
=
"员工活码下载"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"员工活码下载"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:code:download')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:download')")
@Log
(
title
=
"员工活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"员工活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/download"
)
@GetMapping
(
"/download"
)
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCommunityPresTagGroupController.java
View file @
68ab9cc
...
@@ -33,7 +33,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -33,7 +33,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 获取老客标签建群列表数据
* 获取老客标签建群列表数据
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:list')")
@GetMapping
(
path
=
"/list"
)
@GetMapping
(
path
=
"/list"
)
public
TableDataInfo
<
List
<
WePresTagGroupTaskVo
>>
getList
(
public
TableDataInfo
<
List
<
WePresTagGroupTaskVo
>>
getList
(
@RequestParam
(
value
=
"taskName"
,
required
=
false
)
String
taskName
,
@RequestParam
(
value
=
"taskName"
,
required
=
false
)
String
taskName
,
...
@@ -49,7 +49,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -49,7 +49,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 新建老客标签建群任务
* 新建老客标签建群任务
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:add')")
@PostMapping
@PostMapping
public
AjaxResult
addTask
(
@RequestBody
@Validated
WePresTagGroupTaskDto
wePresTagGroupTaskDto
)
{
public
AjaxResult
addTask
(
@RequestBody
@Validated
WePresTagGroupTaskDto
wePresTagGroupTaskDto
)
{
// 检测任务名是否可用
// 检测任务名是否可用
...
@@ -65,7 +65,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -65,7 +65,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 根据获取任务详细信息
* 根据获取任务详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:query')")
@GetMapping
(
path
=
"/{id}"
)
@GetMapping
(
path
=
"/{id}"
)
public
AjaxResult
getTask
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getTask
(
@PathVariable
(
"id"
)
Long
id
)
{
WePresTagGroupTaskVo
taskVo
=
taskService
.
getTaskById
(
id
);
WePresTagGroupTaskVo
taskVo
=
taskService
.
getTaskById
(
id
);
...
@@ -82,7 +82,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -82,7 +82,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 更新任务信息
* 更新任务信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:edit')")
@PutMapping
(
path
=
"/{id}"
)
@PutMapping
(
path
=
"/{id}"
)
public
AjaxResult
updateTask
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
@Validated
WePresTagGroupTaskDto
wePresTagGroupTaskDto
)
{
public
AjaxResult
updateTask
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
@Validated
WePresTagGroupTaskDto
wePresTagGroupTaskDto
)
{
// 检测任务名是否可用
// 检测任务名是否可用
...
@@ -102,7 +102,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -102,7 +102,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 批量删除老客标签建群任务
* 批量删除老客标签建群任务
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:remove')")
@DeleteMapping
(
path
=
"/{ids}"
)
@DeleteMapping
(
path
=
"/{ids}"
)
public
AjaxResult
batchRemoveTask
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
public
AjaxResult
batchRemoveTask
(
@PathVariable
(
"ids"
)
Long
[]
ids
)
{
return
toAjax
(
taskService
.
batchRemoveTaskByIds
(
ids
));
return
toAjax
(
taskService
.
batchRemoveTaskByIds
(
ids
));
...
@@ -111,7 +111,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
...
@@ -111,7 +111,7 @@ public class WeCommunityPresTagGroupController extends BaseController {
/**
/**
* 根据老客标签建群id及过滤条件,获取其统计信息
* 根据老客标签建群id及过滤条件,获取其统计信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:communitytagGroup:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:communitytagGroup:query')")
@GetMapping
(
path
=
"/stat/{id}"
)
@GetMapping
(
path
=
"/stat/{id}"
)
public
TableDataInfo
<
List
<
WePresTagGroupTaskStatVo
>>
getStatInfo
(
public
TableDataInfo
<
List
<
WePresTagGroupTaskStatVo
>>
getStatInfo
(
@PathVariable
(
"id"
)
Long
id
,
@PathVariable
(
"id"
)
Long
id
,
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeConversationArchiveController.java
View file @
68ab9cc
...
@@ -31,7 +31,7 @@ public class WeConversationArchiveController extends BaseController {
...
@@ -31,7 +31,7 @@ public class WeConversationArchiveController extends BaseController {
* @param /reveiceId 接收人id
* @param /reveiceId 接收人id
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('conversationArchive:chatContact:list')"
)
//
@PreAuthorize("@ss.hasPermi('conversationArchive:chatContact:list')")
@GetMapping
(
"/getChatContactList"
)
@GetMapping
(
"/getChatContactList"
)
public
TableDataInfo
getChatContactList
(
ConversationArchiveQuery
query
)
{
public
TableDataInfo
getChatContactList
(
ConversationArchiveQuery
query
)
{
return
getDataTable
(
weConversationArchiveService
.
getChatContactList
(
query
));
return
getDataTable
(
weConversationArchiveService
.
getChatContactList
(
query
));
...
@@ -46,7 +46,7 @@ public class WeConversationArchiveController extends BaseController {
...
@@ -46,7 +46,7 @@ public class WeConversationArchiveController extends BaseController {
* @param /room 接收人id
* @param /room 接收人id
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('conversationArchive:chatRoomContact:list')"
)
//
@PreAuthorize("@ss.hasPermi('conversationArchive:chatRoomContact:list')")
@GetMapping
(
"/getChatRoomContactList"
)
@GetMapping
(
"/getChatRoomContactList"
)
public
TableDataInfo
getChatRoomContactList
(
ConversationArchiveQuery
query
)
{
public
TableDataInfo
getChatRoomContactList
(
ConversationArchiveQuery
query
)
{
return
getDataTable
(
weConversationArchiveService
.
getChatRoomContactList
(
query
));
return
getDataTable
(
weConversationArchiveService
.
getChatRoomContactList
(
query
));
...
@@ -59,7 +59,7 @@ public class WeConversationArchiveController extends BaseController {
...
@@ -59,7 +59,7 @@ public class WeConversationArchiveController extends BaseController {
* @param query 入参
* @param query 入参
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('conversationArchive:chatAllContact:list')"
)
//
@PreAuthorize("@ss.hasPermi('conversationArchive:chatAllContact:list')")
@GetMapping
(
"/getChatAllList"
)
@GetMapping
(
"/getChatAllList"
)
public
TableDataInfo
getChatAllList
(
ConversationArchiveQuery
query
)
{
public
TableDataInfo
getChatAllList
(
ConversationArchiveQuery
query
)
{
return
getDataTable
(
weConversationArchiveService
.
getChatAllList
(
query
));
return
getDataTable
(
weConversationArchiveService
.
getChatAllList
(
query
));
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCorpAccountController.java
View file @
68ab9cc
...
@@ -31,7 +31,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -31,7 +31,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 查询企业id相关配置列表
* 查询企业id相关配置列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:list')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeCorpAccount
weCorpAccount
)
public
TableDataInfo
list
(
WeCorpAccount
weCorpAccount
)
{
{
...
@@ -44,7 +44,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -44,7 +44,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 获取企业id相关配置详细信息
* 获取企业id相关配置详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:query')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
{
...
@@ -54,7 +54,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -54,7 +54,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 新增企业id相关配置
* 新增企业id相关配置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:add')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:add')")
@Log
(
title
=
"新增企业id相关配置"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"新增企业id相关配置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
WeCorpAccount
weCorpAccount
)
public
AjaxResult
add
(
@Validated
@RequestBody
WeCorpAccount
weCorpAccount
)
...
@@ -65,7 +65,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -65,7 +65,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 修改企业id相关配置
* 修改企业id相关配置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:edit')")
@Log
(
title
=
"修改企业id相关配置"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"修改企业id相关配置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
WeCorpAccount
weCorpAccount
)
public
AjaxResult
edit
(
@Validated
@RequestBody
WeCorpAccount
weCorpAccount
)
...
@@ -76,7 +76,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -76,7 +76,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 启用有效企业微信账号
* 启用有效企业微信账号
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:startVailWeCorpAccount')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:startVailWeCorpAccount')")
@Log
(
title
=
"启用有效企业微信账号"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"启用有效企业微信账号"
,
businessType
=
BusinessType
.
DELETE
)
@PutMapping
(
"/startVailWeCorpAccount/{corpId}"
)
@PutMapping
(
"/startVailWeCorpAccount/{corpId}"
)
public
AjaxResult
startWeCorpAccount
(
@PathVariable
String
corpId
)
public
AjaxResult
startWeCorpAccount
(
@PathVariable
String
corpId
)
...
@@ -87,7 +87,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -87,7 +87,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 客户流失通知开关
* 客户流失通知开关
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:startCustomerChurnNoticeSwitch')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:startCustomerChurnNoticeSwitch')")
@Log
(
title
=
"客户流失通知开关"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"客户流失通知开关"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/startCustomerChurnNoticeSwitch/{status}"
)
@PutMapping
(
"/startCustomerChurnNoticeSwitch/{status}"
)
public
AjaxResult
startCustomerChurnNoticeSwitch
(
@PathVariable
String
status
)
public
AjaxResult
startCustomerChurnNoticeSwitch
(
@PathVariable
String
status
)
...
@@ -98,7 +98,7 @@ public class WeCorpAccountController extends BaseController
...
@@ -98,7 +98,7 @@ public class WeCorpAccountController extends BaseController
/**
/**
* 客户流失通知开关查询
* 客户流失通知开关查询
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:corp:getCustomerChurnNoticeSwitch')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:corp:getCustomerChurnNoticeSwitch')")
@Log
(
title
=
"客户流失通知开关查询"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"客户流失通知开关查询"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/getCustomerChurnNoticeSwitch"
)
@GetMapping
(
"/getCustomerChurnNoticeSwitch"
)
public
AjaxResult
getCustomerChurnNoticeSwitch
()
public
AjaxResult
getCustomerChurnNoticeSwitch
()
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerController.java
View file @
68ab9cc
...
@@ -38,7 +38,7 @@ public class WeCustomerController extends BaseController
...
@@ -38,7 +38,7 @@ public class WeCustomerController extends BaseController
/**
/**
* 查询企业微信客户列表
* 查询企业微信客户列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:customer:list')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:customer:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeCustomer
weCustomer
)
public
TableDataInfo
list
(
WeCustomer
weCustomer
)
{
{
...
@@ -53,7 +53,7 @@ public class WeCustomerController extends BaseController
...
@@ -53,7 +53,7 @@ public class WeCustomerController extends BaseController
* 根据员工ID获取客户
* 根据员工ID获取客户
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:customer:list')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:customer:list')")
@GetMapping
(
"/getCustomersByUserId/{externalUserid}"
)
@GetMapping
(
"/getCustomersByUserId/{externalUserid}"
)
public
AjaxResult
getCustomersByUserId
(
@PathVariable
String
externalUserid
){
public
AjaxResult
getCustomersByUserId
(
@PathVariable
String
externalUserid
){
...
@@ -64,7 +64,7 @@ public class WeCustomerController extends BaseController
...
@@ -64,7 +64,7 @@ public class WeCustomerController extends BaseController
/**
/**
* 导出企业微信客户列表
* 导出企业微信客户列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:customer:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:customer:export')")
@Log
(
title
=
"企业微信客户"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"企业微信客户"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeCustomer
weCustomer
)
public
AjaxResult
export
(
WeCustomer
weCustomer
)
...
@@ -77,7 +77,7 @@ public class WeCustomerController extends BaseController
...
@@ -77,7 +77,7 @@ public class WeCustomerController extends BaseController
/**
/**
* 获取企业微信客户详细信息
* 获取企业微信客户详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:customer:view')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:customer:view')")
@GetMapping
(
value
=
"/{externalUserId}"
)
@GetMapping
(
value
=
"/{externalUserId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"externalUserId"
)
String
externalUserId
)
public
AjaxResult
getInfo
(
@PathVariable
(
"externalUserId"
)
String
externalUserId
)
{
{
...
@@ -89,7 +89,7 @@ public class WeCustomerController extends BaseController
...
@@ -89,7 +89,7 @@ public class WeCustomerController extends BaseController
/**
/**
* 修改企业微信客户
* 修改企业微信客户
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:customer:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:customer:edit')")
@Log
(
title
=
"企业微信客户"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"企业微信客户"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
WeCustomer
weCustomer
)
public
AjaxResult
edit
(
@Validated
@RequestBody
WeCustomer
weCustomer
)
...
@@ -103,7 +103,7 @@ public class WeCustomerController extends BaseController
...
@@ -103,7 +103,7 @@ public class WeCustomerController extends BaseController
* 客户同步接口
* 客户同步接口
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:customer:sync')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:customer:sync')")
@Log
(
title
=
"企业微信客户同步接口"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"企业微信客户同步接口"
,
businessType
=
BusinessType
.
DELETE
)
@GetMapping
(
"/synchWeCustomer"
)
@GetMapping
(
"/synchWeCustomer"
)
public
AjaxResult
synchWeCustomer
()
{
public
AjaxResult
synchWeCustomer
()
{
...
@@ -125,7 +125,7 @@ public class WeCustomerController extends BaseController
...
@@ -125,7 +125,7 @@ public class WeCustomerController extends BaseController
* @param weMakeCustomerTag
* @param weMakeCustomerTag
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage/customer:makeTag')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage/customer:makeTag')")
@Log
(
title
=
"客户打标签"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"客户打标签"
,
businessType
=
BusinessType
.
UPDATE
)
@PostMapping
(
"/makeLabel"
)
@PostMapping
(
"/makeLabel"
)
public
AjaxResult
makeLabel
(
@RequestBody
WeMakeCustomerTag
weMakeCustomerTag
){
public
AjaxResult
makeLabel
(
@RequestBody
WeMakeCustomerTag
weMakeCustomerTag
){
...
@@ -140,7 +140,7 @@ public class WeCustomerController extends BaseController
...
@@ -140,7 +140,7 @@ public class WeCustomerController extends BaseController
* 移除客户标签
* 移除客户标签
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:customer:removeTag')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:customer:removeTag')")
@Log
(
title
=
"移除客户标签"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"移除客户标签"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/removeLabel"
)
@DeleteMapping
(
"/removeLabel"
)
public
AjaxResult
removeLabel
(
@RequestBody
WeMakeCustomerTag
weMakeCustomerTag
){
public
AjaxResult
removeLabel
(
@RequestBody
WeMakeCustomerTag
weMakeCustomerTag
){
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCustomerMessagePushController.java
View file @
68ab9cc
...
@@ -45,7 +45,7 @@ public class WeCustomerMessagePushController extends BaseController {
...
@@ -45,7 +45,7 @@ public class WeCustomerMessagePushController extends BaseController {
/**
/**
* 新增群发消息发送
* 新增群发消息发送
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerMessagePush:push:add')"
)
//
@PreAuthorize("@ss.hasPermi('customerMessagePush:push:add')")
@Log
(
title
=
"新增群发消息发送"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"新增群发消息发送"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
value
=
"add"
)
@PostMapping
(
value
=
"add"
)
public
AjaxResult
add
(
@RequestBody
CustomerMessagePushDto
customerMessagePushDto
)
{
public
AjaxResult
add
(
@RequestBody
CustomerMessagePushDto
customerMessagePushDto
)
{
...
@@ -62,7 +62,7 @@ public class WeCustomerMessagePushController extends BaseController {
...
@@ -62,7 +62,7 @@ public class WeCustomerMessagePushController extends BaseController {
/**
/**
* 群发消息列表
* 群发消息列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerMessagePush:push:list')"
)
//
@PreAuthorize("@ss.hasPermi('customerMessagePush:push:list')")
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
TableDataInfo
list
(
@RequestParam
(
value
=
"sender"
,
required
=
false
)
String
sender
public
TableDataInfo
list
(
@RequestParam
(
value
=
"sender"
,
required
=
false
)
String
sender
,
@RequestParam
(
value
=
"content"
,
required
=
false
)
String
content
,
@RequestParam
(
value
=
"content"
,
required
=
false
)
String
content
...
@@ -77,7 +77,7 @@ public class WeCustomerMessagePushController extends BaseController {
...
@@ -77,7 +77,7 @@ public class WeCustomerMessagePushController extends BaseController {
/**
/**
* 群发消息详情
* 群发消息详情
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerMessagePush:push:view')"
)
//
@PreAuthorize("@ss.hasPermi('customerMessagePush:push:view')")
@GetMapping
(
value
=
"/getInfo"
)
@GetMapping
(
value
=
"/getInfo"
)
public
AjaxResult
getInfo
(
@RequestParam
(
value
=
"messageId"
)
Long
messageId
)
{
public
AjaxResult
getInfo
(
@RequestParam
(
value
=
"messageId"
)
Long
messageId
)
{
CustomerMessagePushVo
customerMessagePushVo
=
weCustomerMessageOriginalService
.
CustomerMessagePushDetail
(
messageId
);
CustomerMessagePushVo
customerMessagePushVo
=
weCustomerMessageOriginalService
.
CustomerMessagePushDetail
(
messageId
);
...
@@ -87,7 +87,7 @@ public class WeCustomerMessagePushController extends BaseController {
...
@@ -87,7 +87,7 @@ public class WeCustomerMessagePushController extends BaseController {
/**
/**
* 群发消息结果列表
* 群发消息结果列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerMessagePush:push:pushResults')"
)
//
@PreAuthorize("@ss.hasPermi('customerMessagePush:push:pushResults')")
@GetMapping
(
value
=
"/pushResults"
)
@GetMapping
(
value
=
"/pushResults"
)
public
TableDataInfo
customerMessagePushResult
(
@RequestParam
(
value
=
"messageId"
)
Long
messageId
,
@RequestParam
(
value
=
"status"
)
String
status
)
{
public
TableDataInfo
customerMessagePushResult
(
@RequestParam
(
value
=
"messageId"
)
Long
messageId
,
@RequestParam
(
value
=
"status"
)
String
status
)
{
startPage
();
startPage
();
...
@@ -98,7 +98,7 @@ public class WeCustomerMessagePushController extends BaseController {
...
@@ -98,7 +98,7 @@ public class WeCustomerMessagePushController extends BaseController {
/**
/**
* 同步消息发送结果
* 同步消息发送结果
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerMessagePush:push:asyncResult')"
)
//
@PreAuthorize("@ss.hasPermi('customerMessagePush:push:asyncResult')")
@PostMapping
(
value
=
"asyncResult"
)
@PostMapping
(
value
=
"asyncResult"
)
public
AjaxResult
asyncResult
(
@RequestBody
AsyncResultDto
asyncResultDto
)
throws
JsonProcessingException
{
public
AjaxResult
asyncResult
(
@RequestBody
AsyncResultDto
asyncResultDto
)
throws
JsonProcessingException
{
weCustomerMessageOriginalService
.
asyncResult
(
asyncResultDto
);
weCustomerMessageOriginalService
.
asyncResult
(
asyncResultDto
);
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeDepartmentController.java
View file @
68ab9cc
...
@@ -33,7 +33,7 @@ public class WeDepartmentController extends BaseController
...
@@ -33,7 +33,7 @@ public class WeDepartmentController extends BaseController
/**
/**
* 查询企业微信组织架构相关列表
* 查询企业微信组织架构相关列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:list')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@ApiOperation
(
"获取部门列表"
)
@ApiOperation
(
"获取部门列表"
)
public
AjaxResult
list
()
public
AjaxResult
list
()
...
@@ -47,7 +47,7 @@ public class WeDepartmentController extends BaseController
...
@@ -47,7 +47,7 @@ public class WeDepartmentController extends BaseController
/**
/**
* 新增企业微信组织架构相关
* 新增企业微信组织架构相关
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:addMember')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:addMember')")
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
@ApiOperation
(
"添加部门"
)
@ApiOperation
(
"添加部门"
)
...
@@ -60,7 +60,7 @@ public class WeDepartmentController extends BaseController
...
@@ -60,7 +60,7 @@ public class WeDepartmentController extends BaseController
/**
/**
* 修改企业微信组织架构相关
* 修改企业微信组织架构相关
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:editDep')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:editDep')")
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
@ApiOperation
(
"更新部门"
)
@ApiOperation
(
"更新部门"
)
...
@@ -73,7 +73,7 @@ public class WeDepartmentController extends BaseController
...
@@ -73,7 +73,7 @@ public class WeDepartmentController extends BaseController
/**
/**
* 删除企业微信组织架构相关
* 删除企业微信组织架构相关
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:department:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:department:remove')")
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"企业微信组织架构相关"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
String
[]
ids
)
public
AjaxResult
remove
(
@PathVariable
String
[]
ids
)
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeEmpleCodeController.java
View file @
68ab9cc
...
@@ -47,7 +47,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -47,7 +47,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 查询员工活码列表
* 查询员工活码列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeEmpleCode
weEmpleCode
)
{
public
TableDataInfo
list
(
WeEmpleCode
weEmpleCode
)
{
startPage
();
startPage
();
...
@@ -59,7 +59,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -59,7 +59,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 获取员工活码详细信息
* 获取员工活码详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weEmpleCodeService
.
selectWeEmpleCodeById
(
id
));
return
AjaxResult
.
success
(
weEmpleCodeService
.
selectWeEmpleCodeById
(
id
));
...
@@ -68,7 +68,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -68,7 +68,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 新增员工活码
* 新增员工活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:add')")
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
@Validated
WeEmpleCode
weEmpleCode
)
{
public
AjaxResult
add
(
@RequestBody
@Validated
WeEmpleCode
weEmpleCode
)
{
...
@@ -89,7 +89,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -89,7 +89,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 批量新增员工活码
* 批量新增员工活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:batchAdd')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:batchAdd')")
@Log
(
title
=
"批量新增员工活码"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"批量新增员工活码"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/batchAdd"
)
@PostMapping
(
"/batchAdd"
)
public
AjaxResult
batchAdd
(
@RequestBody
@Validated
WeEmpleCode
weEmpleCode
)
{
public
AjaxResult
batchAdd
(
@RequestBody
@Validated
WeEmpleCode
weEmpleCode
)
{
...
@@ -109,7 +109,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -109,7 +109,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 修改员工活码
* 修改员工活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:edit')")
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/update"
)
@PutMapping
(
"/update"
)
public
AjaxResult
edit
(
@RequestBody
WeEmpleCode
weEmpleCode
)
{
public
AjaxResult
edit
(
@RequestBody
WeEmpleCode
weEmpleCode
)
{
...
@@ -121,7 +121,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -121,7 +121,7 @@ public class WeEmpleCodeController extends BaseController {
/**
/**
* 删除员工活码
* 删除员工活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:remove')")
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"员工活码"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
String
ids
)
{
public
AjaxResult
remove
(
@PathVariable
String
ids
)
{
...
@@ -135,7 +135,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -135,7 +135,7 @@ public class WeEmpleCodeController extends BaseController {
* @param userIds 员工id
* @param userIds 员工id
* @param departmentIds 部门id
* @param departmentIds 部门id
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:qrcode')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:qrcode')")
@Log
(
title
=
"获取员工二维码"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"获取员工二维码"
,
businessType
=
BusinessType
.
DELETE
)
@GetMapping
(
"/getQrcode"
)
@GetMapping
(
"/getQrcode"
)
public
AjaxResult
getQrcode
(
String
userIds
,
String
departmentIds
)
{
public
AjaxResult
getQrcode
(
String
userIds
,
String
departmentIds
)
{
...
@@ -150,7 +150,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -150,7 +150,7 @@ public class WeEmpleCodeController extends BaseController {
* @param response 输出
* @param response 输出
* @throws Exception
* @throws Exception
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:downloadBatch')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:downloadBatch')")
@Log
(
title
=
"员工活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"员工活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/downloadBatch"
)
@GetMapping
(
"/downloadBatch"
)
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
){
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
){
...
@@ -190,7 +190,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -190,7 +190,7 @@ public class WeEmpleCodeController extends BaseController {
}
}
}
}
@PreAuthorize
(
"@ss.hasPermi('wecom:code:download')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:download')")
@Log
(
title
=
"员工活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"员工活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/download"
)
@GetMapping
(
"/download"
)
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
){
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
){
...
@@ -211,7 +211,7 @@ public class WeEmpleCodeController extends BaseController {
...
@@ -211,7 +211,7 @@ public class WeEmpleCodeController extends BaseController {
* 成员添加客户统计
* 成员添加客户统计
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:code:getUserAddCustomerStat')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:code:getUserAddCustomerStat')")
@Log
(
title
=
"成员添加客户统计"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"成员添加客户统计"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/getUserAddCustomerStat"
)
@GetMapping
(
"/getUserAddCustomerStat"
)
public
AjaxResult
getUserAddCustomerStat
(
WeFlowerCustomerRel
weFlowerCustomerRel
){
public
AjaxResult
getUserAddCustomerStat
(
WeFlowerCustomerRel
weFlowerCustomerRel
){
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeActualController.java
View file @
68ab9cc
...
@@ -31,7 +31,7 @@ public class WeGroupCodeActualController extends BaseController {
...
@@ -31,7 +31,7 @@ public class WeGroupCodeActualController extends BaseController {
/**
/**
* 查询实际群码列表
* 查询实际群码列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:actual:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:actual:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeGroupCodeActual
weGroupCodeActual
)
{
public
TableDataInfo
list
(
WeGroupCodeActual
weGroupCodeActual
)
{
startPage
();
startPage
();
...
@@ -55,7 +55,7 @@ public class WeGroupCodeActualController extends BaseController {
...
@@ -55,7 +55,7 @@ public class WeGroupCodeActualController extends BaseController {
/**
/**
* 获取实际群码详细信息
* 获取实际群码详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:actual:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:actual:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
WeGroupCodeActual
weGroupCodeActual
=
weGroupCodeActualService
.
selectWeGroupCodeActualById
(
id
);
WeGroupCodeActual
weGroupCodeActual
=
weGroupCodeActualService
.
selectWeGroupCodeActualById
(
id
);
...
@@ -68,7 +68,7 @@ public class WeGroupCodeActualController extends BaseController {
...
@@ -68,7 +68,7 @@ public class WeGroupCodeActualController extends BaseController {
/**
/**
* 新增实际群码查询
* 新增实际群码查询
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:actual:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:actual:add')")
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
WeGroupCodeActual
weGroupCodeActual
)
{
public
AjaxResult
add
(
@Validated
@RequestBody
WeGroupCodeActual
weGroupCodeActual
)
{
...
@@ -82,7 +82,7 @@ public class WeGroupCodeActualController extends BaseController {
...
@@ -82,7 +82,7 @@ public class WeGroupCodeActualController extends BaseController {
/**
/**
* 修改实际群码
* 修改实际群码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:actual:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:actual:edit')")
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeGroupCodeActual
weGroupCodeActual
)
{
public
AjaxResult
edit
(
@RequestBody
WeGroupCodeActual
weGroupCodeActual
)
{
...
@@ -101,7 +101,7 @@ public class WeGroupCodeActualController extends BaseController {
...
@@ -101,7 +101,7 @@ public class WeGroupCodeActualController extends BaseController {
/**
/**
* 删除实际群码
* 删除实际群码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:actual:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:actual:remove')")
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"实际群码"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupCodeController.java
View file @
68ab9cc
...
@@ -46,7 +46,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -46,7 +46,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 查询客户群活码列表
* 查询客户群活码列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:list')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeGroupCode
weGroupCode
)
{
public
TableDataInfo
list
(
WeGroupCode
weGroupCode
)
{
startPage
();
startPage
();
...
@@ -57,7 +57,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -57,7 +57,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 批量下载群活码
* 批量下载群活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:downloadBatch')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:downloadBatch')")
@Log
(
title
=
"群活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"群活码批量下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/downloadBatch"
)
@GetMapping
(
"/downloadBatch"
)
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
downloadBatch
(
String
ids
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
@@ -92,7 +92,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -92,7 +92,7 @@ public class WeGroupCodeController extends BaseController {
}
}
}
}
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:download')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:download')")
@Log
(
title
=
"群活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"群活码下载"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/download"
)
@GetMapping
(
"/download"
)
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
void
download
(
String
id
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
@@ -120,7 +120,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -120,7 +120,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 获取客户群活码详细信息
* 获取客户群活码详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:query')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
WeGroupCode
weGroupCode
=
weGroupCodeService
.
selectWeGroupCodeById
(
id
);
WeGroupCode
weGroupCode
=
weGroupCodeService
.
selectWeGroupCodeById
(
id
);
...
@@ -135,7 +135,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -135,7 +135,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 新增客户群活码
* 新增客户群活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:add')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:add')")
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
WeGroupCode
weGroupCode
)
{
public
AjaxResult
add
(
@Validated
@RequestBody
WeGroupCode
weGroupCode
)
{
...
@@ -153,7 +153,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -153,7 +153,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 修改客户群活码
* 修改客户群活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:edit')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:edit')")
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
value
=
"/{id}"
)
@PutMapping
(
value
=
"/{id}"
)
public
AjaxResult
edit
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
WeGroupCode
weGroupCode
)
{
public
AjaxResult
edit
(
@PathVariable
(
"id"
)
Long
id
,
@RequestBody
WeGroupCode
weGroupCode
)
{
...
@@ -174,7 +174,7 @@ public class WeGroupCodeController extends BaseController {
...
@@ -174,7 +174,7 @@ public class WeGroupCodeController extends BaseController {
/**
/**
* 删除客户群活码
* 删除客户群活码
*/
*/
@PreAuthorize
(
"@ss.hasPermi('drainageCode:group:remove')"
)
//
@PreAuthorize("@ss.hasPermi('drainageCode:group:remove')")
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"客户群活码"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
batchRemove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
batchRemove
(
@PathVariable
Long
[]
ids
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupController.java
View file @
68ab9cc
...
@@ -36,7 +36,7 @@ public class WeGroupController extends BaseController {
...
@@ -36,7 +36,7 @@ public class WeGroupController extends BaseController {
@Autowired
@Autowired
private
IWeGroupMemberService
weGroupMemberService
;
private
IWeGroupMemberService
weGroupMemberService
;
@PreAuthorize
(
"@ss.hasPermi('customerManage:group:list')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:group:list')")
@GetMapping
({
"/list"
})
@GetMapping
({
"/list"
})
public
TableDataInfo
list
(
WeGroup
weGroup
)
{
public
TableDataInfo
list
(
WeGroup
weGroup
)
{
startPage
();
startPage
();
...
@@ -46,7 +46,7 @@ public class WeGroupController extends BaseController {
...
@@ -46,7 +46,7 @@ public class WeGroupController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('customerManage:group:view')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:group:view')")
@GetMapping
({
"/members"
})
@GetMapping
({
"/members"
})
public
TableDataInfo
list
(
WeGroupMember
weGroupMember
)
{
public
TableDataInfo
list
(
WeGroupMember
weGroupMember
)
{
startPage
();
startPage
();
...
@@ -58,7 +58,7 @@ public class WeGroupController extends BaseController {
...
@@ -58,7 +58,7 @@ public class WeGroupController extends BaseController {
* 同步客户群
* 同步客户群
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:group:sync')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:group:sync')")
@GetMapping
({
"/synchWeGroup"
})
@GetMapping
({
"/synchWeGroup"
})
public
AjaxResult
synchWeGroup
(){
public
AjaxResult
synchWeGroup
(){
try
{
try
{
...
@@ -78,7 +78,7 @@ public class WeGroupController extends BaseController {
...
@@ -78,7 +78,7 @@ public class WeGroupController extends BaseController {
* @param userId
* @param userId
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:group:sync')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:group:sync')")
@GetMapping
({
"/getGroupsByUserId/{userId}"
})
@GetMapping
({
"/getGroupsByUserId/{userId}"
})
public
AjaxResult
getGroupsByUserId
(
@PathVariable
String
userId
){
public
AjaxResult
getGroupsByUserId
(
@PathVariable
String
userId
){
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMaterialController.java
View file @
68ab9cc
...
@@ -44,7 +44,7 @@ public class WeMaterialController extends BaseController {
...
@@ -44,7 +44,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 查询素材列表
* 查询素材列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:material:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:material:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
@RequestParam
(
value
=
"categoryId"
,
required
=
false
)
String
categoryId
public
TableDataInfo
list
(
@RequestParam
(
value
=
"categoryId"
,
required
=
false
)
String
categoryId
,
@RequestParam
(
value
=
"search"
,
required
=
false
)
String
search
,
@RequestParam
(
value
=
"mediaType"
)
String
mediaType
)
{
,
@RequestParam
(
value
=
"search"
,
required
=
false
)
String
search
,
@RequestParam
(
value
=
"mediaType"
)
String
mediaType
)
{
...
@@ -69,7 +69,7 @@ public class WeMaterialController extends BaseController {
...
@@ -69,7 +69,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 查询素材详细信息
* 查询素材详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:query')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
@ApiOperation
(
"查询素材详细信息"
)
@ApiOperation
(
"查询素材详细信息"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
...
@@ -79,7 +79,7 @@ public class WeMaterialController extends BaseController {
...
@@ -79,7 +79,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 添加素材信息
* 添加素材信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:add')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:add')")
@Log
(
title
=
"添加素材信息"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"添加素材信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
@ApiOperation
(
"添加素材信息"
)
@ApiOperation
(
"添加素材信息"
)
...
@@ -90,7 +90,7 @@ public class WeMaterialController extends BaseController {
...
@@ -90,7 +90,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 更新素材信息
* 更新素材信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:edit')")
@Log
(
title
=
"更新素材信息"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"更新素材信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
@ApiOperation
(
"更新素材信息"
)
@ApiOperation
(
"更新素材信息"
)
...
@@ -101,7 +101,7 @@ public class WeMaterialController extends BaseController {
...
@@ -101,7 +101,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 删除素材信息
* 删除素材信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:remove')")
@Log
(
title
=
"删除素材信息"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"删除素材信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
@ApiOperation
(
"删除素材信息"
)
@ApiOperation
(
"删除素材信息"
)
...
@@ -112,7 +112,7 @@ public class WeMaterialController extends BaseController {
...
@@ -112,7 +112,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 上传素材信息
* 上传素材信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:upload')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:upload')")
@Log
(
title
=
"上传素材信息"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"上传素材信息"
,
businessType
=
BusinessType
.
OTHER
)
@PostMapping
(
"/upload"
)
@PostMapping
(
"/upload"
)
@ApiOperation
(
"上传素材信息"
)
@ApiOperation
(
"上传素材信息"
)
...
@@ -124,7 +124,7 @@ public class WeMaterialController extends BaseController {
...
@@ -124,7 +124,7 @@ public class WeMaterialController extends BaseController {
/**
/**
* 更换分组
* 更换分组
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:material:resetCategory')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:material:resetCategory')")
@Log
(
title
=
"更换分组"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"更换分组"
,
businessType
=
BusinessType
.
OTHER
)
@PutMapping
(
"/resetCategory"
)
@PutMapping
(
"/resetCategory"
)
@ApiOperation
(
"更换分组"
)
@ApiOperation
(
"更换分组"
)
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMessagePushController.java
View file @
68ab9cc
...
@@ -30,7 +30,7 @@ public class WeMessagePushController extends BaseController {
...
@@ -30,7 +30,7 @@ public class WeMessagePushController extends BaseController {
/**
/**
* 查询消息发送的列表
* 查询消息发送的列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:push:list')"
)
//
@PreAuthorize("@ss.hasPermi('system:push:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeMessagePush
weMessagePush
)
{
public
TableDataInfo
list
(
WeMessagePush
weMessagePush
)
{
startPage
();
startPage
();
...
@@ -41,7 +41,7 @@ public class WeMessagePushController extends BaseController {
...
@@ -41,7 +41,7 @@ public class WeMessagePushController extends BaseController {
/**
/**
* 导出消息发送的列表
* 导出消息发送的列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:push:export')"
)
//
@PreAuthorize("@ss.hasPermi('system:push:export')")
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeMessagePush
weMessagePush
)
{
public
AjaxResult
export
(
WeMessagePush
weMessagePush
)
{
...
@@ -53,7 +53,7 @@ public class WeMessagePushController extends BaseController {
...
@@ -53,7 +53,7 @@ public class WeMessagePushController extends BaseController {
/**
/**
* 获取消息发送的详细信息
* 获取消息发送的详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:push:query')"
)
//
@PreAuthorize("@ss.hasPermi('system:push:query')")
@GetMapping
(
value
=
"/{messagePushId}"
)
@GetMapping
(
value
=
"/{messagePushId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"messagePushId"
)
Long
messagePushId
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"messagePushId"
)
Long
messagePushId
)
{
return
AjaxResult
.
success
(
weMessagePushService
.
selectWeMessagePushById
(
messagePushId
));
return
AjaxResult
.
success
(
weMessagePushService
.
selectWeMessagePushById
(
messagePushId
));
...
@@ -62,7 +62,7 @@ public class WeMessagePushController extends BaseController {
...
@@ -62,7 +62,7 @@ public class WeMessagePushController extends BaseController {
/**
/**
* 新增消息发送的
* 新增消息发送的
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:push:add')"
)
//
@PreAuthorize("@ss.hasPermi('system:push:add')")
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
value
=
"add"
)
@PostMapping
(
value
=
"add"
)
public
AjaxResult
add
(
@RequestBody
WeMessagePush
weMessagePush
)
{
public
AjaxResult
add
(
@RequestBody
WeMessagePush
weMessagePush
)
{
...
@@ -73,7 +73,7 @@ public class WeMessagePushController extends BaseController {
...
@@ -73,7 +73,7 @@ public class WeMessagePushController extends BaseController {
/**
/**
* 删除消息发送的
* 删除消息发送的
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:push:remove')"
)
//
@PreAuthorize("@ss.hasPermi('system:push:remove')")
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"消息发送的"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{messagePushIds}"
)
@DeleteMapping
(
"/{messagePushIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
messagePushIds
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
messagePushIds
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeMsgTlpController.java
View file @
68ab9cc
...
@@ -36,7 +36,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -36,7 +36,7 @@ public class WeMsgTlpController extends BaseController
/**
/**
* 查询欢迎语模板列表
* 查询欢迎语模板列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:tlp:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:tlp:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeMsgTlp
weMsgTlp
)
public
TableDataInfo
list
(
WeMsgTlp
weMsgTlp
)
{
{
...
@@ -49,7 +49,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -49,7 +49,7 @@ public class WeMsgTlpController extends BaseController
/**
/**
* 获取欢迎语模板详细信息
* 获取欢迎语模板详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:tlp:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:tlp:query')")
@GetMapping
(
value
=
"/scop/{id}"
)
@GetMapping
(
value
=
"/scop/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
{
...
@@ -62,7 +62,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -62,7 +62,7 @@ public class WeMsgTlpController extends BaseController
/**
/**
* 新增欢迎语模板
* 新增欢迎语模板
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:tlp:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:tlp:add')")
@Log
(
title
=
"新增欢迎语模板"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"新增欢迎语模板"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
WeMsgTlp
weMsgTlp
)
public
AjaxResult
add
(
@RequestBody
WeMsgTlp
weMsgTlp
)
...
@@ -73,7 +73,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -73,7 +73,7 @@ public class WeMsgTlpController extends BaseController
/**
/**
* 修改欢迎语模板
* 修改欢迎语模板
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:tlp:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:tlp:edit')")
@Log
(
title
=
"修改欢迎语模板"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"修改欢迎语模板"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeMsgTlp
weMsgTlp
)
public
AjaxResult
edit
(
@RequestBody
WeMsgTlp
weMsgTlp
)
...
@@ -84,7 +84,7 @@ public class WeMsgTlpController extends BaseController
...
@@ -84,7 +84,7 @@ public class WeMsgTlpController extends BaseController
/**
/**
* 删除欢迎语模板
* 删除欢迎语模板
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:tlp:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:tlp:remove')")
@Log
(
title
=
"删除欢迎语模板"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"删除欢迎语模板"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WePageDateContraller.java
View file @
68ab9cc
...
@@ -33,14 +33,14 @@ public class WePageDateContraller {
...
@@ -33,14 +33,14 @@ public class WePageDateContraller {
*
*
*/
*/
@ApiOperation
(
value
=
"数据总览controller"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"数据总览controller"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:page:getCorpBasicData')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:page:getCorpBasicData')")
@GetMapping
(
"/getCorpBasicData"
)
@GetMapping
(
"/getCorpBasicData"
)
public
AjaxResult
getCorpBasicData
(){
public
AjaxResult
getCorpBasicData
(){
return
AjaxResult
.
success
(
redisCache
.
getCacheMap
(
"getCorpBasicData"
));
return
AjaxResult
.
success
(
redisCache
.
getCacheMap
(
"getCorpBasicData"
));
}
}
@ApiOperation
(
value
=
"实时数据controller"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"实时数据controller"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:page:getCorpRealTimeData')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:page:getCorpRealTimeData')")
@GetMapping
(
"/getCorpRealTimeData"
)
@GetMapping
(
"/getCorpRealTimeData"
)
public
AjaxResult
getCorpRealTimeData
(){
public
AjaxResult
getCorpRealTimeData
(){
WePageStaticDataDto
wePageStaticDataDto
=
redisCache
.
getCacheObject
(
"getCorpRealTimeData"
);
WePageStaticDataDto
wePageStaticDataDto
=
redisCache
.
getCacheObject
(
"getCorpRealTimeData"
);
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WePosterController.java
View file @
68ab9cc
...
@@ -45,7 +45,7 @@ public class WePosterController extends BaseController {
...
@@ -45,7 +45,7 @@ public class WePosterController extends BaseController {
@PostMapping
(
value
=
"insert"
)
@PostMapping
(
value
=
"insert"
)
@ApiOperation
(
"创建海报"
)
@ApiOperation
(
"创建海报"
)
@PreAuthorize
(
"@ss.hasAnyPermi('wecom:poster:insert')"
)
//
@PreAuthorize("@ss.hasAnyPermi('wecom:poster:insert')")
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
AjaxResult
insert
(
@RequestBody
WePoster
poster
)
{
public
AjaxResult
insert
(
@RequestBody
WePoster
poster
)
{
wePosterService
.
generateSimpleImg
(
poster
);
wePosterService
.
generateSimpleImg
(
poster
);
...
@@ -70,7 +70,7 @@ public class WePosterController extends BaseController {
...
@@ -70,7 +70,7 @@ public class WePosterController extends BaseController {
@PutMapping
(
value
=
"update"
)
@PutMapping
(
value
=
"update"
)
@ApiOperation
(
"修改海报"
)
@ApiOperation
(
"修改海报"
)
@PreAuthorize
(
"@ss.hasAnyPermi('wecom:poster:update')"
)
//
@PreAuthorize("@ss.hasAnyPermi('wecom:poster:update')")
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
AjaxResult
update
(
@RequestBody
WePoster
poster
)
{
public
AjaxResult
update
(
@RequestBody
WePoster
poster
)
{
if
(
poster
.
getId
()
==
null
)
{
if
(
poster
.
getId
()
==
null
)
{
...
@@ -122,7 +122,7 @@ public class WePosterController extends BaseController {
...
@@ -122,7 +122,7 @@ public class WePosterController extends BaseController {
}*/
}*/
@GetMapping
(
value
=
"entity/{id}"
)
@GetMapping
(
value
=
"entity/{id}"
)
@PreAuthorize
(
"@ss.hasAnyPermi('wecom:poster:entity')"
)
//
@PreAuthorize("@ss.hasAnyPermi('wecom:poster:entity')")
@ApiOperation
(
"查询海报详情"
)
@ApiOperation
(
"查询海报详情"
)
public
AjaxResult
entity
(
@PathVariable
Long
id
)
{
public
AjaxResult
entity
(
@PathVariable
Long
id
)
{
return
AjaxResult
.
success
(
wePosterService
.
selectOne
(
id
));
return
AjaxResult
.
success
(
wePosterService
.
selectOne
(
id
));
...
@@ -130,7 +130,7 @@ public class WePosterController extends BaseController {
...
@@ -130,7 +130,7 @@ public class WePosterController extends BaseController {
@GetMapping
(
value
=
"page"
)
@GetMapping
(
value
=
"page"
)
@ApiOperation
(
"分页查询海报"
)
@ApiOperation
(
"分页查询海报"
)
@PreAuthorize
(
"@ss.hasAnyPermi('wecom:poster:page')"
)
//
@PreAuthorize("@ss.hasAnyPermi('wecom:poster:page')")
public
AjaxResult
page
(
Long
categoryId
,
String
name
)
{
public
AjaxResult
page
(
Long
categoryId
,
String
name
)
{
startPage
();
startPage
();
List
<
WePoster
>
fontList
=
wePosterService
.
lambdaQuery
()
List
<
WePoster
>
fontList
=
wePosterService
.
lambdaQuery
()
...
@@ -144,7 +144,7 @@ public class WePosterController extends BaseController {
...
@@ -144,7 +144,7 @@ public class WePosterController extends BaseController {
@DeleteMapping
(
value
=
"delete/{id}"
)
@DeleteMapping
(
value
=
"delete/{id}"
)
@ApiOperation
(
value
=
"删除海报"
)
@ApiOperation
(
value
=
"删除海报"
)
@PreAuthorize
(
"@ss.hasAnyPermi('wecom:poster:delete')"
)
//
@PreAuthorize("@ss.hasAnyPermi('wecom:poster:delete')")
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
AjaxResult
deletePosterFont
(
@PathVariable
Long
id
)
{
public
AjaxResult
deletePosterFont
(
@PathVariable
Long
id
)
{
wePosterService
.
update
(
wePosterService
.
update
(
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveActController.java
View file @
68ab9cc
...
@@ -39,7 +39,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -39,7 +39,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 查询敏感行为列表
* 查询敏感行为列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveact:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveact:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeSensitiveAct
weSensitiveAct
)
{
public
TableDataInfo
list
(
WeSensitiveAct
weSensitiveAct
)
{
startPage
();
startPage
();
...
@@ -50,7 +50,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -50,7 +50,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 获取敏感行为详细信息
* 获取敏感行为详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveact:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveact:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weSensitiveActService
.
selectWeSensitiveActById
(
id
));
return
AjaxResult
.
success
(
weSensitiveActService
.
selectWeSensitiveActById
(
id
));
...
@@ -59,7 +59,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -59,7 +59,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 新增敏感行为设置
* 新增敏感行为设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveact:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveact:add')")
@Log
(
title
=
"新增敏感行为"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"新增敏感行为"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@Valid
@RequestBody
WeSensitiveAct
weSensitiveAct
)
{
public
AjaxResult
add
(
@Valid
@RequestBody
WeSensitiveAct
weSensitiveAct
)
{
...
@@ -69,7 +69,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -69,7 +69,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 修改敏感词设置
* 修改敏感词设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveact:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveact:edit')")
@Log
(
title
=
"修改敏感行为"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"修改敏感行为"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeSensitiveAct
weSensitiveAct
)
{
public
AjaxResult
edit
(
@RequestBody
WeSensitiveAct
weSensitiveAct
)
{
...
@@ -84,7 +84,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -84,7 +84,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 删除敏感词设置
* 删除敏感词设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveact:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveact:remove')")
@Log
(
title
=
"删除敏感行为"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"删除敏感行为"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
(
"ids"
)
String
ids
)
{
public
AjaxResult
remove
(
@PathVariable
(
"ids"
)
String
ids
)
{
...
@@ -97,7 +97,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -97,7 +97,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 敏感词命中查询
* 敏感词命中查询
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveacthit:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveacthit:list')")
@GetMapping
(
"/hit/list"
)
@GetMapping
(
"/hit/list"
)
public
TableDataInfo
hitList
()
{
public
TableDataInfo
hitList
()
{
startPage
();
startPage
();
...
@@ -108,7 +108,7 @@ public class WeSensitiveActController extends BaseController {
...
@@ -108,7 +108,7 @@ public class WeSensitiveActController extends BaseController {
/**
/**
* 导出敏感行为记录
* 导出敏感行为记录
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitiveacthit:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitiveacthit:export')")
@PostMapping
(
"/hit/export"
)
@PostMapping
(
"/hit/export"
)
public
AjaxResult
export
()
{
public
AjaxResult
export
()
{
List
<
WeSensitiveActHit
>
list
=
weSensitiveActHitService
.
list
();
List
<
WeSensitiveActHit
>
list
=
weSensitiveActHitService
.
list
();
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeSensitiveController.java
View file @
68ab9cc
...
@@ -33,7 +33,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -33,7 +33,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 查询敏感词设置列表
* 查询敏感词设置列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitive:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitive:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeSensitive
weSensitive
)
{
public
TableDataInfo
list
(
WeSensitive
weSensitive
)
{
startPage
();
startPage
();
...
@@ -44,7 +44,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -44,7 +44,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 获取敏感词设置详细信息
* 获取敏感词设置详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitive:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitive:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weSensitiveService
.
selectWeSensitiveById
(
id
));
return
AjaxResult
.
success
(
weSensitiveService
.
selectWeSensitiveById
(
id
));
...
@@ -53,7 +53,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -53,7 +53,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 新增敏感词设置
* 新增敏感词设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitive:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitive:add')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
public
AjaxResult
add
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
...
@@ -63,7 +63,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -63,7 +63,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 修改敏感词设置
* 修改敏感词设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitive:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitive:edit')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
public
AjaxResult
edit
(
@Valid
@RequestBody
WeSensitive
weSensitive
)
{
...
@@ -78,7 +78,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -78,7 +78,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 删除敏感词设置
* 删除敏感词设置
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitive:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitive:remove')")
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"敏感词设置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
(
"ids"
)
String
ids
)
{
public
AjaxResult
remove
(
@PathVariable
(
"ids"
)
String
ids
)
{
...
@@ -91,7 +91,7 @@ public class WeSensitiveController extends BaseController {
...
@@ -91,7 +91,7 @@ public class WeSensitiveController extends BaseController {
/**
/**
* 敏感词命中查询
* 敏感词命中查询
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:sensitivehit:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:sensitivehit:list')")
@GetMapping
(
"/hit/list"
)
@GetMapping
(
"/hit/list"
)
public
TableDataInfo
hitList
(
WeSensitiveHitQuery
query
)
{
public
TableDataInfo
hitList
(
WeSensitiveHitQuery
query
)
{
return
getDataTable
(
weSensitiveService
.
getHitSensitiveList
(
query
));
return
getDataTable
(
weSensitiveService
.
getHitSensitiveList
(
query
));
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTagGroupController.java
View file @
68ab9cc
...
@@ -44,7 +44,7 @@ public class WeTagGroupController extends BaseController
...
@@ -44,7 +44,7 @@ public class WeTagGroupController extends BaseController
/**
/**
* 查询标签组列表
* 查询标签组列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:tag:list')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:tag:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeTagGroup
weTagGroup
)
public
TableDataInfo
list
(
WeTagGroup
weTagGroup
)
{
{
...
@@ -60,7 +60,7 @@ public class WeTagGroupController extends BaseController
...
@@ -60,7 +60,7 @@ public class WeTagGroupController extends BaseController
/**
/**
* 新增标签组
* 新增标签组
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:tag:add')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:tag:add')")
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
WeTagGroup
weTagGroup
)
public
AjaxResult
add
(
@RequestBody
WeTagGroup
weTagGroup
)
...
@@ -85,7 +85,7 @@ public class WeTagGroupController extends BaseController
...
@@ -85,7 +85,7 @@ public class WeTagGroupController extends BaseController
/**
/**
* 修改标签组
* 修改标签组
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:tag:edit')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:tag:edit')")
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeTagGroup
weTagGroup
)
public
AjaxResult
edit
(
@RequestBody
WeTagGroup
weTagGroup
)
...
@@ -97,7 +97,7 @@ public class WeTagGroupController extends BaseController
...
@@ -97,7 +97,7 @@ public class WeTagGroupController extends BaseController
/**
/**
* 删除标签组
* 删除标签组
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:tag:remove')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:tag:remove')")
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"标签组"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
String
[]
ids
)
public
AjaxResult
remove
(
@PathVariable
String
[]
ids
)
...
@@ -110,7 +110,7 @@ public class WeTagGroupController extends BaseController
...
@@ -110,7 +110,7 @@ public class WeTagGroupController extends BaseController
* 同步标签
* 同步标签
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:tag:sync')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:tag:sync')")
@GetMapping
(
"/synchWeTags"
)
@GetMapping
(
"/synchWeTags"
)
public
AjaxResult
synchWeTags
(){
public
AjaxResult
synchWeTags
(){
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
View file @
68ab9cc
...
@@ -61,7 +61,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -61,7 +61,7 @@ public class WeTaskFissionController extends BaseController {
* 查询任务宝列表
* 查询任务宝列表
*/
*/
@ApiOperation
(
value
=
"查询任务宝列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询任务宝列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
<
List
<
WeTaskFission
>>
list
(
WeTaskFission
weTaskFission
)
throws
ParseException
{
public
TableDataInfo
<
List
<
WeTaskFission
>>
list
(
WeTaskFission
weTaskFission
)
throws
ParseException
{
startPage
();
startPage
();
...
@@ -73,7 +73,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -73,7 +73,7 @@ public class WeTaskFissionController extends BaseController {
* 查询统计信息
* 查询统计信息
*/
*/
@ApiOperation
(
value
=
"查询统计信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询统计信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:stat')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:stat')")
@GetMapping
(
"/stat"
)
@GetMapping
(
"/stat"
)
public
AjaxResult
<
WeTaskFissionStatisticVO
>
statistics
(
WeTaskFissionStatisticQO
weTaskFissionStatisticQO
)
throws
ParseException
{
public
AjaxResult
<
WeTaskFissionStatisticVO
>
statistics
(
WeTaskFissionStatisticQO
weTaskFissionStatisticQO
)
throws
ParseException
{
Date
st
;
Date
st
;
...
@@ -97,7 +97,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -97,7 +97,7 @@ public class WeTaskFissionController extends BaseController {
* 导出任务宝列表
* 导出任务宝列表
*/
*/
@ApiOperation
(
value
=
"导出任务宝列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"导出任务宝列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:export')")
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeTaskFission
weTaskFission
)
throws
ParseException
{
public
AjaxResult
export
(
WeTaskFission
weTaskFission
)
throws
ParseException
{
...
@@ -110,7 +110,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -110,7 +110,7 @@ public class WeTaskFissionController extends BaseController {
* 获取任务宝详细信息
* 获取任务宝详细信息
*/
*/
@ApiOperation
(
value
=
"获取任务宝详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取任务宝详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:query')")
@GetMapping
(
value
=
"/getInfo/{id}"
)
@GetMapping
(
value
=
"/getInfo/{id}"
)
public
AjaxResult
<
WeTaskFission
>
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
<
WeTaskFission
>
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weTaskFissionService
.
selectWeTaskFissionById
(
id
));
return
AjaxResult
.
success
(
weTaskFissionService
.
selectWeTaskFissionById
(
id
));
...
@@ -120,7 +120,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -120,7 +120,7 @@ public class WeTaskFissionController extends BaseController {
* 新增任务宝
* 新增任务宝
*/
*/
@ApiOperation
(
value
=
"新增任务宝"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增任务宝"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:add')")
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
WeTaskFission
weTaskFission
)
{
public
AjaxResult
add
(
@RequestBody
WeTaskFission
weTaskFission
)
{
...
@@ -137,7 +137,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -137,7 +137,7 @@ public class WeTaskFissionController extends BaseController {
* 编辑任务宝
* 编辑任务宝
*/
*/
@ApiOperation
(
value
=
"编辑任务宝"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"编辑任务宝"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:edit')")
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
INSERT
)
@PutMapping
(
"/edit"
)
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
WeTaskFission
weTaskFission
)
{
public
AjaxResult
edit
(
@RequestBody
WeTaskFission
weTaskFission
)
{
...
@@ -161,7 +161,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -161,7 +161,7 @@ public class WeTaskFissionController extends BaseController {
* 删除任务宝
* 删除任务宝
*/
*/
@ApiOperation
(
value
=
"删除任务宝"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"删除任务宝"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:remove')")
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"任务宝"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
...
@@ -172,7 +172,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -172,7 +172,7 @@ public class WeTaskFissionController extends BaseController {
* 发送裂变任务
* 发送裂变任务
*/
*/
@ApiOperation
(
value
=
"发送裂变任务"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"发送裂变任务"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:send')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:send')")
@Log
(
title
=
"发送裂变任务"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"发送裂变任务"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/send/{id}"
)
@GetMapping
(
"/send/{id}"
)
public
AjaxResult
send
(
@PathVariable
Long
id
)
{
public
AjaxResult
send
(
@PathVariable
Long
id
)
{
...
@@ -184,7 +184,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -184,7 +184,7 @@ public class WeTaskFissionController extends BaseController {
* 添加群裂变完成记录
* 添加群裂变完成记录
*/
*/
@ApiOperation
(
value
=
"添加群裂变完成记录"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"添加群裂变完成记录"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:complete')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:complete')")
@Log
(
title
=
"添加群裂变完成记录"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"添加群裂变完成记录"
,
businessType
=
BusinessType
.
OTHER
)
@PostMapping
(
"/complete/{id}/records/{recordId}"
)
@PostMapping
(
"/complete/{id}/records/{recordId}"
)
public
AjaxResult
completeRecord
(
@PathVariable
(
"id"
)
Long
id
,
public
AjaxResult
completeRecord
(
@PathVariable
(
"id"
)
Long
id
,
...
@@ -202,7 +202,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -202,7 +202,7 @@ public class WeTaskFissionController extends BaseController {
* 生成带二维码的海报
* 生成带二维码的海报
*/
*/
@ApiOperation
(
value
=
"生成带二维码的海报"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"生成带二维码的海报"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:poster')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:poster')")
@Log
(
title
=
"生成带二维码的海报"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"生成带二维码的海报"
,
businessType
=
BusinessType
.
OTHER
)
@PostMapping
(
"/poster"
)
@PostMapping
(
"/poster"
)
public
AjaxResult
<
JSONObject
>
posterGenerate
(
@RequestBody
WeTaskFissionPosterDTO
weTaskFissionPosterDTO
)
{
public
AjaxResult
<
JSONObject
>
posterGenerate
(
@RequestBody
WeTaskFissionPosterDTO
weTaskFissionPosterDTO
)
{
...
@@ -215,7 +215,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -215,7 +215,7 @@ public class WeTaskFissionController extends BaseController {
/**
/**
* 上传兑奖图片
* 上传兑奖图片
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wechat:fission:upload')"
)
//
@PreAuthorize("@ss.hasPermi('wechat:fission:upload')")
@Log
(
title
=
"上传兑奖图片"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"上传兑奖图片"
,
businessType
=
BusinessType
.
OTHER
)
@PostMapping
(
"/upload"
)
@PostMapping
(
"/upload"
)
@ApiOperation
(
value
=
"上传兑奖图片"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"上传兑奖图片"
,
httpMethod
=
"POST"
)
...
@@ -231,7 +231,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -231,7 +231,7 @@ public class WeTaskFissionController extends BaseController {
* 根据任务id获取参与任务客户列表
* 根据任务id获取参与任务客户列表
*/
*/
@ApiOperation
(
value
=
"根据任务id获取参与任务客户列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"根据任务id获取参与任务客户列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:getCustomerListById')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:getCustomerListById')")
@Log
(
title
=
"根据任务id获取参与任务客户列表"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"根据任务id获取参与任务客户列表"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/getCustomerListById/{id}"
)
@GetMapping
(
"/getCustomerListById/{id}"
)
public
AjaxResult
<
List
<
WeCustomer
>>
getCustomerListById
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
String
id
)
{
public
AjaxResult
<
List
<
WeCustomer
>>
getCustomerListById
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
String
id
)
{
...
@@ -243,7 +243,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -243,7 +243,7 @@ public class WeTaskFissionController extends BaseController {
* 获取客户邀请列表和任务进度
* 获取客户邀请列表和任务进度
*/
*/
@ApiOperation
(
value
=
"获取客户邀请列表和任务进度"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取客户邀请列表和任务进度"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:getCustomerProgress')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:getCustomerProgress')")
@Log
(
title
=
"获取客户邀请列表和任务进度"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"获取客户邀请列表和任务进度"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/{id}/progress/{eid}"
)
@GetMapping
(
"/{id}/progress/{eid}"
)
public
AjaxResult
<
WeTaskFissionProgressVO
>
getCustomerProgress
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
Long
id
public
AjaxResult
<
WeTaskFissionProgressVO
>
getCustomerProgress
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
Long
id
...
@@ -260,7 +260,7 @@ public class WeTaskFissionController extends BaseController {
...
@@ -260,7 +260,7 @@ public class WeTaskFissionController extends BaseController {
* 获取任务所有参与客户的完成情况
* 获取任务所有参与客户的完成情况
*/
*/
@ApiOperation
(
value
=
"获取任务所有参与客户的完成情况"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取任务所有参与客户的完成情况"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:fission:getCustomerProgress')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:fission:getCustomerProgress')")
@Log
(
title
=
"获取任务所有参与客户的完成情况"
,
businessType
=
BusinessType
.
OTHER
)
@Log
(
title
=
"获取任务所有参与客户的完成情况"
,
businessType
=
BusinessType
.
OTHER
)
@GetMapping
(
"/{id}/progress"
)
@GetMapping
(
"/{id}/progress"
)
public
AjaxResult
<
List
<
WeTaskFissionTotalProgressVO
>>
getAllCustomerProgress
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
<
List
<
WeTaskFissionTotalProgressVO
>>
getAllCustomerProgress
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"id"
)
Long
id
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionRecordController.java
View file @
68ab9cc
...
@@ -33,7 +33,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -33,7 +33,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 查询裂变任务完成记录列表
* 查询裂变任务完成记录列表
*/
*/
@ApiOperation
(
value
=
"查询裂变任务完成记录列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询裂变任务完成记录列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeTaskFissionRecord
weTaskFissionRecord
)
{
public
TableDataInfo
list
(
WeTaskFissionRecord
weTaskFissionRecord
)
{
startPage
();
startPage
();
...
@@ -45,7 +45,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -45,7 +45,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 导出裂变任务完成记录列表
* 导出裂变任务完成记录列表
*/
*/
@ApiOperation
(
value
=
"导出裂变任务完成记录列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"导出裂变任务完成记录列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:export')")
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeTaskFissionRecord
weTaskFissionRecord
)
{
public
AjaxResult
export
(
WeTaskFissionRecord
weTaskFissionRecord
)
{
...
@@ -58,7 +58,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -58,7 +58,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 获取裂变任务完成记录详细信息
* 获取裂变任务完成记录详细信息
*/
*/
@ApiOperation
(
value
=
"获取裂变任务完成记录详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取裂变任务完成记录详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weTaskFissionRecordService
.
selectWeTaskFissionRecordById
(
id
));
return
AjaxResult
.
success
(
weTaskFissionRecordService
.
selectWeTaskFissionRecordById
(
id
));
...
@@ -68,7 +68,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -68,7 +68,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 新增裂变任务完成记录
* 新增裂变任务完成记录
*/
*/
@ApiOperation
(
value
=
"新增裂变任务完成记录"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增裂变任务完成记录"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:add')")
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
WeTaskFissionRecord
weTaskFissionRecord
)
{
public
AjaxResult
add
(
@RequestBody
WeTaskFissionRecord
weTaskFissionRecord
)
{
...
@@ -79,7 +79,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -79,7 +79,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 修改裂变任务完成记录
* 修改裂变任务完成记录
*/
*/
@ApiOperation
(
value
=
"修改裂变任务完成记录"
,
httpMethod
=
"PUT"
)
@ApiOperation
(
value
=
"修改裂变任务完成记录"
,
httpMethod
=
"PUT"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:edit')")
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/edit"
)
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionRecord
weTaskFissionRecord
)
{
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionRecord
weTaskFissionRecord
)
{
...
@@ -90,7 +90,7 @@ public class WeTaskFissionRecordController extends BaseController {
...
@@ -90,7 +90,7 @@ public class WeTaskFissionRecordController extends BaseController {
* 删除裂变任务完成记录
* 删除裂变任务完成记录
*/
*/
@ApiOperation
(
value
=
"删除裂变任务完成记录"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"删除裂变任务完成记录"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:record:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:record:remove')")
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"裂变任务完成记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionRewardController.java
View file @
68ab9cc
...
@@ -36,7 +36,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -36,7 +36,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 查询任务裂变奖励列表
* 查询任务裂变奖励列表
*/
*/
@ApiOperation
(
value
=
"查询任务裂变奖励列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询任务裂变奖励列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeTaskFissionReward
weTaskFissionReward
)
{
public
TableDataInfo
list
(
WeTaskFissionReward
weTaskFissionReward
)
{
startPage
();
startPage
();
...
@@ -48,7 +48,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -48,7 +48,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 导出任务裂变奖励列表
* 导出任务裂变奖励列表
*/
*/
@ApiOperation
(
value
=
"导出任务裂变奖励列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"导出任务裂变奖励列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:export')")
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeTaskFissionReward
weTaskFissionReward
)
{
public
AjaxResult
export
(
WeTaskFissionReward
weTaskFissionReward
)
{
...
@@ -61,7 +61,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -61,7 +61,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 获取任务裂变奖励详细信息
* 获取任务裂变奖励详细信息
*/
*/
@ApiOperation
(
value
=
"获取任务裂变奖励详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取任务裂变奖励详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weTaskFissionRewardService
.
selectWeTaskFissionRewardById
(
id
));
return
AjaxResult
.
success
(
weTaskFissionRewardService
.
selectWeTaskFissionRewardById
(
id
));
...
@@ -71,7 +71,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -71,7 +71,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 新增任务裂变奖励
* 新增任务裂变奖励
*/
*/
@ApiOperation
(
value
=
"新增任务裂变奖励"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增任务裂变奖励"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:add')")
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
WeTaskFissionReward
weTaskFissionReward
)
{
public
AjaxResult
add
(
@RequestBody
WeTaskFissionReward
weTaskFissionReward
)
{
...
@@ -82,7 +82,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -82,7 +82,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 修改任务裂变奖励
* 修改任务裂变奖励
*/
*/
@ApiOperation
(
value
=
"修改任务裂变奖励"
,
httpMethod
=
"PUT"
)
@ApiOperation
(
value
=
"修改任务裂变奖励"
,
httpMethod
=
"PUT"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:edit')")
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"edit"
)
@PutMapping
(
"edit"
)
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionReward
weTaskFissionReward
)
{
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionReward
weTaskFissionReward
)
{
...
@@ -93,7 +93,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -93,7 +93,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 删除任务裂变奖励
* 删除任务裂变奖励
*/
*/
@ApiOperation
(
value
=
"删除任务裂变奖励"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"删除任务裂变奖励"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:reward:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:reward:remove')")
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"任务裂变奖励"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
...
@@ -105,7 +105,7 @@ public class WeTaskFissionRewardController extends BaseController {
...
@@ -105,7 +105,7 @@ public class WeTaskFissionRewardController extends BaseController {
* 根据微信用户id和任务id获取任务裂变奖励详细信息
* 根据微信用户id和任务id获取任务裂变奖励详细信息
*/
*/
@ApiOperation
(
value
=
"根据微信用户id和任务id获取任务裂变奖励详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"根据微信用户id和任务id获取任务裂变奖励详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:getRewardByFissionId:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:getRewardByFissionId:query')")
@GetMapping
(
value
=
"/getRewardByFissionId/{fissionId}/{eid}"
)
@GetMapping
(
value
=
"/getRewardByFissionId/{fissionId}/{eid}"
)
public
AjaxResult
<
WeTaskFissionRewardVo
>
getRewardByFissionId
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"fissionId"
)
String
fissionId
public
AjaxResult
<
WeTaskFissionRewardVo
>
getRewardByFissionId
(
@ApiParam
(
"任务id"
)
@PathVariable
(
"fissionId"
)
String
fissionId
,
@PathVariable
(
"eid"
)
@ApiParam
(
"客户id"
)
String
eid
)
{
,
@PathVariable
(
"eid"
)
@ApiParam
(
"客户id"
)
String
eid
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionStaffController.java
View file @
68ab9cc
...
@@ -33,7 +33,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -33,7 +33,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 查询裂变任务员工列列表
* 查询裂变任务员工列列表
*/
*/
@ApiOperation
(
value
=
"查询裂变任务员工列列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"查询裂变任务员工列列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:list')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
WeTaskFissionStaff
weTaskFissionStaff
)
{
public
TableDataInfo
list
(
WeTaskFissionStaff
weTaskFissionStaff
)
{
startPage
();
startPage
();
...
@@ -45,7 +45,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -45,7 +45,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 导出裂变任务员工列列表
* 导出裂变任务员工列列表
*/
*/
@ApiOperation
(
value
=
"导出裂变任务员工列列表"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"导出裂变任务员工列列表"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:export')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:export')")
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
WeTaskFissionStaff
weTaskFissionStaff
)
{
public
AjaxResult
export
(
WeTaskFissionStaff
weTaskFissionStaff
)
{
...
@@ -58,7 +58,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -58,7 +58,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 获取裂变任务员工列详细信息
* 获取裂变任务员工列详细信息
*/
*/
@ApiOperation
(
value
=
"获取裂变任务员工列详细信息"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"获取裂变任务员工列详细信息"
,
httpMethod
=
"GET"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:query')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:query')")
@GetMapping
(
value
=
"/{id}"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
weTaskFissionStaffService
.
selectWeTaskFissionStaffById
(
id
));
return
AjaxResult
.
success
(
weTaskFissionStaffService
.
selectWeTaskFissionStaffById
(
id
));
...
@@ -68,7 +68,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -68,7 +68,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 新增裂变任务员工列
* 新增裂变任务员工列
*/
*/
@ApiOperation
(
value
=
"新增裂变任务员工列"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"新增裂变任务员工列"
,
httpMethod
=
"POST"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:add')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:add')")
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
AjaxResult
add
(
@RequestBody
WeTaskFissionStaff
weTaskFissionStaff
)
{
public
AjaxResult
add
(
@RequestBody
WeTaskFissionStaff
weTaskFissionStaff
)
{
...
@@ -79,7 +79,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -79,7 +79,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 修改裂变任务员工列
* 修改裂变任务员工列
*/
*/
@ApiOperation
(
value
=
"修改裂变任务员工列"
,
httpMethod
=
"PUT"
)
@ApiOperation
(
value
=
"修改裂变任务员工列"
,
httpMethod
=
"PUT"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:edit')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:edit')")
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/edit"
)
@PutMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionStaff
weTaskFissionStaff
)
{
public
AjaxResult
edit
(
@RequestBody
WeTaskFissionStaff
weTaskFissionStaff
)
{
...
@@ -90,7 +90,7 @@ public class WeTaskFissionStaffController extends BaseController {
...
@@ -90,7 +90,7 @@ public class WeTaskFissionStaffController extends BaseController {
* 删除裂变任务员工列
* 删除裂变任务员工列
*/
*/
@ApiOperation
(
value
=
"删除裂变任务员工列"
,
httpMethod
=
"DELETE"
)
@ApiOperation
(
value
=
"删除裂变任务员工列"
,
httpMethod
=
"DELETE"
)
@PreAuthorize
(
"@ss.hasPermi('wecom:staff:remove')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:staff:remove')")
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"裂变任务员工列"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/delete/{ids}"
)
@DeleteMapping
(
"/delete/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeUserController.java
View file @
68ab9cc
...
@@ -41,7 +41,7 @@ public class WeUserController extends BaseController {
...
@@ -41,7 +41,7 @@ public class WeUserController extends BaseController {
/**
/**
* 查询通讯录相关客户列表
* 查询通讯录相关客户列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:query')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:query')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@ApiOperation
(
"获取通讯录人员列表"
)
@ApiOperation
(
"获取通讯录人员列表"
)
public
TableDataInfo
list
(
WeUser
weUser
)
public
TableDataInfo
list
(
WeUser
weUser
)
...
@@ -57,7 +57,7 @@ public class WeUserController extends BaseController {
...
@@ -57,7 +57,7 @@ public class WeUserController extends BaseController {
/**
/**
* 获取通讯录相关客户详细信息
* 获取通讯录相关客户详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:view')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:view')")
@GetMapping
(
value
=
"/{userId}"
)
@GetMapping
(
value
=
"/{userId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"userId"
)
String
userId
)
public
AjaxResult
getInfo
(
@PathVariable
(
"userId"
)
String
userId
)
{
{
...
@@ -67,7 +67,7 @@ public class WeUserController extends BaseController {
...
@@ -67,7 +67,7 @@ public class WeUserController extends BaseController {
/**
/**
* 新增通讯录相关客户
* 新增通讯录相关客户
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:addMember')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:addMember')")
@Log
(
title
=
"通讯录相关客户"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"通讯录相关客户"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
@ApiOperation
(
"新增通讯录客户"
)
@ApiOperation
(
"新增通讯录客户"
)
...
@@ -80,7 +80,7 @@ public class WeUserController extends BaseController {
...
@@ -80,7 +80,7 @@ public class WeUserController extends BaseController {
/**
/**
* 修改通讯录相关客户
* 修改通讯录相关客户
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:edit')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:edit')")
@Log
(
title
=
"更新通讯录客户"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"更新通讯录客户"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
@ApiOperation
(
"更新通讯录客户"
)
@ApiOperation
(
"更新通讯录客户"
)
...
@@ -96,7 +96,7 @@ public class WeUserController extends BaseController {
...
@@ -96,7 +96,7 @@ public class WeUserController extends BaseController {
* @param weUser
* @param weUser
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:forbidden')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:forbidden')")
@Log
(
title
=
"启用禁用用户"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"启用禁用用户"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
(
"/startOrStop"
)
@PutMapping
(
"/startOrStop"
)
@ApiOperation
(
"是否启用(1表示启用成员,0表示禁用成员)"
)
@ApiOperation
(
"是否启用(1表示启用成员,0表示禁用成员)"
)
...
@@ -113,7 +113,7 @@ public class WeUserController extends BaseController {
...
@@ -113,7 +113,7 @@ public class WeUserController extends BaseController {
* @param weLeaveUserVo
* @param weLeaveUserVo
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:dimission:filter')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:dimission:filter')")
@GetMapping
({
"/leaveUserAllocateList"
})
@GetMapping
({
"/leaveUserAllocateList"
})
public
TableDataInfo
leaveUserAllocateList
(
WeLeaveUserVo
weLeaveUserVo
)
{
public
TableDataInfo
leaveUserAllocateList
(
WeLeaveUserVo
weLeaveUserVo
)
{
startPage
();
startPage
();
...
@@ -129,7 +129,7 @@ public class WeUserController extends BaseController {
...
@@ -129,7 +129,7 @@ public class WeUserController extends BaseController {
* @param weLeaveUserVo
* @param weLeaveUserVo
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:dimission:query')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:dimission:query')")
@GetMapping
({
"/leaveUserNoAllocateList"
})
@GetMapping
({
"/leaveUserNoAllocateList"
})
public
TableDataInfo
leaveUserNoAllocateList
(
WeLeaveUserVo
weLeaveUserVo
)
{
public
TableDataInfo
leaveUserNoAllocateList
(
WeLeaveUserVo
weLeaveUserVo
)
{
startPage
();
startPage
();
...
@@ -145,7 +145,7 @@ public class WeUserController extends BaseController {
...
@@ -145,7 +145,7 @@ public class WeUserController extends BaseController {
* @param weLeaveUserInfoAllocateVo
* @param weLeaveUserInfoAllocateVo
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('customerManage:dimission:allocate')"
)
//
@PreAuthorize("@ss.hasPermi('customerManage:dimission:allocate')")
@PutMapping
({
"/allocateLeaveUserAboutData"
})
@PutMapping
({
"/allocateLeaveUserAboutData"
})
public
AjaxResult
allocateLeaveUserAboutData
(
@RequestBody
WeLeaveUserInfoAllocateVo
weLeaveUserInfoAllocateVo
)
{
public
AjaxResult
allocateLeaveUserAboutData
(
@RequestBody
WeLeaveUserInfoAllocateVo
weLeaveUserInfoAllocateVo
)
{
...
@@ -159,7 +159,7 @@ public class WeUserController extends BaseController {
...
@@ -159,7 +159,7 @@ public class WeUserController extends BaseController {
* 同步成员
* 同步成员
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:sync')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:sync')")
@GetMapping
({
"/synchWeUser"
})
@GetMapping
({
"/synchWeUser"
})
public
AjaxResult
synchWeUser
(){
public
AjaxResult
synchWeUser
(){
...
@@ -174,7 +174,7 @@ public class WeUserController extends BaseController {
...
@@ -174,7 +174,7 @@ public class WeUserController extends BaseController {
* 删除用户
* 删除用户
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('contacts:organization:removeMember')"
)
//
@PreAuthorize("@ss.hasPermi('contacts:organization:removeMember')")
@DeleteMapping
({
"/{ids}"
})
@DeleteMapping
({
"/{ids}"
})
public
AjaxResult
deleteUser
(
@PathVariable
String
[]
ids
){
public
AjaxResult
deleteUser
(
@PathVariable
String
[]
ids
){
...
@@ -191,7 +191,7 @@ public class WeUserController extends BaseController {
...
@@ -191,7 +191,7 @@ public class WeUserController extends BaseController {
* @param weAllocateCustomersVo
* @param weAllocateCustomersVo
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:user:getAllocateCustomers')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:user:getAllocateCustomers')")
@GetMapping
({
"/getAllocateCustomers"
})
@GetMapping
({
"/getAllocateCustomers"
})
public
TableDataInfo
getAllocateCustomers
(
WeAllocateCustomersVo
weAllocateCustomersVo
){
public
TableDataInfo
getAllocateCustomers
(
WeAllocateCustomersVo
weAllocateCustomersVo
){
startPage
();
startPage
();
...
@@ -206,7 +206,7 @@ public class WeUserController extends BaseController {
...
@@ -206,7 +206,7 @@ public class WeUserController extends BaseController {
* @param weAllocateGroupsVo
* @param weAllocateGroupsVo
* @return
* @return
*/
*/
@PreAuthorize
(
"@ss.hasPermi('wecom:user:getAllocateGroups')"
)
//
@PreAuthorize("@ss.hasPermi('wecom:user:getAllocateGroups')")
@GetMapping
({
"/getAllocateGroups"
})
@GetMapping
({
"/getAllocateGroups"
})
public
TableDataInfo
getAllocateGroups
(
WeAllocateGroupsVo
weAllocateGroupsVo
){
public
TableDataInfo
getAllocateGroups
(
WeAllocateGroupsVo
weAllocateGroupsVo
){
startPage
();
startPage
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment