企微语料ai解析开发

This commit is contained in:
zren25
2025-03-10 18:58:32 +08:00
parent d7271ea431
commit 3e8a7f8e5a
19 changed files with 1203 additions and 19 deletions

View File

@@ -0,0 +1,33 @@
package com.volvo.ai.analytic.center.dto.corpus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.volvo.common.core.base.BaseEntity;
import lombok.Data;
import java.util.Date;
/**
* @description 会话存档消息记录表-湖仓同步表
* @author BEJSON
* @date 2025-03-10
*/
@Data
public class OdsVdqwMessageOTD {
private static final long serialVersionUID = 1L;
private String fromUserId;
private String acceptUserId;
private Date msgTime;
// 0:个人1群聊
private int chatType;
private String fromUserUnId;
private String acceptUserUnId;
private String content;
public OdsVdqwMessageOTD() {
}
}

View File

@@ -0,0 +1,169 @@
package com.volvo.ai.analytic.center.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @description 外部联系人表-湖仓同步表
* @author BEJSON
* @date 2025-03-10
*/
@Data
@TableName("tm_ods_vdqw_externalcontact")
public class TmOdsVdqwExternalcontact {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type = IdType.AUTO)
private Long id;
/**
* group_name
*/
@TableField("external_user_id")
private String externalUserId;
/**
* tag_name
*/
@TableField("name_info")
private String nameInfo;
/**
* avatar
*/
@TableField("avatar")
private String avatar;
/**
* varchar(100)
*/
@TableField("type_info")
private Integer typeInfo;
/**
* gender
*/
@TableField("gender")
private Integer gender;
/**
* union_id
*/
@TableField("union_id")
private String unionId;
/**
* Position
*/
@TableField("position")
private String position;
/**
* corp_name
*/
@TableField("corp_name")
private String corpName;
/**
* corp_full_name
*/
@TableField("corp_full_name")
private String corpFullName;
/**
* 创建时间
*/
@TableField("creation_time")
private String creationTime;
/**
* creator_userId
*/
@TableField("creator_user_id")
private Integer creatorUserId;
/**
* last_modification_time
*/
@TableField("last_modification_time")
private String lastModificationTime;
/**
* last_modifier_user_id
*/
@TableField("last_modifier_user_id")
private Long lastModifierUserId;
/**
* deleter_user_id
*/
@TableField("deleter_user_id")
private Long deleterUserId;
/**
* deletion_time
*/
@TableField("deletion_time")
private Date deletionTime;
/**
* 删除标识0-未删除1-已删除)
*/
@TableField("is_deleted")
private Integer isDeleted;
/**
* 记录版本号,即乐观锁
*/
@TableField("version")
private Integer version;
/**
* 创建人
*/
@TableField("create_by")
private String createBy;
/**
* 更新人
*/
@TableField("update_by")
private String updateBy;
/**
* 创建sql人
*/
@TableField("create_sqlby")
private String createSqlby;
/**
* 更新sql人
*/
@TableField("update_sqlby")
private String updateSqlby;
/**
* 创建时间
*/
@TableField("create_time")
private Date createTime;
/**
* 更新时间
*/
@TableField("update_time")
private Date updateTime;
public TmOdsVdqwExternalcontact() {
}
}

View File

@@ -0,0 +1,146 @@
package com.volvo.ai.analytic.center.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.volvo.common.core.base.BaseEntity;
import lombok.Data;
import java.util.Date;
/**
* @description 会话存档消息记录表-湖仓同步表
* @author BEJSON
* @date 2025-03-10
*/
@Data
@TableName("tm_ods_vdqw_messagearchiving")
public class TmOdsVdqwMessagearchiving extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type = IdType.AUTO)
private Long id;
/**
* 消息id
*/
@TableField(value="msg_id")
private String msgId;
/**
* 消息类型send(发送消息)/recall(撤回消息)/switch(切换企业日志)
*/
@TableField(value="action_type")
private String actionType;
/**
* 发送方Id
*/
@TableField(value="from_user_id")
private String fromUserId;
/**
* 群聊消息Id
*/
@TableField(value="room_id")
private String roomId;
/**
* 消息发送时间
*/
@TableField(value="msg_time")
private Date msgTime;
/**
* 消息类型maType 消息类型文本消息text图片消息image语音消息voice视频消息video文件消息file文本卡片消息textcard图文消息news
*/
@TableField(value="msg_type")
private String msgType;
/**
* 消息内容json
*/
@TableField(value="content")
private String content;
/**
* 创建时间
*/
@TableField(value="creation_time")
private Date creationTime;
/**
* 创建人Id
*/
@TableField(value="creator_user_id")
private Long creatorUserId;
/**
* 消息标识
*/
@TableField(value="seq")
private Long seq;
/**
* 消息素材是否需要同步01
*/
@TableField(value="is_material_sync")
private Integer isMaterialSync;
/**
* 聊天中素材的下载结果
*/
@TableField(value="material_result")
private String materialResult;
/**
* 素材url
*/
@TableField(value="material_url")
private String materialUrl;
/**
* 接收方id
*/
@TableField(value="accept_user_id")
private String acceptUserId;
/**
* 消息发送类型0群聊1私聊
*/
@TableField(value="chat_type")
private Integer chatType;
/**
* type_info
*/
@TableField(value="type_info")
private Integer typeInfo;
/**
* is_revoke
*/
@TableField(value="is_revoke")
private Integer isRevoke;
/**
* 删除标识0-未删除1-已删除)
*/
@TableField(value="is_deleted")
private Integer isDeleted;
/**
* 记录版本号,即乐观锁
*/
@TableField(value="version")
private Integer version;
public TmOdsVdqwMessagearchiving() {
}
}

View File

@@ -0,0 +1,302 @@
package com.volvo.ai.analytic.center.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @description 企微成员信息表-湖仓同步表
* @author BEJSON
* @date 2025-03-10
*/
@Data
@TableName("tm_ods_vdqw_workuserinfo")
public class TmOdsVdqwWorkuserinfo {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type = IdType.AUTO)
private Long id;
/**
* 成员UserId
*/
@TableField("user_id")
private String userId;
/**
* 成员名称
*/
@TableField("name_info")
private String nameInfo;
/**
* 职务信息
*/
@TableField("position")
private String position;
/**
* 手机号码
*/
@TableField("mobile")
private String mobile;
/**
* 性别
*/
@TableField("gender")
private Integer gender;
/**
* 手机号码
*/
@TableField("email")
private String email;
/**
* 企业邮箱
*/
@TableField("biz_mail")
private String bizMail;
/**
* 直属上级UserID
*/
@TableField("direct_leaders")
private String directLeaders;
/**
* 头像url
*/
@TableField("avatar")
private String avatar;
/**
* 头像缩略图url
*/
@TableField("thumb_avatar")
private String thumbAvatar;
/**
* 座机
*/
@TableField("telephone")
private String telephone;
/**
* 别名
*/
@TableField("alias")
private String alias;
/**
* 地址
*/
@TableField("address")
private String address;
/**
* 全局唯一id
*/
@TableField("open_user_id")
private String openUserId;
/**
* 主部门
*/
@TableField("main_department")
private Integer mainDepartment;
/**
* 已激活2=已禁用4=未激活5=退出企业, 6 待加入
*/
@TableField("status")
private Integer status;
/**
* 员工个人二维码
*/
@TableField("qr_code")
private String qrCode;
/**
* -对外职务
*/
@TableField("external_position")
private String externalPosition;
/**
* 创建者ID
*/
@TableField("creation_time")
private Date creationTime;
/**
* 主部门
*/
@TableField("creator_user_id")
private Long creatorUserId;
/**
* 删除时间
*/
@TableField("deleter_user_id")
private Long deleterUserId;
/**
* 主部门
*/
@TableField("deletion_time")
private Date deletionTime;
/**
* 最后更新时间
*/
@TableField("last_modification_time")
private Date lastModificationTime;
/**
* 最后更新者ID
*/
@TableField("last_modifier_user_id")
private Long lastModifierUserId;
/**
* 是否有效
*/
@TableField("is_active")
private Long isActive;
/**
* 彩信内手机号
*/
@TableField("mms_mobile")
private String mmsMobile;
/**
* 是否开启会话存档 默认否
*/
@TableField("is_open_msg_audit")
private String isOpenMsgAudit;
/**
* 个人素材成员绑定编号
*/
@TableField("material_bind_number")
private String materialBindNumber;
/**
* 经销商Code
*/
@TableField("dealer_code")
private String dealerCode;
/**
* 中台对应员工Code
*/
@TableField("middle_user_code")
private String middleUserCode;
/**
* 中台对应员工Id
*/
@TableField("middle_user_id")
private Long middleUserId;
/**
* UnionId
*/
@TableField("union_id")
private String unionId;
/**
* 最后邀请加入时间
*/
@TableField("invite_join_time")
private Date inviteJoinTime;
/**
* 是否邀请加入过 默认否
*/
@TableField("is_invite_join")
private String isInviteJoin;
/**
* 是否更新角色0可修改1不可修改
*/
@TableField("is_edit_role")
private Integer isEditRole;
/**
* WorkUserInfoId
*/
@TableField("work_user_info_id")
private Integer workUserInfoId;
/**
* is_dimission
*/
@TableField("is_dimission")
private Integer isDimission;
/**
* 删除标识0-未删除1-已删除)
*/
@TableField("is_deleted")
private Integer isDeleted;
/**
* 记录版本号,即乐观锁
*/
@TableField("version")
private Integer version;
/**
* 创建人
*/
@TableField("create_by")
private String createBy;
/**
* 更新人
*/
@TableField("update_by")
private String updateBy;
/**
* 创建sql人
*/
@TableField("create_sqlby")
private String createSqlby;
/**
* 更新sql人
*/
@TableField("update_sqlby")
private String updateSqlby;
/**
* 创建时间
*/
@TableField("create_time")
private Date createTime;
/**
* 更新时间
*/
@TableField("update_time")
private Date updateTime;
public TmOdsVdqwWorkuserinfo() {
}
}