23 lines
648 B
Java
23 lines
648 B
Java
|
package com.example.myapplication.api;
|
||
|
|
||
|
import com.example.myapplication.model.ApiResponse;
|
||
|
import com.example.myapplication.model.PartResponse;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
import retrofit2.Call;
|
||
|
import retrofit2.http.GET;
|
||
|
import retrofit2.http.Query;
|
||
|
|
||
|
public interface PartService {
|
||
|
@GET("/part/list")
|
||
|
Call<ApiResponse<List<PartResponse>>> getPartList(
|
||
|
@Query("projectId") String projectId,
|
||
|
@Query("keyword") String keyword,
|
||
|
@Query("partManufacturer") String partManufacturer,
|
||
|
@Query("partModel") String partModel,
|
||
|
@Query("partType") String partType
|
||
|
|
||
|
);
|
||
|
}
|