Shamrock: 在获取某些字段错误时,将字段值定义为0 #150

This commit is contained in:
WhiteChi 2024-01-01 00:42:47 +08:00
parent 0360c81bee
commit d44150ea1a

View File

@ -67,14 +67,14 @@ internal data class NoticeEvent(
@SerialName("post_type") val postType: PostType,
@SerialName("notice_type") val type: NoticeType,
@SerialName("sub_type") val subType: NoticeSubType = NoticeSubType.None,
@SerialName("group_id") val groupId: Long = 0,
@SerialName("operator_id") val operatorId: Long = 0,
@SerialName("user_id") val userId: Long = 0,
@SerialName("sender_id") val senderId: Long = 0,
@SerialName("group_id") val groupId: Long = -1,
@SerialName("operator_id") val operatorId: Long = -1,
@SerialName("user_id") val userId: Long = -1,
@SerialName("sender_id") val senderId: Long = -1,
@SerialName("duration") val duration: Int = -1,
@SerialName("message_id") val msgId: Int = 0,
@SerialName("message_id") val msgId: Int = -1,
@SerialName("tip_text") val tip: String = "",
@SerialName("target_id") val target: Long = 0,
@SerialName("target_id") val target: Long = -1,
@SerialName("file") val file: GroupFileMsg? = null,
@SerialName("private_file") val privateFile: PrivateFileMsg? = null,
@SerialName("flag") val flag: String? = null,
@ -104,8 +104,8 @@ internal data class RequestEvent(
@SerialName("post_type") val postType: PostType,
@SerialName("request_type") val type: RequestType,
@SerialName("sub_type") val subType: RequestSubType = RequestSubType.None,
@SerialName("group_id") val groupId: Long = 0,
@SerialName("user_id") val userId: Long = 0,
@SerialName("group_id") val groupId: Long = -1,
@SerialName("user_id") val userId: Long = -1,
@SerialName("comment") val comment: String = "",
@SerialName("flag") val flag: String? = null,
)