whycxzp
2022-05-17 0a206fc6c66c564aced22ad6b16f6f8be27e2fc7
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
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);
    }
}