Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
smartDevices-platform-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a235d4f8
authored
May 07, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码规范
1 parent
7b216df2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
src/main/java/cn/com/glsx/modules/controller/AqaraDeviceController.java
src/main/java/cn/com/glsx/modules/controller/AqaraDeviceController.java
View file @
a235d4f
...
@@ -27,27 +27,28 @@ public class AqaraDeviceController {
...
@@ -27,27 +27,28 @@ public class AqaraDeviceController {
@RequestMapping
(
value
=
"/bindKeyGet"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/bindKeyGet"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
@ApiOperation
(
value
=
"获取bindKey"
)
@ApiOperation
(
value
=
"获取bindKey"
)
public
R
bindKeyGet
(
@RequestParam
(
required
=
false
)
String
token
){
public
R
bindKeyGet
(
@RequestParam
(
required
=
false
)
String
token
)
{
return
aqaraDeviceService
.
bindKeyGet
(
token
);
return
aqaraDeviceService
.
bindKeyGet
(
token
);
}
}
@RequestMapping
(
value
=
"/subscriber"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/subscriber"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
@ApiOperation
(
value
=
"订阅资源"
)
@ApiOperation
(
value
=
"订阅资源"
)
public
R
subscriber
(
@RequestBody
String
data
,
String
token
)
{
public
R
subscriber
(
@RequestBody
String
data
,
String
token
)
{
return
aqaraDeviceService
.
subscriber
(
data
,
token
);
return
aqaraDeviceService
.
subscriber
(
data
,
token
);
}
}
@RequestMapping
(
value
=
"/unbind"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/unbind"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
@ApiOperation
(
value
=
"解绑设备"
)
@ApiOperation
(
value
=
"解绑设备"
)
public
R
unbind
(
String
deviceId
,
String
token
)
{
public
R
unbind
(
String
deviceId
,
String
token
)
{
return
aqaraDeviceService
.
unbind
(
deviceId
,
token
);
return
aqaraDeviceService
.
unbind
(
deviceId
,
token
);
}
}
@RequestMapping
(
value
=
"/subdeviceBindModel"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/subdeviceBindModel"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
@ApiOperation
(
value
=
"开启子设备配网模式"
)
@ApiOperation
(
value
=
"开启子设备配网模式"
)
public
R
subdeviceBindModel
(
String
deviceId
,
String
token
)
{
public
R
subdeviceBindModel
(
String
deviceId
,
String
token
)
{
return
aqaraDeviceService
.
subdeviceBindModel
(
deviceId
,
token
);
return
aqaraDeviceService
.
subdeviceBindModel
(
deviceId
,
token
);
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment