| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | //设置创建人 |
| | | message.setCreateUser(user.getUserId()); |
| | | return CommonResult.success(iMessageService.sendMessage(message)); |
| | | iMessageService.sendMessage(message); |
| | | return CommonResult.success("send success"); |
| | | } |
| | | |
| | | |
| | |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | //设置创建人 |
| | | message.setCreateUser(user.getUserId()); |
| | | return CommonResult.success(iMessageService.sendMessageByPhone(message)); |
| | | iMessageService.sendMessageByPhone(message); |
| | | return CommonResult.success("send success"); |
| | | } |
| | | |
| | | |