package com.java2nb.novel.controller; import com.java2nb.novel.core.bean.ResultBean; import com.java2nb.novel.service.FriendLinkService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author 11797 */ @RequestMapping("friendLink") @RestController @Slf4j @RequiredArgsConstructor public class FriendLinkController { private final FriendLinkService friendLinkService; /** * 查询首页友情链接 * */ @GetMapping("listIndexLink") public ResultBean listIndexLink(){ return ResultBean.ok(friendLinkService.listIndexLink()); } }