【应急】IM视频通话
This commit is contained in:
+43
@@ -0,0 +1,43 @@
|
||||
package com.renkang.emergency.entity.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Huawei
|
||||
* @version 1.0
|
||||
* @description: 添加其他成员DTO
|
||||
* @date 2025/11/3 10:41
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class AddOtherMemberDTO {
|
||||
|
||||
/**
|
||||
* 群组id
|
||||
*/
|
||||
@NotBlank(message = "群组id不能为空")
|
||||
@Schema(title = "群组id")
|
||||
private String groupId;
|
||||
|
||||
/**
|
||||
* 应急单id
|
||||
*/
|
||||
@NotBlank(message = "应急单id不能为空")
|
||||
@Schema(title = "应急单id")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 邀请成员id集合
|
||||
*/
|
||||
@NotEmpty(message = "邀请成员id集合不能为空")
|
||||
@Size(min = 1, max = 100, message = "邀请成员数量必须在1-100个之间")
|
||||
@Schema(title = "邀请成员id集合")
|
||||
private List<String> memberList;
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package com.renkang.emergency.entity.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Huawei
|
||||
* @version 1.0
|
||||
* @description: 创建群聊VO
|
||||
* @date 2025/11/3 10:41
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class CreateGroupMagVO {
|
||||
|
||||
/**
|
||||
* 群组id
|
||||
*/
|
||||
@JsonProperty("groupId")
|
||||
private String groupId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@JsonProperty("userId")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 成员集合(当前加入成员)
|
||||
*/
|
||||
@JsonProperty("member")
|
||||
private List<String> member;
|
||||
|
||||
/**
|
||||
* 应急单id
|
||||
*/
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
|
||||
@JsonProperty("tfNew")
|
||||
private String tfNew;
|
||||
|
||||
/**
|
||||
* 成员集合(待加入成员)
|
||||
*/
|
||||
@JsonProperty("otherMember")
|
||||
private List<String> otherMember;
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package com.renkang.emergency.entity.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author Huawei
|
||||
* @version 1.0
|
||||
* @description: 群组成员VO
|
||||
* @date 2025/11/5 13:17
|
||||
*/
|
||||
@Data
|
||||
public class GroupMemberVO {
|
||||
|
||||
/**
|
||||
* 应急单id
|
||||
*/
|
||||
@Schema(title = "应急单id")
|
||||
private String orderId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@Schema(title = "用户ID")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
@Schema(title = "用户名称")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
@Schema(title = "头像")
|
||||
private String avatar;
|
||||
|
||||
/**
|
||||
* 是否是群组成员, 0:不是群组成员, 1:是群组成员
|
||||
*/
|
||||
@Schema(title = "是否是群组成员, 0:不是群组成员, 1:是群组成员")
|
||||
private Integer isGroupMember;
|
||||
|
||||
}
|
||||
+6
@@ -29,6 +29,12 @@ public class WeekDataVO {
|
||||
@Schema(title ="专业人员集合")
|
||||
private List<EmergencySchedulesItem> professionalUserList;
|
||||
|
||||
@Schema(title ="操作人员id集合")
|
||||
private List<String> operationUserListIds;
|
||||
|
||||
@Schema(title ="专业人员id集合")
|
||||
private List<String> professionalUserListIds;
|
||||
|
||||
public List<EmergencySchedulesItem> getOperationUserList(List<EmergencySchedulesItem> itemList) {
|
||||
return itemList.stream()
|
||||
.filter(item -> "0".equals(item.getUserType()))
|
||||
|
||||
Reference in New Issue
Block a user