Files
AllinSSL/frontend/apps/allin-ssl/mardown/api.md
2026-01-13 17:47:39 +08:00

29 lines
627 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
分别生成以下相关的类型文件,在 types/ 目录下,以及 api 文件,在 api/目录下
文件名称如下:
home
autoDeploy
certManage
certApply
authAPIManage
monitor
settings
1、types文件命名方式{视图名称}.d.ts
2、api文件命名方式{视图名称}.ts
3、api文件结构如下
```typescript
import { useApi } from './index'
import type { loginParams, loginResponse } from '@/types/public'
/**
* 登录
* @param params 登录参数
* @returns 登录
*/
export const loginCloudControl = (params?: loginParams) => useApi<loginResponse, loginParams>('/v1/user/login', params)
```