| | |
| | | import com.example.firstapp.database.response.LoginResponse |
| | | import com.example.firstapp.database.response.SecurityResponse |
| | | import com.example.firstapp.database.response.UserInfo |
| | | import com.example.firstapp.entity.InvitationRecord |
| | | import com.example.firstapp.entity.InvitationRecords |
| | | import com.example.firstapp.model.CategoryConfig |
| | | import com.example.firstapp.model.CategoryConfigSync |
| | | import com.example.firstapp.network.AuthInterceptor |
| | |
| | | @POST("api/categoryConfig/saveOrUpdate/") |
| | | suspend fun saveUserCategories(@Body categoryConfigSync: CategoryConfigSync) |
| | | |
| | | @GET("api/customer/center/invitereward") |
| | | suspend fun getInvitereward(): ApiResponse<InvitationRecords> |
| | | |
| | | } |
| | | |
| | | // 创建Retrofit实例(单例) |
| | | object RetrofitClient{ |
| | | |
| | | // private const val BASE_URL ="http://192.168.1.213:8080/flower/" |
| | | private const val BASE_URL ="http://14.103.144.28:8080/flower/" |
| | | private const val BASE_URL ="http://192.168.1.127:8080/flower/" |
| | | //private const val BASE_URL ="http://14.103.144.28:8080/flower/" |
| | | |
| | | private lateinit var appContext: Context |
| | | |