|
|
@ -0,0 +1,39 @@ |
|
|
|
package org.jeecg.modules.user; |
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.jeecg.common.api.dto.message.MessageDTO; |
|
|
|
import org.jeecg.modules.system.service.ISysUserService; |
|
|
|
import org.jeecg.modules.system.service.impl.SysBaseApiImpl; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 服务化 system模块 对外接口请求类 |
|
|
|
* @author: jeecg-boot |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("/user/") |
|
|
|
public class UserController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SysBaseApiImpl sysBaseApi; |
|
|
|
@Autowired |
|
|
|
private ISysUserService sysUserService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 发送系统消息 |
|
|
|
* @param message 使用构造器赋值参数 如果不设置category(消息类型)则默认为2 发送系统消息 |
|
|
|
*/ |
|
|
|
@PostMapping("/sendSysAnnouncement") |
|
|
|
public void sendSysAnnouncement(@RequestBody MessageDTO message){ |
|
|
|
sysBaseApi.sendSysAnnouncement(message); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |