Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e860e2b4
authored
Dec 19, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成基本开发
1 parent
4661b4c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
src/main/java/com/glsx/controller/IceOpenApiController.java
src/main/java/com/glsx/controller/IceOpenApiController.java
View file @
e860e2b
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
cn.com.glsx.openplatform.service.DeviceMgrService
;
import
cn.com.glsx.openplatform.service.IceOpenApiService
;
import
cn.com.glsx.openplatform.service.IceOpenApiService
;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.com.glsx.openplatform.vo.R
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -9,7 +8,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -9,7 +8,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@RestController
@RestController
...
@@ -22,7 +20,7 @@ public class IceOpenApiController {
...
@@ -22,7 +20,7 @@ public class IceOpenApiController {
@RequestMapping
(
value
=
"/getDataView"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getDataView"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getUserInfo
(
int
userId
,
int
deviceType
)
{
public
R
getUserInfo
(
int
userId
,
int
deviceType
)
{
Map
<
String
,
Integer
>
dataViewMap
=
iceOpenApiService
.
getDataView
(
userId
);
Map
<
String
,
Integer
>
dataViewMap
=
iceOpenApiService
.
getDataView
(
userId
,
deviceType
);
return
R
.
ok
().
data
(
dataViewMap
);
return
R
.
ok
().
data
(
dataViewMap
);
}
}
}
}
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