| | |
| | | import com.example.firstapp.database.entity.ApiResponse |
| | | import com.example.firstapp.database.entity.KeywordConfig |
| | | import com.example.firstapp.database.response.ContentResponse |
| | | import com.example.firstapp.database.response.DictResponse |
| | | import retrofit2.Retrofit |
| | | import retrofit2.converter.gson.GsonConverterFactory |
| | | import retrofit2.http.GET |
| | |
| | | |
| | | @GET("cloudContent/getByType") |
| | | suspend fun getContentByType(@Query("type") type: String): ContentResponse |
| | | |
| | | @GET("sysDict/getByDictCodeAndItemText") |
| | | suspend fun getDictValue(@Query("dictCode") dictCode: String, @Query("itemText") itemText: String): DictResponse |
| | | } |
| | | |
| | | // 创建Retrofit实例(单例) |