socket 逻辑初始化
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user