refactor: rm SetGroupNotice
This commit is contained in:
1 parent
4d821b6b61
commit
b2f69b3bda
2 files changed
+2
-19
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user