# OpenMeta 中文版 ## API Docs - Model APIs [copyById](https://api-cn.openmeta.info/api-249856064.md): 基于 id 复制一条记录,并返回新增记录的 id。 - Model APIs [copyByIdAndFetch](https://api-cn.openmeta.info/api-249856065.md): 基于 id 复制一条记录,并返回新增记录的数据。 - Model APIs [copyByIds](https://api-cn.openmeta.info/api-249856066.md): 基于 ids 复制多条数据,并返回新数据的 ids。 - Model APIs [copyByIdsAndFetch](https://api-cn.openmeta.info/api-249856067.md): 基于 ids 复制多条数据,并返回新增的数据列表。 - Model APIs [count](https://api-cn.openmeta.info/api-262442485.md): Returns a count or group counting based on the specified `filter`, `groupBy`, and `orders`. - Model APIs [createList](https://api-cn.openmeta.info/api-189489075.md): 批量创建并返回创建后的 id 列表。 - Model APIs [createListAndFetch](https://api-cn.openmeta.info/api-249856068.md): 批量创建数据,并从数据库返回最新数据结果。 - Model APIs [createOne](https://api-cn.openmeta.info/api-189489077.md): 创建单条数据并返回数据 ID。 - Model APIs [createOneAndFetch](https://api-cn.openmeta.info/api-249856069.md): 创建单条数据,并从数据库返回最新数据。 - Model APIs [deleteById](https://api-cn.openmeta.info/api-249856070.md): 根据 id 参数删除1条记录。时间轴模型,则会删除该 id 相关的所有切片记录。 - Model APIs [deleteByIds](https://api-cn.openmeta.info/api-249856071.md): 根据 ids 参数批量删除数据。 - Model APIs [deleteBySliceId](https://api-cn.openmeta.info/api-249856072.md): 根据 sliceId 参数删除时间轴模型1条切片记录。 - Model APIs [getById](https://api-cn.openmeta.info/api-262442486.md): Get one row by ID. - Model APIs [getByIds](https://api-cn.openmeta.info/api-262442487.md): Get multiple rows by IDs. - Model APIs [getCopyableFields](https://api-cn.openmeta.info/api-249856075.md): 基于 id 复制一条记录,并返回可复制的字段值,但是并不自动插入数据库,而是由客户端调用 Create 方法入库。 - Model APIs [getRowFiles](https://api-cn.openmeta.info/api-265308513.md): Get the fileInfos by modelName and rowId - Model APIs [getUnmaskedField](https://api-cn.openmeta.info/api-189489082.md): 获取指定字段的脱敏前数据,适用于原始字段是掩码脱敏字段。 - Model APIs [getUnmaskedFields](https://api-cn.openmeta.info/api-189489083.md): "获取多个字段的脱敏前数据,适用于原始字段是掩码脱敏字段。 - Model APIs [searchList](https://api-cn.openmeta.info/api-189489086.md): 根据指定的字段 fields、筛选条件 filters、排序条件 orders、分组计数字段,以及子查询条件,返回数据列表,不进行分页,但可以通过 pageSize 控制返回数据行数,默认返回 50 条数据。 - Model APIs [searchName](https://api-cn.openmeta.info/api-260144796.md): Query the displayNames based on the match field, filters, orders, limitSize. Default limit to 10. - Model APIs [searchPage](https://api-cn.openmeta.info/api-189489087.md): 根据指定的字段 fields、筛选条件 filters、排序条件 orders、页码 pageNumber、分页大小 pageSize、分组计数字段,以及子查询条件,返回分页数据,不传时使用后端默认值。 - Model APIs [searchPivot](https://api-cn.openmeta.info/api-189489088.md): 根据指定的字段 fields、筛选条件 filters、排序条件 orders、groupBy 字段、splitBy 字段,返回透视表数据。 - Model APIs [searchSimpleAgg](https://api-cn.openmeta.info/api-189489089.md): 纯粹的 SUM、AVG、MIN、MAX、COUNT 聚合函数查询。如: ["SUM", "amount"],返回值的 key 为驼峰字符串 sumAmount。 - Model APIs [updateByFilter](https://api-cn.openmeta.info/api-189489090.md): 根据筛选条件更新数据,当前用户权限范围内,符合筛选条件的数据都会被更新。 - Model APIs [updateList](https://api-cn.openmeta.info/api-189489091.md): 根据数据列表的 id 字段批量更新数据。成功返回 True,失败则抛出异常。 - Model APIs [updateListAndFetch](https://api-cn.openmeta.info/api-249856076.md): 根据数据列表的 id 字段批量更新数据,并从数据库返回更新后的数据列表。 - Model APIs [updateOne](https://api-cn.openmeta.info/api-189489093.md): 根据数据的 id 更新1条记录。成功返回 True,失败则抛出异常。 - Model APIs [updateOneAndFetch](https://api-cn.openmeta.info/api-249856077.md): 根据数据的 id 字段更新1条数据,并从数据库返回更新后的数据值。 - Model APIs [uploadFile](https://api-cn.openmeta.info/api-265308514.md): Upload a file to the specified model to bind with a field. - Model APIs [uploadFileToRow](https://api-cn.openmeta.info/api-265308515.md): Upload a file to the specified model and row, and return the fileInfo. - Toolkit [fixUnencryptedData](https://api-cn.openmeta.info/api-189489095.md): 修复未加密历史数据: - Toolkit [recompute](https://api-cn.openmeta.info/api-189489096.md): 重新计算历史数据: - Toolkit [validateExpression](https://api-cn.openmeta.info/api-280216606.md): Validates the expression. - ChangeLog [getChangeLog](https://api-cn.openmeta.info/api-216892484.md): Read the data change records according to the id, and return the page of the data change record, default in reverse order by change time. - ChangeLog [getSliceChangeLog](https://api-cn.openmeta.info/api-216892485.md): Read the timeline slice change log page according to sliceId, default in reverse order by change time. - ChangeLog [searchPage](https://api-cn.openmeta.info/api-216892486.md): Return paginated data based on the specified filters, sorting conditions, page number, page size. - ChangeLog [searchPageByModel](https://api-cn.openmeta.info/api-222295058.md): Return paginated data based on the specified filters, sorting conditions, page number, page size. - Export Template [listByModel](https://api-cn.openmeta.info/api-216892489.md): List all export templates of the specified model - File Record [getByFileId](https://api-cn.openmeta.info/api-265308512.md): Get the fileInfo by fileId - Import Template [getTemplateFile](https://api-cn.openmeta.info/api-216892491.md): Get the fileInfo of the import template by template ID. - Import Template [listByModel](https://api-cn.openmeta.info/api-216892492.md): List all import templates of the specified model - SysPreData [loadData](https://api-cn.openmeta.info/api-216892493.md): Load the specified list of predefined data files from the root directory resources/data, - SysPreData [uploadFile](https://api-cn.openmeta.info/api-216892494.md): - SysView [getModelViews](https://api-cn.openmeta.info/api-216892495.md): Get the list of views visible to the current user based on the model name. [Public views, personal views] and sorted by sequence. - SysView [setDefaultView](https://api-cn.openmeta.info/api-216892496.md): Set the current user's default view based on the model name and view ID: {"modelName": "Employee", "viewId": 1} - Data Export [dynamicExport](https://api-cn.openmeta.info/api-216892497.md): Export data by dynamic fields and QueryParams, without export template. - Data Export [exportByFileTemplate](https://api-cn.openmeta.info/api-216892498.md): Exported by file template and QueryParams - Data Export [exportByTemplate](https://api-cn.openmeta.info/api-216892499.md): Exported by exportTemplate with dynamic fields and QueryParams - Import [importWithoutTemplate](https://api-cn.openmeta.info/api-216892500.md): Import data from the uploaded file - Import [importByTemplate](https://api-cn.openmeta.info/api-216892501.md): Import data from the uploaded file - Metadata Upgrade API [reload](https://api-cn.openmeta.info/api-216892502.md): - Metadata Upgrade API [upgrade](https://api-cn.openmeta.info/api-216892503.md): - DeptInfo [readCustomize](https://api-cn.openmeta.info/api-222295059.md): Read customized department info by ID. - DocumentTemplate [generateDocument](https://api-cn.openmeta.info/api-245068889.md): Generate a word or PDF document according to the specified template ID and row ID. - SysModel [getModelFields](https://api-cn.openmeta.info/api-245068890.md): Get the fields of the model. - SysOptionSet [getOptionSetItems](https://api-cn.openmeta.info/api-245068891.md): Get the option set items of the specified option set code. - AiRobot [Chat API](https://api-cn.openmeta.info/api-250293867.md): Non-streaming Chat API - AiRobot [Stream Chat](https://api-cn.openmeta.info/api-250293868.md): Stream chat by SSE(Server-Sent Events). - FlowConfig [getByModel](https://api-cn.openmeta.info/api-250293869.md): Get flow list by model. - FlowConfig [getFlowById](https://api-cn.openmeta.info/api-250293870.md): Get flow config by ID. - SysCron [Execute multiple for once now](https://api-cn.openmeta.info/api-250293871.md): Immediately run the specified multiple cron jobs for once. - SysCron [Execute once now](https://api-cn.openmeta.info/api-250293872.md): Immediately run the specified cron job for once. - Flow Automation [API Event](https://api-cn.openmeta.info/api-250293873.md): Trigger the flow by API event. - Flow Automation [Onchange Event](https://api-cn.openmeta.info/api-250293875.md): Pass the current data and return a Map of field value changes that affect other fields. - Flow Automation [Simulate Event Message](https://api-cn.openmeta.info/api-250293876.md): Simulate flow triggering by passing a FlowEventMessage, suitable for scenarios such as ChangeLog, Cron, etc. - DesignAppEnv [getNotVersionedChanges](https://api-cn.openmeta.info/api-264006162.md): Get the not versioned changes of the App env. - DesignAppEnv [mergeBetweenEnv](https://api-cn.openmeta.info/api-264006163.md): Merge changes between environments. - DesignAppEnv [previewBetweenEnv](https://api-cn.openmeta.info/api-264006164.md): Preview changes between two environments. - DesignAppVersion [createOne](https://api-cn.openmeta.info/api-264006165.md): Create one row and return the id. - DesignAppVersion [publish](https://api-cn.openmeta.info/api-264006166.md): Publish the version to the target environment. - DesignAppVersion [reloadAppVersion](https://api-cn.openmeta.info/api-264006167.md): Reload App env changes to current version. - DesignModel [downloadCode](https://api-cn.openmeta.info/api-264006168.md): Download specified code file - DesignModel [downloadZip](https://api-cn.openmeta.info/api-264006169.md): Download model code package - DesignModel [previewCode](https://api-cn.openmeta.info/api-264006170.md): Preview the generated model code, including Java class code for Entity, Service, ServiceImpl, and Controller - DesignModel [previewDDL](https://api-cn.openmeta.info/api-264006171.md): Preview the DDL SQL of model, including table creation and index creation - RPC [RPC](https://api-cn.openmeta.info/api-283573496.md): - RPC [searchName Copy](https://api-cn.openmeta.info/api-283686317.md): Query the displayNames based on the match field, filters, orders, limitSize. Default limit to 10.