parent
a63b2d5e48
commit
95e21dee5e
@ -0,0 +1,31 @@
|
||||
package com.taxi.apipassenger.controller;
|
||||
|
||||
import com.internal.dto.ResponseResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("/test")
|
||||
public String test(){
|
||||
|
||||
return "test api passenger";
|
||||
}
|
||||
|
||||
/**
|
||||
* 需要带token
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/authTest")
|
||||
public ResponseResult authTest(){
|
||||
return ResponseResult.success("auth test");
|
||||
}
|
||||
|
||||
/**
|
||||
* 无需带token
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/noauthTest")
|
||||
public ResponseResult noauthTest(){
|
||||
return ResponseResult.success(" no auth test");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue