我的家庭切换
This commit is contained in:
@@ -7,6 +7,7 @@ import com.example.defenseapplication.bean.GetCodeBean
|
||||
import bean.LoginBean
|
||||
import bean.LoginRequest
|
||||
import bean.RegisterRequest
|
||||
import com.example.defenseapplication.bean.SwitchFamilyRequest
|
||||
import retrofit2.http.Body
|
||||
import retrofit2.http.GET
|
||||
import retrofit2.http.POST
|
||||
@@ -46,7 +47,15 @@ interface ApiService {
|
||||
/**
|
||||
* 切换家庭
|
||||
*/
|
||||
//@POST("/app/switchFamily")
|
||||
//suspend fun switchFamily(@Body request: com.example.defenseapplication.bean.SwitchFamilyRequest): GetCodeBean<Any>
|
||||
@POST("/app/switchFamily")
|
||||
suspend fun switchFamily(@Body request: SwitchFamilyRequest): GetCodeBean<Any>
|
||||
|
||||
/**
|
||||
* 获取设备列表
|
||||
*/
|
||||
@GET("/app/getdeviceList")
|
||||
suspend fun getDeviceList(): GetCodeBean<List<DeviceBean>>
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user