Class NotificationController
java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<Notification, String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String>>
cn.herodotus.engine.web.api.servlet.AbstractWriteableController<Notification, String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String>>
cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController<Notification, String>
cn.herodotus.engine.rest.servlet.message.controller.NotificationController
- All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain, cn.herodotus.engine.core.definition.domain.Pagination, BindingController<Notification, String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String>>, PageController<Notification, String, cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String>>, PaginationController, cn.herodotus.engine.web.core.definition.Controller, Serializable
@RestController
@RequestMapping("/message/notification")
public class NotificationController
extends AbstractJpaWriteableController<Notification, String>
Description: 系统通知
- Author:
- : gengwei.zheng
- See Also:
- Date:
- : 2022/12/17 14:19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByCondition(@NotNull Integer pageNumber, @NotNull Integer pageSize, @NotBlank String userId, Integer category, Boolean read) cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String> cn.herodotus.engine.core.definition.domain.Result<Integer> setAllRead(String userId) Methods inherited from class AbstractJpaWriteableController
saveMethods inherited from class AbstractWriteableController
deleteMethods inherited from class AbstractReadableController
findByPageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BindingController
findAll, findByIdMethods inherited from interface cn.herodotus.engine.web.core.definition.Controller
result, result, result, result, result, result, resultMethods inherited from interface PageController
findByPage, findByPageMethods inherited from interface cn.herodotus.engine.core.definition.domain.Pagination
with, withMethods inherited from interface PaginationController
fromPage, fromSlice, resultFromPage, resultFromSlice
-
Constructor Details
-
NotificationController
-
-
Method Details
-
getService
public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<Notification, String> getService() -
findByCondition
@GetMapping("/condition") public cn.herodotus.engine.core.definition.domain.Result<Map<String,Object>> findByCondition(@NotNull @RequestParam("pageNumber") @NotNull Integer pageNumber, @NotNull @RequestParam("pageSize") @NotNull Integer pageSize, @NotBlank @RequestParam("userId") @NotBlank String userId, @RequestParam(value="category",required=false) Integer category, @RequestParam(value="read",required=false) Boolean read) -
setAllRead
-