2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 23:27:17 +08:00

feat: 支持 webhook, close #695

This commit is contained in:
2026-01-08 23:04:37 +08:00
parent 978c9b2fc3
commit ab6e0903f5
13 changed files with 813 additions and 86 deletions

View File

@@ -0,0 +1,14 @@
import { http } from '@/utils'
export default {
// 获取 WebHook 列表
list: (page: number, limit: number): any => http.Get('/webhook', { params: { page, limit } }),
// 获取 WebHook 信息
get: (id: number): any => http.Get(`/webhook/${id}`),
// 创建 WebHook
create: (req: any): any => http.Post('/webhook', req),
// 修改 WebHook
update: (id: number, req: any): any => http.Put(`/webhook/${id}`, req),
// 删除 WebHook
delete: (id: number): any => http.Delete(`/webhook/${id}`)
}