| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IMessageService iMessageService; |
| | | @Autowired |
| | | @Resource |
| | | private UmsAdminMapper umsAdminMapper; |
| | | |
| | | @ApiOperation(value = "发送消息") |
| | |
| | | message.setCreateUser(user.getUserId()); |
| | | message.setCreateTime(new Date()); |
| | | message.setTargetFrom(umsAdminMapper.selectById(user.getUserId()).getUsername()); |
| | | message.setIsView(0); |
| | | return CommonResult.success(iMessageService.save(message)); |
| | | } |
| | | |