Skip to content

获取表单详情 API

PathMethodCreated At
/api/forms/GET2025-11-29 00:39:11

Request

KeyRuleDescription
formIdinteger,min:0请指定表单的 ID

Response

KeyTypeExampleComment
idint18编号
formUuidstring2a3-feb1-441b-be唯一编号
namestring技术交流记录表名称
fieldsobject_array字段
-> namestring张三参与人员
-> requiredbooltrue是否必填
-> typeenumFormFieldType字段类型
-> settingsarray{}字段设置
-> field_namestringperson字段名称
-> descriptionstring参与的人字段描述

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

ConstDescription
STRING
TEXT
DATETIME
BOOLEAN
INTEGER
DECIMAL
ENUM
EMPLOYEE
TREE