|
@ -8,6 +8,7 @@ import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
|
|
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.dto.IcNoticeDTO; |
|
|
import com.epmet.dto.IcNoticeDTO; |
|
@ -72,7 +73,7 @@ public class IcNoticeController { |
|
|
|
|
|
|
|
|
@PostMapping("sendNotice") |
|
|
@PostMapping("sendNotice") |
|
|
public Result sendNotice(@LoginUser TokenDto tokenDto, @RequestBody SendNoticeFormDTO formDTO) { |
|
|
public Result sendNotice(@LoginUser TokenDto tokenDto, @RequestBody SendNoticeFormDTO formDTO) { |
|
|
ValidatorUtils.validateEntity(formDTO, AddGroup.class); |
|
|
ValidatorUtils.validateEntity(formDTO, CustomerClientShowGroup.class); |
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
formDTO.setStaffId(tokenDto.getUserId()); |
|
|
formDTO.setStaffId(tokenDto.getUserId()); |
|
|
icNoticeService.sendNotice(formDTO); |
|
|
icNoticeService.sendNotice(formDTO); |
|
|