This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
232 additions
and
74 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
qqinterface/src/main/java/tencent/im/oidb/cmd0x899/oidb_0x899.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package tencent.im.oidb.cmd0x899; | ||
|
||
import com.tencent.mobileqq.pb.ByteStringMicro; | ||
import com.tencent.mobileqq.pb.MessageMicro; | ||
import com.tencent.mobileqq.pb.PBBytesField; | ||
import com.tencent.mobileqq.pb.PBField; | ||
import com.tencent.mobileqq.pb.PBRepeatField; | ||
import com.tencent.mobileqq.pb.PBRepeatMessageField; | ||
import com.tencent.mobileqq.pb.PBUInt32Field; | ||
import com.tencent.mobileqq.pb.PBUInt64Field; | ||
|
||
public class oidb_0x899 { | ||
public static class ReqBody extends MessageMicro<ReqBody> { | ||
//static final MessageMicro.FieldMap __fieldMap__ = MessageMicro.initFieldMap(new int[]{8, 16, 24, 32, 42, 48, 56, 64}, new String[]{ | ||
// "uint64_group_code", | ||
// "uint64_start_uin", | ||
// "uint32_identify_flag", | ||
// "rpt_uint64_uin_list", | ||
// "memberlist_opt", | ||
// "uint32_member_num", "uint32_filter_method", "uint32_online_flag"}, new Object[]{0L, 0L, 0, 0L, null, 0, 0, 0}, ReqBody.class); | ||
public final PBUInt64Field uint64_group_code = PBField.initUInt64(0); | ||
public final PBUInt64Field uint64_start_uin = PBField.initUInt64(0); | ||
public final PBUInt32Field uint32_identify_flag = PBField.initUInt32(0); | ||
public final PBRepeatField<Long> rpt_uint64_uin_list = PBField.initRepeat(PBUInt64Field.__repeatHelper__); | ||
public memberlist memberlist_opt = new memberlist(); | ||
public final PBUInt32Field uint32_member_num = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_filter_method = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_online_flag = PBField.initUInt32(0); | ||
} | ||
|
||
public static class RspBody extends MessageMicro<RspBody> { | ||
static final MessageMicro.FieldMap __fieldMap__ = MessageMicro.initFieldMap(new int[]{8, 16, 24, 34, 42}, new String[]{"uint64_group_code", "uint64_start_uin", "uint32_identify_flag", "rpt_memberlist", "str_errorinfo"}, new Object[]{0L, 0L, 0, null, ByteStringMicro.EMPTY}, RspBody.class); | ||
public final PBUInt64Field uint64_group_code = PBField.initUInt64(0); | ||
public final PBUInt64Field uint64_start_uin = PBField.initUInt64(0); | ||
public final PBUInt32Field uint32_identify_flag = PBField.initUInt32(0); | ||
public final PBRepeatMessageField<memberlist> rpt_memberlist = PBField.initRepeatMessage(memberlist.class); | ||
public final PBBytesField str_errorinfo = PBField.initBytes(ByteStringMicro.EMPTY); | ||
} | ||
|
||
public static class memberlist extends MessageMicro<memberlist> { | ||
static final MessageMicro.FieldMap __fieldMap__; | ||
public final PBBytesField bytes_rich_info; | ||
public final PBBytesField bytes_special_title; | ||
public final PBBytesField bytes_uin_key; | ||
public final PBUInt32Field uint32_active_day; | ||
public final PBUInt32Field uint32_privilege; | ||
public final PBUInt32Field uint32_special_title_expire_time; | ||
public final PBUInt64Field uint64_member_uin = PBField.initUInt64(0); | ||
public final PBUInt32Field uint32_uin_flag = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_uin_flagex = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_uin_mobile_flag = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_uin_arch_flag = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_join_time = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_old_msg_seq = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_new_msg_seq = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_last_speak_time = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_level = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_point = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_shutup_timestap = PBField.initUInt32(0); | ||
public final PBUInt32Field uint32_flagex2 = PBField.initUInt32(0); | ||
|
||
static { | ||
ByteStringMicro byteStringMicro = ByteStringMicro.EMPTY; | ||
__fieldMap__ = MessageMicro.initFieldMap(new int[]{8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 114, 120, 128, 138, 144, 154}, new String[]{ | ||
"uint64_member_uin", // 1 | ||
|
||
"uint32_uin_flag", "uint32_uin_flagex", "uint32_uin_mobile_flag", "uint32_uin_arch_flag", "uint32_join_time", "uint32_old_msg_seq", "uint32_new_msg_seq", "uint32_last_speak_time", "uint32_level", "uint32_point", | ||
|
||
"uint32_shutup_timestap", //12 | ||
|
||
"uint32_flagex2", "bytes_special_title", "uint32_special_title_expire_time", "uint32_active_day", "bytes_uin_key", "uint32_privilege", "bytes_rich_info"}, new Object[]{0L, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, byteStringMicro, 0, 0, byteStringMicro, 0, byteStringMicro}, memberlist.class); | ||
} | ||
|
||
public memberlist() { | ||
ByteStringMicro byteStringMicro = ByteStringMicro.EMPTY; | ||
this.bytes_special_title = PBField.initBytes(byteStringMicro); | ||
this.uint32_special_title_expire_time = PBField.initUInt32(0); | ||
this.uint32_active_day = PBField.initUInt32(0); | ||
this.bytes_uin_key = PBField.initBytes(byteStringMicro); | ||
this.uint32_privilege = PBField.initUInt32(0); | ||
this.bytes_rich_info = PBField.initBytes(byteStringMicro); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/entries/Files.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package moe.fuqiuluo.qqinterface.servlet.entries | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class FileUrl( | ||
@SerialName("url") val url: String, | ||
) | ||
|
||
@Serializable | ||
data class GroupFileList( | ||
@SerialName("files") val files: List<FileInfo>, | ||
@SerialName("folders") val folders: List<FolderInfo>, | ||
) | ||
|
||
@Serializable | ||
data class FileInfo( | ||
@SerialName("group_id") val groupId: Long, | ||
@SerialName("file_id") val fileId: String, | ||
@SerialName("file_name") val fileName: String, | ||
@SerialName("file_size") val fileSize: Long, | ||
@SerialName("busid") val busid: Int, | ||
@SerialName("upload_time") val uploadTime: Int, | ||
@SerialName("dead_time") val deadTime: Int, | ||
@SerialName("modify_time") val modifyTime: Int, | ||
@SerialName("download_times") val downloadTimes: Int, | ||
@SerialName("uploader") val uploadUin: Long, | ||
@SerialName("upload_name") val uploadNick: String, | ||
) | ||
|
||
@Serializable | ||
data class FolderInfo( | ||
@SerialName("group_id") val groupId: Long, | ||
@SerialName("folder_id") val folderId: String, | ||
@SerialName("folder_name") val folderName: String, | ||
@SerialName("total_file_count") val totalFileCount: Int, | ||
@SerialName("create_time") val createTime: Int, | ||
@SerialName("creator") val creator: Long, | ||
@SerialName("creator_name") val creatorNick: String, | ||
) | ||
|
||
@Serializable | ||
data class FileSystemInfo( | ||
@SerialName("file_count") val fileCount: Int, | ||
@SerialName("limit_count") val fileLimitCount: Int, | ||
@SerialName("used_space") val usedSpace: Long, | ||
@SerialName("total_space") val totalSpace: Long, | ||
) |
10 changes: 10 additions & 0 deletions
10
xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/entries/GroupEntries.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package moe.fuqiuluo.qqinterface.servlet.entries | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
internal data class ProhibitedMemberInfo( | ||
@SerialName("user_id") val memberUin: Long, | ||
@SerialName("time") val shutuptimestap: Int | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
xposed/src/main/java/moe/fuqiuluo/shamrock/remote/action/handlers/GetProhibitedMemberList.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package moe.fuqiuluo.shamrock.remote.action.handlers | ||
|
||
import kotlinx.serialization.json.JsonElement | ||
import moe.fuqiuluo.qqinterface.servlet.GroupSvc | ||
import moe.fuqiuluo.shamrock.remote.action.ActionSession | ||
import moe.fuqiuluo.shamrock.remote.action.IActionHandler | ||
import moe.fuqiuluo.shamrock.tools.EmptyJsonString | ||
|
||
internal object GetProhibitedMemberList: IActionHandler() { | ||
override suspend fun internalHandle(session: ActionSession): String { | ||
val groupCode = session.getLong("group_id") | ||
return invoke(groupCode, session.echo) | ||
} | ||
|
||
suspend operator fun invoke( | ||
groupCode: Long, | ||
echo: JsonElement = EmptyJsonString | ||
): String { | ||
val result = GroupSvc.getProhibitedMemberList(groupCode) | ||
if (result.isFailure) { | ||
return error(result.exceptionOrNull()?.message ?: "获取禁言列表失败", echo, arrayResult = true) | ||
} | ||
return ok(result.getOrThrow(), echo) | ||
} | ||
|
||
override val requiredParams: Array<String> = arrayOf("group_id") | ||
|
||
override fun path(): String = "get_prohibited_member_list" | ||
} |
Oops, something went wrong.