New file |
| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.FileDirPath; |
| | | import com.whyc.dto.Response; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.io.File; |
| | | |
| | | @RestController |
| | | @Api(tags = "Help") |
| | | @RequestMapping("help") |
| | | public class HelpController { |
| | | |
| | | @ApiOperation("说明书") |
| | | @GetMapping("getInstruction") |
| | | public Response getInstruction(){ |
| | | return new Response().set(1,true); |
| | | } |
| | | |
| | | @ApiOperation("操作视频") |
| | | @GetMapping("getVideo") |
| | | public Response getVideo(){ |
| | | String url= "res_file/QR.jpg"; |
| | | return new Response().set(1,url); |
| | | } |
| | | |
| | | @ApiOperation("升级") |
| | | @GetMapping("getVersion") |
| | | public Response getVersion(){ |
| | | return new Response().set(1,true); |
| | | } |
| | | |
| | | @ApiOperation("联系支持") |
| | | @GetMapping("getHelp") |
| | | public Response getHelp(){ |
| | | return new Response().set(1,true); |
| | | } |
| | | } |