lxw
2022-05-21 9058c7178cd9a7aece34b278b4c7bec488f95cc1
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
package com.whyc.controller;
 
import com.whyc.pojo.ComInfo;
import com.whyc.pojo.Response;
import com.whyc.service.ComInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "电脑硬件加密信息")
@RequestMapping("ComInfoController")
@RestController
public class ComInfoController {
    @Autowired
    private ComInfoService service;
 
    @ApiOperation("获取电脑cpu的ID和主板的序列号(rsa加密后的)")
    @GetMapping("getComInfoRSA")
    public Response getComInfoRSA(){
        return service.getComInfoRSA();
    }
 
    @ApiOperation("获取电脑cpu的ID和主板的序列号(rsa解密后的)")
    @GetMapping("getComInfo")
    public Response getComInfo(@RequestParam String serialNumberMixRSA){
        return service.getComInfo(serialNumberMixRSA);
    }
    @ApiOperation("监测后台是否启动")
    @GetMapping("getStart")
    public Response getStart(){
        return new Response().set(1);
    }
}