From d817157e2d5d1a46ade52e2af865ea99bc4591eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=B5=A9=E6=9E=97?= Date: Thu, 30 May 2024 14:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8F=90=E7=A4=BA=20(#6774)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../object_functions.en.objectTranslation.yml | 17 ++--------------- ...object_functions.zh-CN.objectTranslation.yml | 17 ++--------------- .../object_functions/fields/script.field.yml | 2 +- 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/services/standard-object-database/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml b/services/standard-object-database/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml index 7a704b7db7..e36b4e6d00 100644 --- a/services/standard-object-database/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml +++ b/services/standard-object-database/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml @@ -12,7 +12,7 @@ fields: is_rest: label: Enable API help: - description: allow the use of api interface access:/api/v1/:objectName/functions/:functionApiName + description: allow the use of api interface access:{POST/GET} /api/v1/:objectName/functions/:functionApiName is_system: label: System help: @@ -33,22 +33,9 @@ fields: label: Script help: description: | - async function run({ - input, - params, - broker, - getObject, - getUser - } = ctx) { + async function run(ctx) { // ... } - type: - label: Type - help: - description: - options: - - label: "Script" - value: "script" description: label: Description help: diff --git a/services/standard-object-database/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml b/services/standard-object-database/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml index 67b481d76b..54c36a9430 100644 --- a/services/standard-object-database/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml +++ b/services/standard-object-database/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml @@ -9,7 +9,7 @@ fields: is_rest: label: 启用API help: - description: 允许使用API接口访问:{POST} /api/v1/:objectName/functions/:functionApiName + description: 允许使用API接口访问:{POST/GET} /api/v1/:objectName/functions/:functionApiName is_system: label: 系统 help: @@ -30,22 +30,9 @@ fields: label: 代码 help: description: | - async function run({ - input, - params, - broker, - getObject, - getUser - } = ctx) { + async function run(ctx) { // ... } - type: - label: 类型 - help: - description: - options: - - label: "Script" - value: "script" description: label: 备注 help: diff --git a/services/standard-object-database/main/default/objects/object_functions/fields/script.field.yml b/services/standard-object-database/main/default/objects/object_functions/fields/script.field.yml index af23fd0038..1036381bca 100644 --- a/services/standard-object-database/main/default/objects/object_functions/fields/script.field.yml +++ b/services/standard-object-database/main/default/objects/object_functions/fields/script.field.yml @@ -7,7 +7,7 @@ required: true defaultValue: |- // global: {_:lodash, moment, validator, filters} // objects - // ctx.input + // ctx: {input, params, broker, getObject, getUser} editorDidMount: >- if(window._registerCompletionItemProviderFunction){ return ;