feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件

This commit is contained in:
2025-09-23 10:32:35 +08:00
parent 10ddfd6f75
commit 408b500b6a
199 changed files with 16850 additions and 34874 deletions
@@ -0,0 +1,25 @@
import { request } from 'umi';
export interface TokenItem {
tokenValue: string;
expiration?: string;
username?: string;
grantType?: string;
clientId?: string;
accountType?: string;
}
export const tokenApi = {
page: async (params: { current?: number; pageSize?: number; tenantId: string; username?: string }) => {
if (!params?.tenantId) return { data: [], total: 0 };
const res = await request('/api-uaa/tokens', { method: 'GET', params: { page: params.current, limit: params.pageSize, ...params } });
const data = (res as any).data;
const total = (res as any).count ?? data?.length ?? 0;
return { data, total } as { data: TokenItem[]; total: number };
},
delete: async (token: string) => {
const res = await request('/api-uaa/oauth/remove/token', { method: 'DELETE', params: { token } });
return (res as any).data || res;
},
};