com.quhaodian.notice.controller.rest.NotificationRestController Maven / Gradle / Ivy
package com.quhaodian.notice.controller.rest;
import com.quhaodian.discover.rest.base.ResponseObject;
import com.quhaodian.notice.rest.api.NotificationApi;
import com.quhaodian.notice.rest.domain.page.NotificationPage;
import com.quhaodian.notice.rest.domain.request.NotificationPageRequest;
import com.quhaodian.notice.rest.domain.request.NotificationReadRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/rest/sys")
@RestController
public class NotificationRestController {
@RequestMapping("/notification/page")
public NotificationPage page(NotificationPageRequest request) {
return api.page(request);
}
@RequestMapping("/notification/read")
public ResponseObject read(NotificationReadRequest request) {
return api.read(request);
}
@Autowired
private NotificationApi api;
}