Files
Vetti-Service-new/vetti-admin/src/main/java/com/vetti/socket/vo/VoicePartMessage.java
2025-10-04 17:47:58 +08:00

48 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.vetti.socket.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* 语音分片消息实体类对应前端发送的JSON结构
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class VoicePartMessage {
private String type; // 消息类型,如"voice_part"
private int partNumber; // 分片编号从0开始
private int totalParts; // 总分片数
private String data; // Base64编码的分片数据
// getter和setter
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getPartNumber() {
return partNumber;
}
public void setPartNumber(int partNumber) {
this.partNumber = partNumber;
}
public int getTotalParts() {
return totalParts;
}
public void setTotalParts(int totalParts) {
this.totalParts = totalParts;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
}