|
@@ -4,10 +4,12 @@ import com.fdkankan.extend.service.ITowerService;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import com.fdkankan.web.response.ResultData;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/china/tower")
|
|
@RequestMapping("/china/tower")
|
|
@@ -16,9 +18,12 @@ public class TowerController {
|
|
@Autowired
|
|
@Autowired
|
|
private ITowerService towerService;
|
|
private ITowerService towerService;
|
|
|
|
|
|
- @GetMapping("/packSceneData")
|
|
|
|
- public ResultData packSceneData(Long companyId, List<String> nums){
|
|
|
|
- return ResultData.ok(towerService.packSceneDataHandler("KK-R4YYV4yIZlT"));
|
|
|
|
|
|
+ @PostMapping("/packSceneData")
|
|
|
|
+ public ResultData packSceneData(Map<String, Object> param){
|
|
|
|
+ Long companyId = (Long) param.get("companyId");
|
|
|
|
+ List<String> nums = (List<String>)param.get("nums");
|
|
|
|
+ towerService.packSceneData(companyId, nums);
|
|
|
|
+ return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|