📜  APIClient.dart - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:36.882000             🧑  作者: Mango

代码示例1
@RestApi(baseUrl: "https://xyz.com")
abstract class APIClient {
  factory APIClient(Dio dio) = _APIClient;
 
  @GET("/getSplashData")
  Future splashData();
 
  @POST("/login")
  @FormUrlEncoded()
  Future loginPage(@Field("email")emailId,@Field("password")password);
 
}