Commit 14de6597 authored by AfirSraftGarrier's avatar AfirSraftGarrier

上报错误方法改变

parent 4429867a
...@@ -4,7 +4,11 @@ import io.swagger.annotations.Api; ...@@ -4,7 +4,11 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import iot.sixiang.license.model.BaseResult; import iot.sixiang.license.model.BaseResult;
import iot.sixiang.license.model.ResResult; import iot.sixiang.license.model.ResResult;
import iot.sixiang.license.model.dto.*; import iot.sixiang.license.model.dto.GetTerminalDeviceTokenDTO;
import iot.sixiang.license.model.dto.PlatFormBindDTO;
import iot.sixiang.license.model.dto.ReportErrorMsgDTO;
import iot.sixiang.license.model.dto.TerminalDevieBindDTO;
import iot.sixiang.license.model.dto.TerminalDevieUnBindDTO;
import iot.sixiang.license.service.TerminalDeviceService; import iot.sixiang.license.service.TerminalDeviceService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -22,23 +26,23 @@ public class TerminalDeviceController { ...@@ -22,23 +26,23 @@ public class TerminalDeviceController {
@Autowired @Autowired
TerminalDeviceService terminalDeviceService; TerminalDeviceService terminalDeviceService;
// @GetMapping("/get_token") @GetMapping("/get_token")
// @ApiOperation(value = "终端设备获取token", notes = "终端设备获取token") @ApiOperation(value = "终端设备获取token", notes = "终端设备获取token")
// public ResResult getToken(GetTerminalDeviceTokenDTO getTerminalDeviceTokenDTO) { public ResResult getToken(GetTerminalDeviceTokenDTO getTerminalDeviceTokenDTO) {
// return terminalDeviceService.getToken(getTerminalDeviceTokenDTO); return terminalDeviceService.getToken(getTerminalDeviceTokenDTO);
// } }
// @PostMapping("/report_error_msg") @PostMapping("/report_error_msg")
// @ApiOperation(value = "终端设备上报错误信息", notes = "终端设备上报错误信息") @ApiOperation(value = "终端设备上报错误信息", notes = "终端设备上报错误信息")
// public BaseResult reportErrorMsg(@RequestBody List<ReportErrorMsgDTO> reportErrorMsgDTO) { public BaseResult reportErrorMsg(@RequestBody List<ReportErrorMsgDTO> reportErrorMsgDTO) {
// return terminalDeviceService.reportErrorMsg(reportErrorMsgDTO); return terminalDeviceService.reportErrorMsg(reportErrorMsgDTO);
// } }
// @PostMapping("/bind") @PostMapping("/bind")
// @ApiOperation(value = "终端设备绑定接口", notes = "终端设备绑定接口") @ApiOperation(value = "终端设备绑定接口", notes = "终端设备绑定接口")
// public BaseResult terminalDevieBind(@RequestBody TerminalDevieBindDTO terminalDevieBindDTO) { public BaseResult terminalDevieBind(@RequestBody TerminalDevieBindDTO terminalDevieBindDTO) {
// return terminalDeviceService.terminalDeviceBind(terminalDevieBindDTO); return terminalDeviceService.terminalDeviceBind(terminalDevieBindDTO);
// } }
@PostMapping("/unbind") @PostMapping("/unbind")
@ApiOperation(value = "终端设备解绑接口", notes = "终端设备解绑接口") @ApiOperation(value = "终端设备解绑接口", notes = "终端设备解绑接口")
...@@ -46,11 +50,11 @@ public class TerminalDeviceController { ...@@ -46,11 +50,11 @@ public class TerminalDeviceController {
return terminalDeviceService.terminalDeviceunBind(terminalDevieUnBindDTO); return terminalDeviceService.terminalDeviceunBind(terminalDevieUnBindDTO);
} }
// @GetMapping("/get_bind_status") @GetMapping("/get_bind_status")
// @ApiOperation(value = "获取终端设备绑定状态接口", notes = "获取终端设备绑定状态接口") @ApiOperation(value = "获取终端设备绑定状态接口", notes = "获取终端设备绑定状态接口")
// public ResResult getBindStatus(TerminalDevieUnBindDTO terminalDevieUnBindDTO) { public ResResult getBindStatus(TerminalDevieUnBindDTO terminalDevieUnBindDTO) {
// return terminalDeviceService.getBindStatus(terminalDevieUnBindDTO); return terminalDeviceService.getBindStatus(terminalDevieUnBindDTO);
// } }
@PostMapping("/v2/bind") @PostMapping("/v2/bind")
@ApiOperation(value = "平台绑定设备sn接口", notes = "平台绑定设备sn接口") @ApiOperation(value = "平台绑定设备sn接口", notes = "平台绑定设备sn接口")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment