Commit d58a67b9 by tyfanchz

添加参数校验

1 parent 4cc84c58
package com.glsx.controller;
import cn.com.glsx.openplatform.service.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cn.com.glsx.openplatform.service.ApiCallMgrService;
import cn.com.glsx.openplatform.service.AppDownloadMgrService;
import cn.com.glsx.openplatform.service.CustomerMgrService;
import cn.com.glsx.openplatform.service.DeviceMgrService;
import cn.com.glsx.openplatform.service.IndexService;
import cn.com.glsx.openplatform.service.UserMgrService;
import cn.com.glsx.openplatform.vo.R;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author deployer name
* @version V1.0
......@@ -100,28 +105,28 @@ public class IndexController {
@RequestMapping(value = "/getUcSummaryStatistic", method = RequestMethod.GET)
@ResponseBody
public R getUcSummaryStatistic(String customerName) {
public R getUcSummaryStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService.getUcSummaryStatistic(customerName);
return R.ok().data(statisticMap);
}
@RequestMapping(value = "/getUcDeviceActivationStatistic", method = RequestMethod.GET)
public R getUcDeviceActivationStatistic(String customerName) {
public R getUcDeviceActivationStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
.getUcDeviceActivationStatistic(customerName);
return R.ok().data(statisticMap);
}
@RequestMapping(value = "/getUcUserActivityStatistic", method = RequestMethod.GET)
public R getUcUserActivityStatistic(String customerName) {
public R getUcUserActivityStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
.getUcUserActivityStatistic(customerName);
return R.ok().data(statisticMap);
}
@RequestMapping(value = "/getUcAppDownloadStatistic", method = RequestMethod.GET)
public R getUcAppDownloadStatistic(String customerName) {
public R getUcAppDownloadStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
.getUcAppDownloadStatistic(customerName);
return R.ok().data(statisticMap);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!