package com.yunniu.farming.app;


import com.yunniu.farming.config.ReturnResult;
import com.yunniu.farming.webadmin.model.NoticeRead;
import com.yunniu.farming.webadmin.service.impl.NoticeReadServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
@RequestMapping("/app/noticeread")
public class NoticeReadAppController {
	
	@Autowired
	private NoticeReadServiceImpl service;
	
	/**
	 * 新增 编辑方法
	 * @param item
	 * @return
	 */
	@RequestMapping(value = "/add", method = RequestMethod.POST)
	@ResponseBody
	public ReturnResult add(@RequestBody NoticeRead item){
		//调用service 方法 返回结果
		return this.service.insertSelective(item);
	}

}
