Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
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 35ba3dfb
authored
Dec 22, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改获取省市区地址接口和添加注释 yangll
1 parent
c86703c4
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
228 additions
and
9 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/model/Area.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/AdMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/ApiCallMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/ApiMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/AppDownloadMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/DeviceMgrService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IndexService.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/UserMgrService.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrServiceImpl.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/model/Area.java
View file @
35ba3df
...
@@ -73,4 +73,5 @@ public class Area implements Serializable {
...
@@ -73,4 +73,5 @@ public class Area implements Serializable {
public
void
setInitDate
(
Date
initDate
)
{
public
void
setInitDate
(
Date
initDate
)
{
this
.
initDate
=
initDate
;
this
.
initDate
=
initDate
;
}
}
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/AdMgrService.java
View file @
35ba3df
...
@@ -6,15 +6,36 @@ import cn.com.glsx.openplatform.vo.R;
...
@@ -6,15 +6,36 @@ import cn.com.glsx.openplatform.vo.R;
import
cn.hutool.db.Page
;
import
cn.hutool.db.Page
;
public
interface
AdMgrService
{
public
interface
AdMgrService
{
/**
* 获取广告管理列表分页信息
*
* @param page 分页查询参数
* @return R对象
*/
R
getAdMgrList
(
Page
page
);
R
getAdMgrList
(
Page
page
);
/**
* 插入广告信息
*
* @param ad 广告数据
* @return 改变的行数
*/
int
insertAd
(
PlatformAd
ad
);
int
insertAd
(
PlatformAd
ad
);
/**
* 更新广告数据
*
* @param ad 广告数据
* @return 更新行数
*/
int
updateAd
(
PlatformAd
ad
);
int
updateAd
(
PlatformAd
ad
);
/**
* 修改广告状态
*
* @param id id
* @param status 状态
* @return 修改的行数
*/
Integer
startandstop
(
Integer
id
,
Integer
status
);
Integer
startandstop
(
Integer
id
,
Integer
status
);
// int start(int id);
//
// int stop(int id);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/ApiCallMgrService.java
View file @
35ba3df
...
@@ -9,11 +9,33 @@ import java.util.List;
...
@@ -9,11 +9,33 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
public
interface
ApiCallMgrService
{
public
interface
ApiCallMgrService
{
/**
* 条件查询 API调用列表数据
*
* @param page 分页数据
* @param apiCallVo Api调用查询数据
* @return R对象
*/
R
getApiCallMgrList
(
Page
page
,
ApiCallVo
apiCallVo
);
R
getApiCallMgrList
(
Page
page
,
ApiCallVo
apiCallVo
);
/**
* 获取API调用统计数据
*
* @return
*/
int
getApiCallCount
();
int
getApiCallCount
();
/**
* 获取 APi调用饼状图数据
*
* @return
*/
List
<
Map
<
String
,
Integer
>>
getApiCallGraphData
();
List
<
Map
<
String
,
Integer
>>
getApiCallGraphData
();
/**
* API调用折线图
*
* @return
*/
List
<
Map
<
String
,
Integer
>>
getApiCallTrendList
();
List
<
Map
<
String
,
Integer
>>
getApiCallTrendList
();
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/ApiMgrService.java
View file @
35ba3df
...
@@ -6,7 +6,20 @@ import cn.hutool.db.Page;
...
@@ -6,7 +6,20 @@ import cn.hutool.db.Page;
public
interface
ApiMgrService
{
public
interface
ApiMgrService
{
/**
* APi管理列表
*
* @param page 分页数据
* @return
*/
R
getApiMgrList
(
Page
page
);
R
getApiMgrList
(
Page
page
);
/**
* 修改API管理列表状态
*
* @param id
* @param status
* @return
*/
Integer
startAndStop
(
Integer
id
,
Integer
status
);
Integer
startAndStop
(
Integer
id
,
Integer
status
);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/AppDownloadMgrService.java
View file @
35ba3df
...
@@ -2,5 +2,11 @@ package cn.com.glsx.openplatform.service;
...
@@ -2,5 +2,11 @@ package cn.com.glsx.openplatform.service;
public
interface
AppDownloadMgrService
{
public
interface
AppDownloadMgrService
{
/**
* 获取APP下载数量
*
* @param customerName 客户名
* @return
*/
int
getApiCallCountAuth
(
String
customerName
);
int
getApiCallCountAuth
(
String
customerName
);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrService.java
View file @
35ba3df
...
@@ -9,17 +9,60 @@ import java.security.NoSuchAlgorithmException;
...
@@ -9,17 +9,60 @@ import java.security.NoSuchAlgorithmException;
import
java.util.List
;
import
java.util.List
;
public
interface
CustomerMgrService
{
public
interface
CustomerMgrService
{
/**
* 获取客服管理列表
*
* @param page 分页查询数据
* @return
*/
R
getCustomerMgrList
(
Page
page
);
R
getCustomerMgrList
(
Page
page
);
/**
* 重置密码
*
* @param id
* @return
*/
int
reset
(
int
id
);
int
reset
(
int
id
);
/**
* 修改状态
*
* @param id
* @param status
* @return
*/
int
startAndStop
(
int
id
,
int
status
);
int
startAndStop
(
int
id
,
int
status
);
/**
* 客户总数据
*
* @return
*/
int
getCustomerCount
();
int
getCustomerCount
();
/**
* 注册
*
* @param customer
* @return
* @throws NoSuchAlgorithmException
*/
int
register
(
PlatformCustomer
customer
)
throws
NoSuchAlgorithmException
;
int
register
(
PlatformCustomer
customer
)
throws
NoSuchAlgorithmException
;
/**
* 登陆
*
* @param customer
* @return
*/
PlatformCustomer
login
(
PlatformCustomer
customer
);
PlatformCustomer
login
(
PlatformCustomer
customer
);
/**
* 获取地址下拉选
*
* @param id
* @return
*/
List
<
Area
>
getAddressOptionList
(
int
id
);
List
<
Area
>
getAddressOptionList
(
int
id
);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/DeviceMgrService.java
View file @
35ba3df
...
@@ -9,17 +9,55 @@ import java.util.List;
...
@@ -9,17 +9,55 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
public
interface
DeviceMgrService
{
public
interface
DeviceMgrService
{
/**
* 获取设备分页列表变数据
*
* @param page
* @param deviceVo
* @return
*/
R
getDeviceMgrList
(
Page
page
,
DeviceVo
deviceVo
);
R
getDeviceMgrList
(
Page
page
,
DeviceVo
deviceVo
);
/**
* 获取客服名
*
* @return
*/
List
<
String
>
getCustomerNameList
();
List
<
String
>
getCustomerNameList
();
/**
* 获取设备类型列表
*
* @return
*/
List
<
String
>
getDeviceTypeList
();
List
<
String
>
getDeviceTypeList
();
/**
* 获取设备总数
*
* @return
*/
int
getDeviceCount
();
int
getDeviceCount
();
/**
* 获取设备饼状图数据
*
* @return
*/
List
<
Map
<
String
,
Integer
>>
getDeviceGraphData
();
List
<
Map
<
String
,
Integer
>>
getDeviceGraphData
();
/**
* 根据客户名获取该客服拥有的设备总数
*
* @param customerName
* @return
*/
int
getDeviceCountAuth
(
String
customerName
);
int
getDeviceCountAuth
(
String
customerName
);
/**
* 获取设备折线图数据
*
* @return
*/
List
<
Map
<
String
,
Integer
>>
getDeviceAccessTrendList
();
List
<
Map
<
String
,
Integer
>>
getDeviceAccessTrendList
();
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiService.java
View file @
35ba3df
package
cn
.
com
.
glsx
.
openplatform
.
service
;
package
cn
.
com
.
glsx
.
openplatform
.
service
;
import
cn.hutool.db.Page
;
import
cn.hutool.db.Page
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Map
;
import
java.util.Map
;
public
interface
IceOpenApiService
{
public
interface
IceOpenApiService
{
/**
* 获取客户拥有的该设备类型的设备数量
*
* @param customerId
* @param deviceType
* @return
*/
Map
<
String
,
Integer
>
getDataView
(
int
customerId
,
int
deviceType
);
Map
<
String
,
Integer
>
getDataView
(
int
customerId
,
int
deviceType
);
/**
* 获取私钥
*
* @param appId
* @return
*/
String
getPrivateSecret
(
int
appId
);
String
getPrivateSecret
(
int
appId
);
/**
* 根据客户ID获取客服数据
*
* @param appId
* @return
*/
Map
<
String
,
Object
>
getCustomerInfo
(
int
appId
);
Map
<
String
,
Object
>
getCustomerInfo
(
int
appId
);
Map
<
String
,
Object
>
getDeviceList
(
Integer
appid
,
Page
page
,
Date
start_time
,
Date
end_time
);
/**
* 获取条件 设备列表
*
* @param appid
* @param page
* @param start_time
* @param end_time
* @return
*/
Map
<
String
,
Object
>
getDeviceList
(
Integer
appid
,
Page
page
,
Date
start_time
,
Date
end_time
);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/IndexService.java
View file @
35ba3df
...
@@ -11,11 +11,35 @@ import java.util.Map;
...
@@ -11,11 +11,35 @@ import java.util.Map;
* @date 2020-12-16
* @date 2020-12-16
*/
*/
public
interface
IndexService
{
public
interface
IndexService
{
/**
* 根据客户名获取统计数量
*
* @param customerName 客户名
* @return
*/
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
);
Map
<
String
,
Integer
>
getUcSummaryStatistic
(
String
customerName
);
/**
* 根据客户名获取设备激活数量
*
* @param customerName 客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcDeviceActivationStatistic
(
String
customerName
);
/**
* 根据客户名获取用户在线数量
*
* @param customerName 客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcUserActivityStatistic
(
String
customerName
);
/**
* 根据客户名获取app下载数量
*
* @param customerName 客户名
* @return
*/
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
);
List
<
Map
<
String
,
Object
>>
getUcAppDownloadStatistic
(
String
customerName
);
}
}
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/UserMgrService.java
View file @
35ba3df
...
@@ -8,13 +8,35 @@ import cn.hutool.db.Page;
...
@@ -8,13 +8,35 @@ import cn.hutool.db.Page;
import
java.util.List
;
import
java.util.List
;
public
interface
UserMgrService
{
public
interface
UserMgrService
{
/**
* 获取用户管理列表
*
* @param page
* @param userVo
* @return
*/
R
getUserMgrList
(
Page
page
,
UserVo
userVo
);
R
getUserMgrList
(
Page
page
,
UserVo
userVo
);
/**
* 获取客户名列表
*
* @return
*/
List
<
String
>
getCustomerNameList
();
List
<
String
>
getCustomerNameList
();
/**
* 获取用户数量
*
* @return
*/
int
getUserCount
();
int
getUserCount
();
/**
* 根据客户名获取该客户下的用户数量
*
* @param customerName 用户名
* @return
*/
int
getUserCountAuth
(
String
customerName
);
int
getUserCountAuth
(
String
customerName
);
}
}
...
...
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrServiceImpl.java
View file @
35ba3df
...
@@ -90,8 +90,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
...
@@ -90,8 +90,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
@Override
@Override
public
List
<
Area
>
getAddressOptionList
(
int
id
)
{
public
List
<
Area
>
getAddressOptionList
(
int
id
)
{
List
<
Area
>
addressOptionList
=
customerMapper
.
getAddressOptionList
(
id
);
return
customerMapper
.
getAddressOptionList
(
id
);
return
addressOptionList
;
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
View file @
35ba3df
...
@@ -195,7 +195,8 @@
...
@@ -195,7 +195,8 @@
<select
id=
"getAddressOptionList"
resultType=
"cn.com.glsx.openplatform.model.Area"
>
<select
id=
"getAddressOptionList"
resultType=
"cn.com.glsx.openplatform.model.Area"
>
select
select
id ,
id ,
area_name as areaName
area_name as areaName,
area_code as areaCode
from t_sys_area
from t_sys_area
where 1 = 1
where 1 = 1
<choose>
<choose>
...
...
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