package com.sf.controller; import com.sf.dto.HomeBookRespDto; import com.sf.po.BookInfo; import com.sf.po.HomeBook; import com.sf.resp.RestResp; import com.sf.service.IBookInfoService; import com.sf.service.IHomeBookService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.stereotype.Controller; import java.util.ArrayList; import java.util.List; /** *
* 小说推荐 前端控制器 *
* * @author Qing * @since 2024-01-29 */ //@CrossOrigin(originPatterns = "*", allowCredentials = "true") @RestController @RequestMapping("/api/front/home") public class HomeBookController { @Autowired private IHomeBookService homeBookService; // http://127.0.0.1:8888/api/front/home/books @GetMapping("/books") // @ResponseBody public RestResp