mirror of
https://github.com/czp3009/bilibili-api.git
synced 2024-12-21 20:30:28 +08:00
添加空类型有关的注解
This commit is contained in:
parent
a981854642
commit
5d9d7ae48e
@ -11,9 +11,12 @@ import retrofit2.http.Header;
|
|||||||
import retrofit2.http.POST;
|
import retrofit2.http.POST;
|
||||||
import retrofit2.http.Query;
|
import retrofit2.http.Query;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
public interface PassportService {
|
public interface PassportService {
|
||||||
//获取验证码
|
//获取验证码
|
||||||
default okhttp3.Call getCaptcha(String cookies) {
|
default okhttp3.Call getCaptcha(@Nonnull String cookies) {
|
||||||
return new OkHttpClient.Builder()
|
return new OkHttpClient.Builder()
|
||||||
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC))
|
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC))
|
||||||
.build()
|
.build()
|
||||||
@ -47,5 +50,5 @@ public interface PassportService {
|
|||||||
//TODO sso 尚不明确
|
//TODO sso 尚不明确
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@GET("api/login/sso")
|
@GET("api/login/sso")
|
||||||
Call sso(@Query("access_token") String accessToken, @Query("gourl") String goUrl);
|
Call sso(@Query("access_token") String accessToken, @Nullable @Query("gourl") String goUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user