| New file |
| | |
| | | package com.zy.acs.manager.core.controller; |
| | | |
| | | import com.zy.acs.common.utils.News; |
| | | import com.zy.acs.framework.common.R; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * Created by vincent on 2022/12/28 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/api/news") |
| | | public class NewsController { |
| | | |
| | | @RequestMapping("/print") |
| | | public synchronized R print(){ |
| | | return R.ok().add(News.print()); |
| | | } |
| | | |
| | | } |