4g挂牌对接,可以接收到 心跳日志, 上传的音频文件 ,保存到数据库和本地文件
This commit is contained in:
@@ -89,5 +89,13 @@ public class CustomerManagement implements Serializable {
|
||||
@TableField("contact_count")
|
||||
private Integer contactCount;
|
||||
|
||||
@Schema(description = "操作类型")
|
||||
@TableField("operation_type")
|
||||
private String operationType;
|
||||
|
||||
@Schema(description = "客户来源")
|
||||
@TableField("customer_source")
|
||||
private String customerSource;
|
||||
|
||||
|
||||
}
|
||||
|
||||
117
src/main/java/com/rj/entity/YhyAudioUploadLog.java
Normal file
117
src/main/java/com/rj/entity/YhyAudioUploadLog.java
Normal file
@@ -0,0 +1,117 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 音频上传日志表
|
||||
* </p>
|
||||
*
|
||||
* @author Auto Generated
|
||||
* @since 2025-01-29
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("yhy_audio_upload_log")
|
||||
@Schema(description = "音频上传日志表")
|
||||
public class YhyAudioUploadLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键,UUID")
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "文件路径")
|
||||
@TableField("file_path")
|
||||
private String filePath;
|
||||
|
||||
@Schema(description = "内容类型(如:audio/mpeg)")
|
||||
@TableField("content_type")
|
||||
private String contentType;
|
||||
|
||||
@Schema(description = "设备号")
|
||||
@TableField("device_no")
|
||||
private String deviceNo;
|
||||
|
||||
@Schema(description = "服务器回调URL")
|
||||
@TableField("server_url")
|
||||
private String serverUrl;
|
||||
|
||||
@Schema(description = "推送数据类型(如:Audio)")
|
||||
@TableField("push_data_type")
|
||||
private String pushDataType;
|
||||
|
||||
@Schema(description = "文件名")
|
||||
@TableField("file_name")
|
||||
private String fileName;
|
||||
|
||||
@Schema(description = "保存路径")
|
||||
@TableField("save_path")
|
||||
private String savePath;
|
||||
|
||||
@Schema(description = "分块索引(如:A001)")
|
||||
@TableField("chunk_index")
|
||||
private String chunkIndex;
|
||||
|
||||
@Schema(description = "开始时间(格式:251129185131)")
|
||||
@TableField("start_time")
|
||||
private String startTime;
|
||||
|
||||
@Schema(description = "结束时间(格式:251129190131)")
|
||||
@TableField("end_time")
|
||||
private String endTime;
|
||||
|
||||
@Schema(description = "用户号")
|
||||
@TableField("usr_no")
|
||||
private String usrNo;
|
||||
|
||||
@Schema(description = "设备类型(如:Hanging4G)")
|
||||
@TableField("device_type")
|
||||
private String deviceType;
|
||||
|
||||
@Schema(description = "是否有主体(0-否,1-是)")
|
||||
@TableField("has_body")
|
||||
private Boolean hasBody;
|
||||
|
||||
@Schema(description = "扩展信息(JSON格式)")
|
||||
@TableField("extended")
|
||||
private String extended;
|
||||
|
||||
@Schema(description = "用户ID")
|
||||
@TableField("user_id")
|
||||
private String userId;
|
||||
|
||||
@Schema(description = "用户名")
|
||||
@TableField("user_name")
|
||||
private String userName;
|
||||
|
||||
@Schema(description = "用户电话")
|
||||
@TableField("user_phone")
|
||||
private String userPhone;
|
||||
|
||||
@Schema(description = "用户部门")
|
||||
@TableField("user_dept")
|
||||
private String userDept;
|
||||
|
||||
@Schema(description = "同步阶段")
|
||||
@TableField("sync_stage")
|
||||
private String syncStage;
|
||||
|
||||
@Schema(description = "系统创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "系统更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
|
||||
53
src/main/java/com/rj/entity/YhyDatatypeLog.java
Normal file
53
src/main/java/com/rj/entity/YhyDatatypeLog.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 心跳日志表
|
||||
* </p>
|
||||
*
|
||||
* @author Auto Generated
|
||||
* @since 2025-01-01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("yhy_datatype_log")
|
||||
@Schema(description = "心跳日志表")
|
||||
public class YhyDatatypeLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键,UUID")
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "数据类型,固定值:HeartbeatLog")
|
||||
@TableField("data_type")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "设备号")
|
||||
@TableField("device_no")
|
||||
private String deviceNo;
|
||||
|
||||
@Schema(description = "内容")
|
||||
@TableField("contents")
|
||||
private String contents;
|
||||
|
||||
@Schema(description = "系统创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "系统更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
|
||||
89
src/main/java/com/rj/entity/YhyHeartbeatLog.java
Normal file
89
src/main/java/com/rj/entity/YhyHeartbeatLog.java
Normal file
@@ -0,0 +1,89 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 心跳日志表
|
||||
* </p>
|
||||
*
|
||||
* @author Auto Generated
|
||||
* @since 2025-01-01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("yhy_heartbeat_log")
|
||||
@Schema(description = "心跳日志表")
|
||||
public class YhyHeartbeatLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键,UUID")
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "数据类型,固定值:HeartbeatLog")
|
||||
@TableField("data_type")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "时间戳")
|
||||
@TableField("time_stamp")
|
||||
private LocalDateTime timeStamp;
|
||||
|
||||
@Schema(description = "设备号")
|
||||
@TableField("device_no")
|
||||
private String deviceNo;
|
||||
|
||||
@Schema(description = "设备状态(如:Online)")
|
||||
@TableField("device_status")
|
||||
private String deviceStatus;
|
||||
|
||||
@Schema(description = "电源状态(0-关闭,1-开启)")
|
||||
@TableField("power_status")
|
||||
private Boolean powerStatus;
|
||||
|
||||
@Schema(description = "剩余电量(0-100)")
|
||||
@TableField("remain_power")
|
||||
private Integer remainPower;
|
||||
|
||||
@Schema(description = "剩余存储空间(字节)")
|
||||
@TableField("remain_storage_size")
|
||||
private Long remainStorageSize;
|
||||
|
||||
@Schema(description = "心跳时间")
|
||||
@TableField("heartbeat_time")
|
||||
private LocalDateTime heartbeatTime;
|
||||
|
||||
@Schema(description = "设备版本(如:主:1.4.4 音频:1.4.2)")
|
||||
@TableField("device_ver")
|
||||
private String deviceVer;
|
||||
|
||||
@Schema(description = "扩展信息")
|
||||
@TableField("extend")
|
||||
private String extend;
|
||||
|
||||
@Schema(description = "主体信息")
|
||||
@TableField("body")
|
||||
private String body;
|
||||
|
||||
@Schema(description = "数据创建时间(来自原始数据)")
|
||||
@TableField("created_time")
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
@Schema(description = "系统创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "系统更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user