|
|
@ -1,5 +1,6 @@
|
|
|
|
package com.mashibing.apipassenger.controller;
|
|
|
|
package com.mashibing.apipassenger.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.mashibing.internalcommon.dto.ResponseResult;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
@ -16,4 +17,21 @@ public class TestController {
|
|
|
|
return "test api passenger";
|
|
|
|
return "test api passenger";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*需要有token
|
|
|
|
|
|
|
|
*@return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping("/authTest")
|
|
|
|
|
|
|
|
public ResponseResult authTest(){
|
|
|
|
|
|
|
|
return ResponseResult.success("auth test");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*没有token也能正常返回
|
|
|
|
|
|
|
|
* areturn
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping("/noauthTest")
|
|
|
|
|
|
|
|
public ResponseResult noauthTest(){
|
|
|
|
|
|
|
|
return ResponseResult.success("noauth test");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|