-
Notifications
You must be signed in to change notification settings - Fork 228
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
6 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ScalarType } from "@protobuf-ts/runtime"; | ||
import { ProtoField } from "../NapProto"; | ||
|
||
export const OidbSvcTrpcTcp0XEB7_Body = { | ||
uin: ProtoField(1, ScalarType.STRING), | ||
groupUin: ProtoField(2, ScalarType.STRING), | ||
version: ProtoField(3, ScalarType.STRING), | ||
}; | ||
|
||
export const OidbSvcTrpcTcp0XEB7 = { | ||
body: ProtoField(2, () => OidbSvcTrpcTcp0XEB7_Body), | ||
} |
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,22 @@ | ||
import BaseAction from '../BaseAction'; | ||
import { ActionName } from '../types'; | ||
import { FromSchema, JSONSchema } from 'json-schema-to-ts'; | ||
|
||
const SchemaData = { | ||
type: 'object', | ||
properties: { | ||
group_id: { type: 'string' }, | ||
}, | ||
required: ['group_id'], | ||
} as const satisfies JSONSchema; | ||
|
||
type Payload = FromSchema<typeof SchemaData>; | ||
|
||
export class SetGroupSign extends BaseAction<Payload, any> { | ||
actionName = ActionName.SetGroupSign; | ||
payloadSchema = SchemaData; | ||
|
||
async _handle(payload: Payload) { | ||
return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id); | ||
} | ||
} |
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