消息修改

This commit is contained in:
liangqitao
2021-12-17 12:03:02 +08:00
parent 70131799da
commit e1cbb4a629
2 changed files with 10 additions and 6 deletions
@@ -23,10 +23,15 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.BeanUtils;
import org.springframework.core.env.Environment;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@@ -65,8 +70,8 @@ public class SystemSendMessageController {
*/
@AutoLog(value = "发送站内消息",operateType = 2)
@ApiOperation(value="发送站内消息", notes="发送站内消息")
@PostMapping(value = "/sendAllUserMessage")
// @RequiresPermissions("system:dept:save")
@GetMapping(value = "/sendAllUserMessage")
@RequiresPermissions("template:add:systemNotifications")
@Transactional
public Result<?> sendAllUserMessage(@RequestParam("content") String content) {
List<PayContactsManagement> listPayContactsManagement = payContactsManagementService.list();