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); } }