关联用户2
This commit is contained in:
@@ -8,8 +8,10 @@ import com.example.defenseapplication.bean.GetCodeBean
|
||||
import bean.LoginBean
|
||||
import bean.LoginRequest
|
||||
import bean.RegisterRequest
|
||||
import com.example.defenseapplication.bean.AddDeviceUserRequest
|
||||
import com.example.defenseapplication.bean.DeleteBean
|
||||
import com.example.defenseapplication.bean.DeleteDeviceUserRequest
|
||||
import com.example.defenseapplication.bean.FamilyMembersBean
|
||||
import com.example.defenseapplication.bean.MessageGroup
|
||||
import com.example.defenseapplication.bean.SwitchFamilyRequest
|
||||
import retrofit2.http.Body
|
||||
@@ -104,5 +106,29 @@ interface ApiService {
|
||||
@POST("/app/deleteDeviceUser")
|
||||
suspend fun deleteDeviceUser(@Body request: DeleteDeviceUserRequest): GetCodeBean<Any>
|
||||
|
||||
/**
|
||||
* 查看家庭成员表
|
||||
*/
|
||||
@GET("/app/familyMembers/list")
|
||||
suspend fun getFamilyMembers(
|
||||
@Query("createDept") createDept: Long? = null,
|
||||
@Query("createBy") createBy: Long? = null,
|
||||
@Query("createTime") createTime: String? = null,
|
||||
@Query("updateBy") updateBy: Long? = null,
|
||||
@Query("updateTime") updateTime: String? = null,
|
||||
@Query("params.key.key") paramsKey: String? = null,
|
||||
@Query("id") id: Long? = null,
|
||||
@Query("parentId") parentId: Long? = null,
|
||||
@Query("parentName") parentName: String? = null,
|
||||
@Query("userId") userId: Long? = null,
|
||||
@Query("status") status: String? = null
|
||||
): GetCodeBean<List<FamilyMembersBean>>
|
||||
|
||||
/**
|
||||
* 添加设备关联用户
|
||||
*/
|
||||
@POST("/app/addDeviceUser")
|
||||
suspend fun addDeviceUser(@Body request: AddDeviceUserRequest): GetCodeBean<Any>
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user