| | |
| | | package com.mindskip.xzs.controller.admin; |
| | | |
| | | import com.mindskip.xzs.base.BaseApiController; |
| | | import com.mindskip.xzs.base.RestResponse; |
| | | import com.mindskip.xzs.domain.Notify; |
| | | import com.mindskip.xzs.domain.enums.NotifyRefType; |
| | |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/api/admin/notify") |
| | | public class NotifyController { |
| | | public class NotifyController extends BaseApiController { |
| | | |
| | | private final NotifyService notifyService; |
| | | |
| | |
| | | data.setStatus(status); |
| | | List<Integer> ids = notifies.stream().map(Notify::getId).collect(Collectors.toList()); |
| | | data.setIds(ids); |
| | | data.setRole(getCurrentUser().getRole()); |
| | | return RestResponse.ok(data); |
| | | } |
| | | |