Commit 35ba3dfb by 杨林龙

修改获取省市区地址接口和添加注释 yangll

1 parent c86703c4
...@@ -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;
} }
} }
...@@ -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);
} }
...@@ -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();
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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();
} }
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);
} }
...@@ -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);
} }
...@@ -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);
} }
......
...@@ -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) {
......
...@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!