| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.mapper.InformationNotificationMapper; |
| | | import com.yuanchu.mom.pojo.InformationNotification; |
| | | import com.yuanchu.mom.pojo.InformationNotificationDto; |
| | | import com.yuanchu.mom.service.InformationNotificationService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.stereotype.Controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | informationNotificationService.triggerModificationStatusToRead(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "消息通知-获取首页四种消息数量") |
| | | @GetMapping("getNumberFourTypesMessagesHomePage") |
| | | @ValueAuth |
| | | public Result<?> getNumberFourTypesMessagesHomePage() { |
| | | Map<String, Object> data = informationNotificationService.getNumberFourTypesMessagesHomePage(); |
| | | return Result.success(data); |
| | | } |
| | | } |