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 ;