init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.newyetai.recruit.tencent.controller;
|
||||
|
||||
import com.newyetai.common.AlitaResult;
|
||||
import com.newyetai.recruit.tencent.service.TencentService;
|
||||
import com.newyetai.sdk.tencent.map.dto.TencentMapBaseResDTO;
|
||||
import com.newyetai.sdk.tencent.map.dto.TencentMapLocationV1IpResDTO;
|
||||
import com.newyetai.sdk.tencent.map.dto.TencentMapPlaceSearchReqDTO;
|
||||
import com.newyetai.sdk.tencent.map.dto.TencentMapWsDistanceV1MatrixReqDTO;
|
||||
import com.newyetai.sdk.tencent.map.dto.TencentWsDistanceV1MatrixResDTO;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: guixinman
|
||||
* @create: 2024-12-18 14:14
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/tencent")
|
||||
public class TencentController {
|
||||
|
||||
@Autowired
|
||||
private TencentService tencentService;
|
||||
|
||||
@GetMapping("/ws/location/v1/ip")
|
||||
public AlitaResult<TencentMapLocationV1IpResDTO> wsLocationV1Ip() {
|
||||
return tencentService.wsLocationV1Ip();
|
||||
}
|
||||
|
||||
@GetMapping("/ws/distance/v1/matrix")
|
||||
public AlitaResult<TencentWsDistanceV1MatrixResDTO> wsDistanceV1Matrix(TencentMapWsDistanceV1MatrixReqDTO reqDTO) {
|
||||
return tencentService.wsDistanceV1Matrix(reqDTO);
|
||||
}
|
||||
|
||||
@GetMapping("/ws/place/v1/search")
|
||||
public AlitaResult<?> placeSearch(TencentMapPlaceSearchReqDTO reqDTO) {
|
||||
return tencentService.placeSearch(reqDTO);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user