Merge remote-tracking branch 'origin/main'

This commit is contained in:
linyuchen 2024-05-12 21:46:27 +08:00
commit 6eea52afdf
2 changed files with 2 additions and 20 deletions

View File

@ -1,17 +0,0 @@
import { WebApi } from '@/core/apis/webapi';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
interface PayloadType {
group_id: number;
content: string;
}
export class SetGroupNotice extends BaseAction<PayloadType, any> {
actionName = ActionName.GoCQHTTP_SetGroupNotice;
protected async _handle(payload: PayloadType) {
const group = payload.group_id.toString();
return await WebApi.setGroupNotice(group, payload.content);
}
}

View File

@ -58,9 +58,8 @@ export enum ActionName {
CleanCache = 'clean_cache', CleanCache = 'clean_cache',
GetCookies = 'get_cookies', GetCookies = 'get_cookies',
// 以下为go-cqhttp api // 以下为go-cqhttp api
GoCQHTTP_SendGroupNotice = '_send_group_notice',
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
GoCQHTTP_SetGroupNotice = '_send_group_notice', GoCQHTTP_SendGroupNotice = '_send_group_notice',
GoCQHTTP_GetGroupNotice = '_get_group_notice', GoCQHTTP_GetGroupNotice = '_get_group_notice',
GoCQHTTP_SendForwardMsg = 'send_forward_msg', GoCQHTTP_SendForwardMsg = 'send_forward_msg',
GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg', GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',