| import { request } from '@umijs/max'; |
| /** 获取规则列表 GET /api/rule */ |
| export async function rule( |
| // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| options?: { [key: string]: any }, |
| return request<API.RuleList>('/api/rule', { |
| /** 新建规则 PUT /api/rule */ |
| export async function updateRule(options?: { [key: string]: any }) { |
| return request<API.RuleListItem>('/api/rule', { |
| /** 新建规则 POST /api/rule */ |
| export async function addRule(options?: { [key: string]: any }) { |
| return request<API.RuleListItem>('/api/rule', { |
| /** 删除规则 DELETE /api/rule */ |
| export async function removeRule(options?: { [key: string]: any }) { |
| return request<Record<string, any>>('/api/rule', { |