黑名单列表
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package com.cool.store.service;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/6/21 15:01
|
||||
* @Version 1.0
|
||||
*/
|
||||
public interface GaoDeService {
|
||||
|
||||
/**
|
||||
* 根据经纬度生成图片
|
||||
* @param latitudeLongitude
|
||||
* @return
|
||||
*/
|
||||
String getGaoDePicture(String latitudeLongitude);
|
||||
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.cool.store.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.cool.store.service.GaoDeService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/6/21 15:04
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class GaoDeServiceImpl implements GaoDeService {
|
||||
|
||||
@Resource
|
||||
RestTemplate restTemplate;
|
||||
@Override
|
||||
public String getGaoDePicture(String latitudeLongitude) {
|
||||
String url = "https://restapi.amap.com/v3/staticmap?location=120.21201,30.2084&zoom=10&size=750*300&markers=mid,,A:116.481485,39.990464&key=fb6332444cab4eba54655571dfc68f5b&markersStyle=-1";
|
||||
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class);
|
||||
String body = forEntity.getBody();
|
||||
log.info("--------------{}", JSONObject.toJSON(body));
|
||||
return body;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user