首页>代码>基于ssm框架的微信小程序图书管理系统>/图书管理系统pw/项目三 - 副本/StuBook5/src/com/client/controller/ApiBookTypeController.java
package com.client.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.client.utils.JsonResult;
import com.client.utils.JsonResultBuilder;
import com.pan.pojo.BookType;
import com.pan.service.BookTypeService;

@RestController
@RequestMapping("/api/bookType") 
public class ApiBookTypeController {
	
	@Resource BookTypeService bookTypeService;
	
	@RequestMapping(value="/listAll",method=RequestMethod.POST)
	public JsonResult list(String barcode,String bookName,@ModelAttribute("bookTypeObj") BookType bookTypeObj,String publishDate,Integer page,Integer rows, Model model, HttpServletRequest request,HttpServletResponse response) throws Exception{
		List<BookType> bookTypeList = bookTypeService.queryAllBookType(); 
		return JsonResultBuilder.ok(bookTypeList);
	}
}
最近下载更多
新哥新奇士橙  LV4 1月26日
zolscy  LV24 2024年11月27日
binzhuyou  LV2 2024年7月4日
hongdongdong  LV14 2024年6月23日
Xppasdf  LV3 2024年6月16日
努力学习的小朋友  LV3 2024年6月1日
15530067717  LV2 2024年5月25日
amayaT  LV5 2024年4月23日
ewan007  LV30 2024年3月4日
Lyj 329511  LV4 2023年10月11日
最近浏览更多
新哥新奇士橙  LV4 1月26日
ma406805131  LV19 2024年12月6日
asdxvfvfs 2024年12月3日
暂无贡献等级
zolscy  LV24 2024年11月27日
233002037  LV3 2024年10月20日
七梦辞  LV2 2024年10月13日
krispeng  LV14 2024年10月9日
coodeepblue 2024年10月8日
暂无贡献等级
fff2003  LV9 2024年9月20日
binzhuyou  LV2 2024年7月4日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友