puzhibing
2026-05-12 08cc6d5cf7e93b75cfabe7dcc2aeaa9afa1117eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.xiaopeng.automaticPilot.controller;
 
import com.xiaopeng.automaticPilot.dto.XpCommonResponse;
import com.xiaopeng.automaticPilot.dto.RobotaxiSmsCodeRequest;
import com.xiaopeng.automaticPilot.dto.RobotaxiSmsValidateRequest;
import com.xiaopeng.automaticPilot.service.VehicleRtInfoService;
import com.xiaopeng.unifiedverification.interceptor.XpClientCheck;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @author zhouhn
 * 2026/2/27
 */
@RestController
@RequestMapping("/vehicle/v1/robotaxi")
@Api(tags = "座舱RTInfo接口")
public class VehicleRtInfoController {
 
    @Resource
    private VehicleRtInfoService vehicleRtInfoService;
 
    @XpClientCheck(checkToken = false)
    @PostMapping("/sms/code")
    public XpCommonResponse<?> getRobotaxiSmsCode(@RequestBody RobotaxiSmsCodeRequest request) {
        return vehicleRtInfoService.getRobotaxiSmsCode(request);
    }
 
    @PostMapping("/sms/code/6998f6d9-5a10-4aab-b7d5-4855e710ba7d")
    public XpCommonResponse<?> getRobotaxiSmsCodeTest(@RequestBody RobotaxiSmsCodeRequest request) {
        return vehicleRtInfoService.getRobotaxiSmsCode(request);
    }
 
    @XpClientCheck(checkToken = false)
    @PostMapping("/sms/validate")
    public XpCommonResponse<?> validateRobotaxiSmsCode(@RequestBody RobotaxiSmsValidateRequest request) {
        return vehicleRtInfoService.validateRobotaxiSmsCode(request);
    }
 
    @PostMapping("/sms/validate/6998f6d9-5a10-4aab-b7d5-4855e710ba7d")
    public XpCommonResponse<?> validateRobotaxiSmsCodeTest(@RequestBody RobotaxiSmsValidateRequest request) {
        return vehicleRtInfoService.validateRobotaxiSmsCode(request);
    }
 
}