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,checkXpSign = false,checkOutXpSign = false,checkIrdeto = false,checkTee = false,checkOtpToken = true) @PostMapping("/sms/code") public XpCommonResponse getRobotaxiSmsCode(@RequestBody RobotaxiSmsCodeRequest request) { return vehicleRtInfoService.getRobotaxiSmsCode(request); } @XpClientCheck(checkToken = false) @PostMapping("/sms/validate") public XpCommonResponse validateRobotaxiSmsCode(@RequestBody RobotaxiSmsValidateRequest request) { return vehicleRtInfoService.validateRobotaxiSmsCode(request); } }