lint
This commit is contained in:
977 files changed
+198426
-158324
No files matched your search
@@ -9,27 +9,27 @@ import { invokeOidb, type OidbSender } from '../../oidb-service';
|
||||
import type { BridgeContext } from '../../bridge-context';
|
||||
|
||||
export namespace ClearFriendRemark {
|
||||
export const command = 0x912F;
|
||||
export const subCommand = 0;
|
||||
export const command = 0x912f;
|
||||
export const subCommand = 0;
|
||||
|
||||
export interface Params {
|
||||
userId: number;
|
||||
}
|
||||
export interface Params {
|
||||
userId: number;
|
||||
}
|
||||
|
||||
export type Deps = OidbSender & Pick<BridgeContext, 'resolveUserUid'>;
|
||||
export type Deps = OidbSender & Pick<BridgeContext, 'resolveUserUid'>;
|
||||
|
||||
export const serialize = async (ctx: Deps, p: Params): Promise<OidbClearFriendRemark> => ({
|
||||
target: { targetUid: await ctx.resolveUserUid(p.userId) },
|
||||
});
|
||||
export const serialize = async (ctx: Deps, p: Params): Promise<OidbClearFriendRemark> => ({
|
||||
target: { targetUid: await ctx.resolveUserUid(p.userId) },
|
||||
});
|
||||
|
||||
export const deserialize = (_ctx: Deps, _: OidbEmpty): void => {};
|
||||
export const deserialize = (_ctx: Deps, _: OidbEmpty): void => {};
|
||||
|
||||
export const encode = (env: OidbBase<OidbClearFriendRemark>): Uint8Array =>
|
||||
protobuf_encode<OidbBase<OidbClearFriendRemark>>(env);
|
||||
export const encode = (env: OidbBase<OidbClearFriendRemark>): Uint8Array =>
|
||||
protobuf_encode<OidbBase<OidbClearFriendRemark>>(env);
|
||||
|
||||
export const decode = (bytes: Uint8Array): OidbBase<OidbEmpty> =>
|
||||
protobuf_decode<OidbBase<OidbEmpty>>(bytes);
|
||||
export const decode = (bytes: Uint8Array): OidbBase<OidbEmpty> =>
|
||||
protobuf_decode<OidbBase<OidbEmpty>>(bytes);
|
||||
|
||||
export const invoke = (deps: Deps, params: Params): Promise<void> =>
|
||||
invokeOidb(deps, ClearFriendRemark, params);
|
||||
export const invoke = (deps: Deps, params: Params): Promise<void> =>
|
||||
invokeOidb(deps, ClearFriendRemark, params);
|
||||
}
|
||||
Reference in new issue
Block a user