feat(emergency): 急救宣教资源推送到应急群聊

This commit is contained in:
2026-06-25 15:53:22 +08:00
parent 3f63abe1e3
commit 8761a965aa
17 changed files with 407 additions and 23 deletions
@@ -126,4 +126,8 @@ public class EmergencyProfessionUser implements Serializable {
// 专业人员
@TableField(exist = false)
private Integer professionNum;
// 科室名称
@TableField(exist = false)
private String deptName;
}
@@ -37,7 +37,7 @@ public class OrderOperator implements Serializable {
/**
* 人员类型(人员类型0:操作人员 1:专业人员)
*/
@Schema(title = "人员类型(人员类型0:操作人员 1:专业人员)")
@Schema(title = "人员类型(人员类型0:操作人员 1:专业人员 2:员工)")
private Integer operatorType;
/**
@@ -33,4 +33,10 @@ public class AddOtherMemberDTO {
@Size(min = 1, max = 100, message = "邀请成员数量必须在1-100个之间")
@Schema(title = "邀请成员id集合")
private List<String> memberList;
/**
* 邀请成员类型:0=专家/专业人员,1=员工,默认0向后兼容
*/
@Schema(title = "邀请成员类型(0:专家, 1:员工)")
private Integer memberType;
}
@@ -0,0 +1,36 @@
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 PengJ
* @version 1.0
* @description: 移除群成员DTO
* @date 2025/6/25
*/
@NoArgsConstructor
@Data
public class RemoveGroupMemberDTO {
/**
* 群组id
*/
@NotBlank(message = "群组id不能为空")
@Schema(title = "群组id")
private String groupId;
/**
* 移除成员id集合
*/
@NotEmpty(message = "移除成员id集合不能为空")
@Size(min = 1, max = 100, message = "移除成员数量必须在1-100个之间")
@Schema(title = "移除成员id集合")
private List<String> memberList;
}
@@ -0,0 +1,38 @@
package com.renkang.emergency.entity.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @author PengJ
* @version 1.0
* @description: 员工搜索结果VO
* @date 2025/6/25
*/
@Data
public class EmployeeVO {
@Schema(title = "用户ID")
private String userId;
@Schema(title = "姓名")
private String realname;
@Schema(title = "头像")
private String avatar;
@Schema(title = "部门编码")
private String orgCode;
@Schema(title = "单位名称")
private String orgName;
@Schema(title = "部门名称")
private String deptName;
@Schema(title = "手机号")
private String phone;
@Schema(title = "工号")
private String workNo;
}
@@ -42,4 +42,10 @@ public class GroupMemberVO {
@Schema(title = "是否是群组成员, 0:不是群组成员, 1:是群组成员")
private Integer isGroupMember;
/**
* 成员类型:-1=发起人, 0=操作人员, 1=专业人员, 2=员工
*/
@Schema(title = "成员类型(-1:发起人, 0:操作人员, 1:专业人员, 2:员工)")
private Integer memberType;
}