package com.uas.platform.b2b.mobile.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.uas.platform.b2b.mobile.service.NoticeCenterService;

/**
 * 通知中心
 * 
 * @author hejq
 * @time 创建时间：2017年2月21日
 */
@Controller("mobile.NoticeCenterController")
@RequestMapping("/mobile/noticeCenter")
public class NoticeCenterController {
	
	@Autowired
	private NoticeCenterService noticeCenterService;

	/**
	 * 得到所有通知
	 * 
	 * @param pageNumber
	 * @param pageSize
	 * @param enuu
	 * @return
	 */
	@RequestMapping(value = "/getAllNotices", method = RequestMethod.GET)
	@ResponseBody
	private ModelMap getAllNoticesByEnuu(Integer pageNumber, Integer pageSize, Long enuu) {
		return noticeCenterService.getAllNoticesByEnuu(pageNumber, pageSize, enuu);
	}

}
