mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-15 12:50:33 +00:00
build: 1.3.2-beta3
This commit is contained in:
parent
3e27d5fcb0
commit
ad4b84d446
@ -6,6 +6,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
|||||||
* 重置Rkey获取机制,使用接口分发Rkey
|
* 重置Rkey获取机制,使用接口分发Rkey
|
||||||
|
|
||||||
## 新增与调整
|
## 新增与调整
|
||||||
* 新增获取好友列表Api /get_friend_category
|
* 新增扩展获取好友分类列表 Api /get_friend_with_category
|
||||||
|
|
||||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import BaseAction from '../BaseAction';
|
|||||||
import { ActionName } from '../types';
|
import { ActionName } from '../types';
|
||||||
import { buddyCategorType } from '@/core/entities/';
|
import { buddyCategorType } from '@/core/entities/';
|
||||||
|
|
||||||
export class GetFriendCategory extends BaseAction<void, Array<buddyCategorType>> {
|
export class GetFriendWithCategory extends BaseAction<void, Array<buddyCategorType>> {
|
||||||
actionName = ActionName.GetFriendCategory;
|
actionName = ActionName.GetFriendWithCategory;
|
||||||
|
|
||||||
protected async _handle(payload: void) {
|
protected async _handle(payload: void) {
|
||||||
return buddyCategory.data;
|
return buddyCategory.data;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ import { SetOnlineStatus } from './extends/SetOnlineStatus';
|
|||||||
import { GetGroupNotice } from './group/GetGroupNotice';
|
import { GetGroupNotice } from './group/GetGroupNotice';
|
||||||
import { GetGroupEssence } from './group/GetGroupEssence';
|
import { GetGroupEssence } from './group/GetGroupEssence';
|
||||||
import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg';
|
import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg';
|
||||||
import { GetFriendCategory } from './extends/GetFriendCategory';
|
import { GetFriendWithCategory } from './extends/GetFriendWithCategory';
|
||||||
|
|
||||||
export const actionHandlers = [
|
export const actionHandlers = [
|
||||||
new GetFile(),
|
new GetFile(),
|
||||||
@ -95,7 +95,7 @@ export const actionHandlers = [
|
|||||||
//
|
//
|
||||||
new SetOnlineStatus(),
|
new SetOnlineStatus(),
|
||||||
new GetRobotUinRange(),
|
new GetRobotUinRange(),
|
||||||
new GetFriendCategory(),
|
new GetFriendWithCategory(),
|
||||||
//以下为go-cqhttp api
|
//以下为go-cqhttp api
|
||||||
new GetGroupNotice(),
|
new GetGroupNotice(),
|
||||||
new GetGroupEssence(),
|
new GetGroupEssence(),
|
||||||
|
|||||||
@ -57,7 +57,7 @@ export enum ActionName {
|
|||||||
// 以下为扩展napcat扩展
|
// 以下为扩展napcat扩展
|
||||||
GetRobotUinRange = 'get_robot_uin_range',
|
GetRobotUinRange = 'get_robot_uin_range',
|
||||||
SetOnlineStatus = 'set_online_status',
|
SetOnlineStatus = 'set_online_status',
|
||||||
GetFriendCategory = 'get_friend_category',
|
GetFriendWithCategory = 'get_friend_with_category',
|
||||||
// 以下为go-cqhttp api
|
// 以下为go-cqhttp api
|
||||||
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
||||||
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user