whycxzp
2022-12-29 69d06a50a3bb3ede0bbf86752c147f9a7f44008b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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);
    }
}