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 6c6a3d19
authored
Dec 18, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成基本开发
1 parent
02c17e9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
src/main/java/com/glsx/config/DubboConfig.java
src/main/java/com/glsx/controller/IceOpenApiController.java
src/main/java/com/glsx/config/DubboConfig.java
View file @
6c6a3d1
...
@@ -81,4 +81,9 @@ public class DubboConfig {
...
@@ -81,4 +81,9 @@ public class DubboConfig {
public
UserMgrService
userMgrService
()
{
public
UserMgrService
userMgrService
()
{
return
referenceBuilderFactory
.
builder
(
UserMgrService
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
return
referenceBuilderFactory
.
builder
(
UserMgrService
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
}
}
@Bean
public
IceOpenApiService
iceOpenApiService
()
{
return
referenceBuilderFactory
.
builder
(
IceOpenApiService
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
}
}
}
src/main/java/com/glsx/controller/IceOpenApiController.java
0 → 100644
View file @
6c6a3d1
package
com
.
glsx
.
controller
;
import
cn.com.glsx.openplatform.service.DeviceMgrService
;
import
cn.com.glsx.openplatform.service.IceOpenApiService
;
import
cn.com.glsx.openplatform.vo.R
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@RequestMapping
(
value
=
"/iceOpenApi"
)
public
class
IceOpenApiController
{
@Autowired
private
IceOpenApiService
iceOpenApiService
;
@RequestMapping
(
value
=
"/getDataView"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
R
getUserInfo
(
int
userId
)
{
Map
<
String
,
Integer
>
dataViewMap
=
iceOpenApiService
.
getDataView
(
userId
);
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