Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ public class WxCpChatModel implements Serializable {
@SerializedName("sphfeed")
private SphFeed sphFeed;

/**
* 音视频通话消息
*/
@SerializedName("voiptext")
private VoipText voipText;

/**
* From json wx cp chat model.
*
Expand Down Expand Up @@ -1333,4 +1339,40 @@ public String toJson() {
}


/**
* 音视频通话消息
*/
@Getter
@Setter
public static class VoipText implements Serializable {
private static final long serialVersionUID = -5028321625140879571L;

@SerializedName("callduration")
private Integer callDuration;

Comment on lines +1349 to +1352
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议为 callDurationinviteType 字段添加 Javadoc 注释,说明其具体含义和值的说明。例如:

  • callDuration: 通话时长(单位:秒)
  • inviteType: 邀请类型(1-用户主动发起, 2-群主发起)

参考同文件中其他字段的文档风格,如 Details.idMeeting.meetingId 都有类似的注释说明。

Suggested change
@SerializedName("callduration")
private Integer callDuration;
/**
* 通话时长单位
*/
@SerializedName("callduration")
private Integer callDuration;
/**
* 邀请类型1-用户主动发起2-群主发起
*/

Copilot uses AI. Check for mistakes.
@SerializedName("invitetype")
private Integer inviteType;

/**
* From json voip text.
*
* @param json the json
* @return the voip text
*/
public static VoipText fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, VoipText.class);
}

/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}

}
Comment on lines +1347 to +1375
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新增的 VoipText 消息类型缺少测试用例。建议在 WxCpMsgAuditTest.java 中添加 voiptext 消息类型的测试用例,以保持与其他消息类型一致的测试覆盖率。

可以参考同文件中其他消息类型的测试方式,例如 modelMeetingVoiceCallmodelSphFeed 等的测试实现。

Copilot uses AI. Check for mistakes.


}