From febdf3b4775ce990fc80f671513d0c56ab9a42b6 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 07 七月 2025 16:12:23 +0800
Subject: [PATCH] no message
---
zy-asrs-flow/src/services/ant-design-pro/api.ts | 188 +++++++++++++++++++++++-----------------------
1 files changed, 94 insertions(+), 94 deletions(-)
diff --git a/zy-asrs-flow/src/services/ant-design-pro/api.ts b/zy-asrs-flow/src/services/ant-design-pro/api.ts
index b42bdfc..404ecf7 100644
--- a/zy-asrs-flow/src/services/ant-design-pro/api.ts
+++ b/zy-asrs-flow/src/services/ant-design-pro/api.ts
@@ -1,94 +1,94 @@
-// @ts-ignore
-/* eslint-disable */
-import { request } from '@umijs/max';
-
-/** 鑾峰彇褰撳墠鐨勭敤鎴� GET /api/currentUser */
-export async function currentUser(options?: { [key: string]: any }) {
- return request<{
- data: API.CurrentUser;
- }>('/api/currentUser', {
- method: 'GET',
- ...(options || {}),
- });
-}
-
-/** 閫�鍑虹櫥褰曟帴鍙� POST /api/login/outLogin */
-export async function outLogin(options?: { [key: string]: any }) {
- return request<Record<string, any>>('/api/login/outLogin', {
- method: 'POST',
- ...(options || {}),
- });
-}
-
-/** 鐧诲綍鎺ュ彛 POST /api/login/account */
-export async function login(body: API.LoginParams, options?: { [key: string]: any }) {
- return request<API.LoginResult>('/api/login/account', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 GET /api/notices */
-export async function getNotices(options?: { [key: string]: any }) {
- return request<API.NoticeIconList>('/api/notices', {
- method: 'GET',
- ...(options || {}),
- });
-}
-
-/** 鑾峰彇瑙勫垯鍒楄〃 GET /api/rule */
-export async function rule(
- params: {
- // query
- /** 褰撳墠鐨勯〉鐮� */
- current?: number;
- /** 椤甸潰鐨勫閲� */
- pageSize?: number;
- },
- options?: { [key: string]: any },
-) {
- return request<API.RuleList>('/api/rule', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
-}
-
-/** 鏇存柊瑙勫垯 PUT /api/rule */
-export async function updateRule(options?: { [key: string]: any }) {
- return request<API.RuleListItem>('/api/rule', {
- method: 'POST',
- data:{
- method: 'update',
- ...(options || {}),
- }
- });
-}
-
-/** 鏂板缓瑙勫垯 POST /api/rule */
-export async function addRule(options?: { [key: string]: any }) {
- return request<API.RuleListItem>('/api/rule', {
- method: 'POST',
- data:{
- method: 'post',
- ...(options || {}),
- }
- });
-}
-
-/** 鍒犻櫎瑙勫垯 DELETE /api/rule */
-export async function removeRule(options?: { [key: string]: any }) {
- return request<Record<string, any>>('/api/rule', {
- method: 'POST',
- data:{
- method: 'delete',
- ...(options || {}),
- }
- });
-}
+// @ts-ignore
+/* eslint-disable */
+import { request } from '@umijs/max';
+
+/** 鑾峰彇褰撳墠鐨勭敤鎴� GET /api/currentUser */
+export async function currentUser(options?: { [key: string]: any }) {
+ return request<{
+ data: API.CurrentUser;
+ }>('/api/currentUser', {
+ method: 'GET',
+ ...(options || {}),
+ });
+}
+
+/** 閫�鍑虹櫥褰曟帴鍙� POST /api/login/outLogin */
+export async function outLogin(options?: { [key: string]: any }) {
+ return request<Record<string, any>>('/api/login/outLogin', {
+ method: 'POST',
+ ...(options || {}),
+ });
+}
+
+/** 鐧诲綍鎺ュ彛 POST /api/login/account */
+export async function login(body: API.LoginParams, options?: { [key: string]: any }) {
+ return request<API.LoginResult>('/api/login/account', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 GET /api/notices */
+export async function getNotices(options?: { [key: string]: any }) {
+ return request<API.NoticeIconList>('/api/notices', {
+ method: 'GET',
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇瑙勫垯鍒楄〃 GET /api/rule */
+export async function rule(
+ params: {
+ // query
+ /** 褰撳墠鐨勯〉鐮� */
+ current?: number;
+ /** 椤甸潰鐨勫閲� */
+ pageSize?: number;
+ },
+ options?: { [key: string]: any },
+) {
+ return request<API.RuleList>('/api/rule', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鏇存柊瑙勫垯 PUT /api/rule */
+export async function updateRule(options?: { [key: string]: any }) {
+ return request<API.RuleListItem>('/api/rule', {
+ method: 'POST',
+ data:{
+ method: 'update',
+ ...(options || {}),
+ }
+ });
+}
+
+/** 鏂板缓瑙勫垯 POST /api/rule */
+export async function addRule(options?: { [key: string]: any }) {
+ return request<API.RuleListItem>('/api/rule', {
+ method: 'POST',
+ data:{
+ method: 'post',
+ ...(options || {}),
+ }
+ });
+}
+
+/** 鍒犻櫎瑙勫垯 DELETE /api/rule */
+export async function removeRule(options?: { [key: string]: any }) {
+ return request<Record<string, any>>('/api/rule', {
+ method: 'POST',
+ data:{
+ method: 'delete',
+ ...(options || {}),
+ }
+ });
+}
--
Gitblit v1.9.1