Appearance
获取表单详情 API
| Path | Method | Created At |
|---|---|---|
| /api/forms/ | GET | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| formId | integer,min:0 | 请指定表单的 ID |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | int | 18 | 编号 |
| formUuid | string | 2a3-feb1-441b-be | 唯一编号 |
| name | string | 技术交流记录表 | 名称 |
| fields | object_array | 字段 | |
| -> name | string | 张三 | 参与人员 |
| -> required | bool | true | 是否必填 |
| -> type | enum | FormFieldType | 字段类型 |
| -> settings | array | {} | 字段设置 |
| -> field_name | string | person | 字段名称 |
| -> description | string | 参与的人 | 字段描述 |
TypeScript Result Example:
TypeScript
interface Fields {
/** 参与人员 */
name: string;
/** 是否必填 */
required: any;
/** 字段类型 */
type: FieldsType;
/** 字段设置 */
settings: any;
/** 字段名称 */
field_name: string;
/** 字段描述 */
description: string;
}
interface Result {
/** 编号 */
id: number;
/** 唯一编号 */
formUuid: string;
/** 名称 */
name: string;
/** 字段 */
fields: Fields[];
}
enum FieldsType {
/** */
STRING = "STRING",
/** */
TEXT = "TEXT",
/** */
DATETIME = "DATETIME",
/** */
BOOLEAN = "BOOLEAN",
/** */
INTEGER = "INTEGER",
/** */
DECIMAL = "DECIMAL",
/** */
ENUM = "ENUM",
/** */
EMPLOYEE = "EMPLOYEE",
/** */
TREE = "TREE"
}Enums
FormFieldType
| Const | Description |
|---|---|
| STRING | |
| TEXT | |
| DATETIME | |
| BOOLEAN | |
| INTEGER | |
| DECIMAL | |
| ENUM | |
| EMPLOYEE | |
| TREE |