build: 1.3.2-beta3

This commit is contained in:
手瓜一十雪
2024-05-11 13:10:34 +08:00
parent 3e27d5fcb0
commit ad4b84d446
4 changed files with 6 additions and 6 deletions

View File

@@ -6,6 +6,6 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
* 重置Rkey获取机制,使用接口分发Rkey
## 新增与调整
* 新增获取好友列表Api /get_friend_category
* 新增扩展获取好友分类列表 Api /get_friend_with_category
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -5,8 +5,8 @@ import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { buddyCategorType } from '@/core/entities/';
export class GetFriendCategory extends BaseAction<void, Array<buddyCategorType>> {
actionName = ActionName.GetFriendCategory;
export class GetFriendWithCategory extends BaseAction<void, Array<buddyCategorType>> {
actionName = ActionName.GetFriendWithCategory;
protected async _handle(payload: void) {
return buddyCategory.data;

View File

@@ -52,7 +52,7 @@ import { SetOnlineStatus } from './extends/SetOnlineStatus';
import { GetGroupNotice } from './group/GetGroupNotice';
import { GetGroupEssence } from './group/GetGroupEssence';
import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg';
import { GetFriendCategory } from './extends/GetFriendCategory';
import { GetFriendWithCategory } from './extends/GetFriendWithCategory';
export const actionHandlers = [
new GetFile(),
@@ -95,7 +95,7 @@ export const actionHandlers = [
//
new SetOnlineStatus(),
new GetRobotUinRange(),
new GetFriendCategory(),
new GetFriendWithCategory(),
//以下为go-cqhttp api
new GetGroupNotice(),
new GetGroupEssence(),

View File

@@ -57,7 +57,7 @@ export enum ActionName {
// 以下为扩展napcat扩展
GetRobotUinRange = 'get_robot_uin_range',
SetOnlineStatus = 'set_online_status',
GetFriendCategory = 'get_friend_category',
GetFriendWithCategory = 'get_friend_with_category',
// 以下为go-cqhttp api
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
GoCQHTTP_SetGroupNotice = '_send_group_notice',