lint
This commit is contained in:
977 files changed
+198426
-158324
No files matched your search
@@ -13,40 +13,59 @@ import type { OidbGroupDetailRequest } from '@snowluma/proto-defs/oidb-actions/b
|
||||
import { invokeOidb, type OidbSender } from '../../oidb-service';
|
||||
|
||||
export namespace FetchGroupDetail {
|
||||
export const command = 0x88D;
|
||||
export const subCommand = 0;
|
||||
// NOTE: deliberately no `uinForm` — Lagrange sends this with reserved=0.
|
||||
export const command = 0x88d;
|
||||
export const subCommand = 0;
|
||||
// NOTE: deliberately no `uinForm` — Lagrange sends this with reserved=0.
|
||||
|
||||
export interface Params { groupUin: number; }
|
||||
export interface Params {
|
||||
groupUin: number;
|
||||
}
|
||||
|
||||
export type Deps = OidbSender;
|
||||
export type Deps = OidbSender;
|
||||
|
||||
const on = true;
|
||||
const on = true;
|
||||
|
||||
export const serialize = (_ctx: Deps, p: Params): OidbGroupDetailRequest => ({
|
||||
field1: 537099973,
|
||||
config: {
|
||||
uin: BigInt(p.groupUin),
|
||||
// Mirror Lagrange's flag set so the server returns the full detail block.
|
||||
flags: {
|
||||
ownerUid: on, createTime: on, maxMemberCount: on, memberCount: on,
|
||||
level: on, name: '', noticePreview: '', uin: on, lastSequence: on,
|
||||
lastMessageTime: on, question: '', answer: '', maxAdminCount: '',
|
||||
// Tag 45 (not Lagrange's 59): official request mask for 60027.
|
||||
shutUpAllTimestamp: on, addType: on, privilegeFlag: on, groupFlagExt4: on,
|
||||
noFingerOpen: on, noCodeFingerOpen: on,
|
||||
},
|
||||
},
|
||||
});
|
||||
export const serialize = (_ctx: Deps, p: Params): OidbGroupDetailRequest => ({
|
||||
field1: 537099973,
|
||||
config: {
|
||||
uin: BigInt(p.groupUin),
|
||||
// Mirror Lagrange's flag set so the server returns the full detail block.
|
||||
flags: {
|
||||
ownerUid: on,
|
||||
createTime: on,
|
||||
maxMemberCount: on,
|
||||
memberCount: on,
|
||||
level: on,
|
||||
name: '',
|
||||
noticePreview: '',
|
||||
uin: on,
|
||||
lastSequence: on,
|
||||
lastMessageTime: on,
|
||||
question: '',
|
||||
answer: '',
|
||||
maxAdminCount: '',
|
||||
// Tag 45 (not Lagrange's 59): official request mask for 60027.
|
||||
shutUpAllTimestamp: on,
|
||||
addType: on,
|
||||
privilegeFlag: on,
|
||||
groupFlagExt4: on,
|
||||
noFingerOpen: on,
|
||||
noCodeFingerOpen: on,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const deserialize = (_ctx: Deps, body: OidbSvcTrpcTcp0x88D_0Response): OidbSvcTrpcTcp0x88D_0Response => body;
|
||||
export const deserialize = (
|
||||
_ctx: Deps,
|
||||
body: OidbSvcTrpcTcp0x88D_0Response,
|
||||
): OidbSvcTrpcTcp0x88D_0Response => body;
|
||||
|
||||
export const encode = (env: OidbBase<OidbGroupDetailRequest>): Uint8Array =>
|
||||
protobuf_encode<OidbBase<OidbGroupDetailRequest>>(env);
|
||||
export const encode = (env: OidbBase<OidbGroupDetailRequest>): Uint8Array =>
|
||||
protobuf_encode<OidbBase<OidbGroupDetailRequest>>(env);
|
||||
|
||||
export const decode = (bytes: Uint8Array): OidbBase<OidbSvcTrpcTcp0x88D_0Response> =>
|
||||
protobuf_decode<OidbBase<OidbSvcTrpcTcp0x88D_0Response>>(bytes);
|
||||
export const decode = (bytes: Uint8Array): OidbBase<OidbSvcTrpcTcp0x88D_0Response> =>
|
||||
protobuf_decode<OidbBase<OidbSvcTrpcTcp0x88D_0Response>>(bytes);
|
||||
|
||||
export const invoke = (deps: Deps, p: Params): Promise<OidbSvcTrpcTcp0x88D_0Response> =>
|
||||
invokeOidb(deps, FetchGroupDetail, p);
|
||||
export const invoke = (deps: Deps, p: Params): Promise<OidbSvcTrpcTcp0x88D_0Response> =>
|
||||
invokeOidb(deps, FetchGroupDetail, p);
|
||||
}
|
||||
Reference in new issue
Block a user