package com.controller.admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import com.po.Notice;
import com.service.admin.AdminNoticeService;
@Controller
@RequestMapping("/adminNotice")
public class AdminNoticeController extends BaseController{
@Autowired
private AdminNoticeService adminNoticeService;
@RequestMapping("/toAddNotice")
public String toAddNotice(Model model) {
model.addAttribute("notice", new Notice());
return "admin/addNotice";
}
@RequestMapping("/addNotice")
public String addNotice(@ModelAttribute Notice notice) {
return adminNoticeService.addNotice(notice);
}
@RequestMapping("/deleteNoticeSelect")
public String deleteNoticeSelect(Model model) {
return adminNoticeService.deleteNoticeSelect(model);
}
@RequestMapping("/selectANotice")
public String selectANotice(Model model, Integer id) {
return adminNoticeService.selectANotice(model, id);
}
@RequestMapping("/deleteNotice")
public String deleteNotice(Integer id) {
return adminNoticeService.deleteNotice(id);
}
}
最近下载更多
奋斗的小蚂蚁 LV17
9月18日
taoshen95 LV16
2024年12月21日
lyt010628 LV4
2024年7月9日
ziwng5211314 LV9
2024年4月17日
xiongM LV4
2024年4月1日
mds123456 LV2
2023年11月5日
wuying8208 LV15
2023年9月3日
lilily1119 LV4
2023年4月28日
answer123 LV8
2023年3月28日
jgkghj LV2
2023年3月20日

最近浏览