lxw
2022-05-16 df770f80b2768f82150b30c98d693e8e8b8f57bb
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
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解密后的)")
    @PostMapping("getComInfo")
    public Response getComInfo(@RequestBody ComInfo cInfo){
        return service.getComInfo(cInfo);
    }
}