Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengtianlai3
ioc_sixiang_license
Commits
14de6597
Commit
14de6597
authored
Dec 09, 2022
by
AfirSraftGarrier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上报错误方法改变
parent
4429867a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
TerminalDeviceController.java
.../sixiang/license/controller/TerminalDeviceController.java
+25
-21
No files found.
license/src/main/java/iot/sixiang/license/controller/TerminalDeviceController.java
View file @
14de6597
...
...
@@ -4,7 +4,11 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
iot.sixiang.license.model.BaseResult
;
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
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -22,23 +26,23 @@ public class TerminalDeviceController {
@Autowired
TerminalDeviceService
terminalDeviceService
;
//
@GetMapping("/get_token")
//
@ApiOperation(value = "终端设备获取token", notes = "终端设备获取token")
//
public ResResult getToken(GetTerminalDeviceTokenDTO getTerminalDeviceTokenDTO) {
//
return terminalDeviceService.getToken(getTerminalDeviceTokenDTO);
//
}
@GetMapping
(
"/get_token"
)
@ApiOperation
(
value
=
"终端设备获取token"
,
notes
=
"终端设备获取token"
)
public
ResResult
getToken
(
GetTerminalDeviceTokenDTO
getTerminalDeviceTokenDTO
)
{
return
terminalDeviceService
.
getToken
(
getTerminalDeviceTokenDTO
);
}
//
@PostMapping("/report_error_msg")
//
@ApiOperation(value = "终端设备上报错误信息", notes = "终端设备上报错误信息")
//
public BaseResult reportErrorMsg(@RequestBody List<ReportErrorMsgDTO> reportErrorMsgDTO) {
//
return terminalDeviceService.reportErrorMsg(reportErrorMsgDTO);
//
}
@PostMapping
(
"/report_error_msg"
)
@ApiOperation
(
value
=
"终端设备上报错误信息"
,
notes
=
"终端设备上报错误信息"
)
public
BaseResult
reportErrorMsg
(
@RequestBody
List
<
ReportErrorMsgDTO
>
reportErrorMsgDTO
)
{
return
terminalDeviceService
.
reportErrorMsg
(
reportErrorMsgDTO
);
}
//
@PostMapping("/bind")
//
@ApiOperation(value = "终端设备绑定接口", notes = "终端设备绑定接口")
//
public BaseResult terminalDevieBind(@RequestBody TerminalDevieBindDTO terminalDevieBindDTO) {
//
return terminalDeviceService.terminalDeviceBind(terminalDevieBindDTO);
//
}
@PostMapping
(
"/bind"
)
@ApiOperation
(
value
=
"终端设备绑定接口"
,
notes
=
"终端设备绑定接口"
)
public
BaseResult
terminalDevieBind
(
@RequestBody
TerminalDevieBindDTO
terminalDevieBindDTO
)
{
return
terminalDeviceService
.
terminalDeviceBind
(
terminalDevieBindDTO
);
}
@PostMapping
(
"/unbind"
)
@ApiOperation
(
value
=
"终端设备解绑接口"
,
notes
=
"终端设备解绑接口"
)
...
...
@@ -46,11 +50,11 @@ public class TerminalDeviceController {
return
terminalDeviceService
.
terminalDeviceunBind
(
terminalDevieUnBindDTO
);
}
//
@GetMapping("/get_bind_status")
//
@ApiOperation(value = "获取终端设备绑定状态接口", notes = "获取终端设备绑定状态接口")
//
public ResResult getBindStatus(TerminalDevieUnBindDTO terminalDevieUnBindDTO) {
//
return terminalDeviceService.getBindStatus(terminalDevieUnBindDTO);
//
}
@GetMapping
(
"/get_bind_status"
)
@ApiOperation
(
value
=
"获取终端设备绑定状态接口"
,
notes
=
"获取终端设备绑定状态接口"
)
public
ResResult
getBindStatus
(
TerminalDevieUnBindDTO
terminalDevieUnBindDTO
)
{
return
terminalDeviceService
.
getBindStatus
(
terminalDevieUnBindDTO
);
}
@PostMapping
(
"/v2/bind"
)
@ApiOperation
(
value
=
"平台绑定设备sn接口"
,
notes
=
"平台绑定设备sn接口"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment