一体化平台对接服务调整
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.tobacco.mp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.tobacco.mp.annotation.PassOperation;
|
||||
import com.tobacco.mp.dto.PlatformMessageDTO;
|
||||
import com.tobacco.mp.dto.PlatformNoticeDTO;
|
||||
import com.tobacco.mp.dto.PlatformTaskDTO;
|
||||
@ -28,6 +29,7 @@ public class PlatformController {
|
||||
PlatformMessageService messageService;
|
||||
|
||||
// 查询一体化平台的用户列表
|
||||
@PassOperation
|
||||
@GetMapping(value = "/getUserList")
|
||||
public ResponseResult<Void> getUserList() {
|
||||
userService.getUserList();
|
||||
@ -35,18 +37,21 @@ public class PlatformController {
|
||||
}
|
||||
|
||||
// 查询一体化平台的用户ID
|
||||
@PassOperation
|
||||
@GetMapping(value = "/getUserIdByAccount")
|
||||
public ResponseResult<String> getUserIdByAccount(@RequestParam String loginName) {
|
||||
return ResponseResult.success(userService.getUserIdByAccount(loginName));
|
||||
}
|
||||
|
||||
// 一体化平台身份令牌认证
|
||||
@PassOperation
|
||||
@GetMapping(value = "/tokenAccess")
|
||||
public ResponseResult<JSONObject> tokenAccess(@RequestParam String token) {
|
||||
return ResponseResult.success(userService.tokenAccess(token));
|
||||
}
|
||||
|
||||
// 向一体化平台发送消息
|
||||
@PassOperation
|
||||
@PostMapping(value = "/sendMessage")
|
||||
public ResponseResult<Void> sendMessage(@RequestBody PlatformMessageDTO dataDTO) {
|
||||
messageService.sendMessage(dataDTO);
|
||||
@ -54,6 +59,7 @@ public class PlatformController {
|
||||
}
|
||||
|
||||
// 向一体化平台发送通知/公告
|
||||
@PassOperation
|
||||
@PostMapping(value = "/sendNotice")
|
||||
public ResponseResult<Void> sendNotice(@RequestBody PlatformNoticeDTO dataDTO) {
|
||||
messageService.sendNotice(dataDTO);
|
||||
@ -61,6 +67,7 @@ public class PlatformController {
|
||||
}
|
||||
|
||||
// 向一体化平台发送待办
|
||||
@PassOperation
|
||||
@PostMapping(value = "/sendToDo")
|
||||
public ResponseResult<Void> sendToDo(@RequestBody PlatformTaskDTO taskDTO) {
|
||||
messageService.sendToDo(taskDTO);
|
||||
@ -68,6 +75,7 @@ public class PlatformController {
|
||||
}
|
||||
|
||||
// 向一体化平台发送待办处置信息
|
||||
@PassOperation
|
||||
@PostMapping(value = "/sendHandleToDo")
|
||||
public ResponseResult<Void> sendHandleToDo(@RequestBody PlatformTaskHandleDTO handleDTO) {
|
||||
messageService.sendHandleToDo(handleDTO);
|
||||
|
||||
Reference in New Issue
Block a user