| New file |
| | |
| | | package com.dji.sample.droneairport.controller; |
| | | |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.droneairport.utils.AuthUtil; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @Author AIX |
| | | * @Date 2024/8/8 16:10 |
| | | * @Version 1.0 |
| | | */ |
| | | @RequestMapping("/droneAirport/authToken") |
| | | @RestController |
| | | public class AuthTokenController { |
| | | @GetMapping("/getToken") |
| | | public ResponseResult getToken() { |
| | | return ResponseResult.success(AuthUtil.getToken()); |
| | | } |
| | | } |