消息列表
This commit is contained in:
@@ -13,7 +13,8 @@ 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.MessageBean
|
||||
import com.example.defenseapplication.bean.MessageListResponse
|
||||
import com.example.defenseapplication.bean.ObtainInviterInformationBean
|
||||
import com.example.defenseapplication.bean.ObtainInviterInformationRequest
|
||||
import com.example.defenseapplication.bean.SwitchFamilyRequest
|
||||
@@ -75,7 +76,10 @@ interface ApiService {
|
||||
* 查看消息列表
|
||||
*/
|
||||
@GET("/app/appMessage/list")
|
||||
suspend fun getMessage(): GetCodeBean<List<MessageGroup>>
|
||||
suspend fun getMessage(
|
||||
@Query("pageNum") pageNum: Int = 1,
|
||||
@Query("pageSize") pageSize: Int = 10
|
||||
): MessageListResponse
|
||||
|
||||
|
||||
/**
|
||||
@@ -216,6 +220,13 @@ interface ApiService {
|
||||
@POST("/app/upload")
|
||||
suspend fun uploadFile(@retrofit2.http.Part file: MultipartBody.Part): UploadResponse
|
||||
|
||||
/**
|
||||
* 查看告警消息
|
||||
*/
|
||||
//@GET("/app/appMessageInfo/{id}")
|
||||
//suspend fun getMessageInfo(@retrofit2.http.Path("id") id: String): GetCodeBean<MessageBean>
|
||||
|
||||
|
||||
/**
|
||||
* 修改家庭用户状态
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user