mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-02 15:36:40 +00:00
35 lines
852 B
Java
35 lines
852 B
Java
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());
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|