{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":1,"Name":"PCPage/项目审批"},{"State":1,"Type":1,"Name":"PCPage/客户基本信息"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":16,"Name":"TaskScheduler/项目表新增事件"},{"State":2,"Type":15,"Name":"ServerCommand/生成项目封面"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/生成项目封面"},{"State":3,"Type":15,"Name":"ServerCommand/从页面生成项目封面"}],"Version":"v1"}
This commit is contained in:
82
ServerCommands/AI/从页面生成项目封面.json
Normal file
82
ServerCommands/AI/从页面生成项目封面.json
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"Name": "从页面生成项目封面",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
||||
"Permission": {
|
||||
"PermissionData": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
||||
"permissionResource": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
||||
},
|
||||
"permissionBindings": [
|
||||
{
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
||||
"roleNames": [
|
||||
"FGC_LoginUser"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "项目ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"ParameterValue": "%CurrentUser%",
|
||||
"ID": "be6b3c5342a54ca8a8fbfdad6d1488a3"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "生成项目封面",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "项目ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=项目ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "当前用户",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,23 +3,7 @@
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
||||
"Permission": {
|
||||
"PermissionData": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
||||
"permissionResource": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
||||
},
|
||||
"permissionBindings": [
|
||||
{
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
||||
"roleNames": [
|
||||
"FGC_LoginUser"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "项目ID",
|
||||
@@ -27,6 +11,10 @@
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "13"
|
||||
},
|
||||
{
|
||||
"Name": "当前用户",
|
||||
"DataValidationInfo": {}
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
@@ -40,12 +28,6 @@
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"ParameterValue": "%CurrentUser%",
|
||||
"ID": "b9907689a4444b30ab6f2863f9702dda"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "项目",
|
||||
@@ -54,7 +36,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "0c6372c7-35b2-4d8f-9a28-fddaf84330ec",
|
||||
"GUID": "d7dd533a-f61e-493e-970b-c75065b89c4c",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目表",
|
||||
"ColumnName": "项目名称",
|
||||
@@ -63,7 +45,7 @@
|
||||
"ColumnName": "项目名称"
|
||||
},
|
||||
{
|
||||
"GUID": "20c6bf15-496b-4ac0-822a-9c3df517f53c",
|
||||
"GUID": "291e03d0-3fe3-4844-82dd-0269f040abac",
|
||||
"BindingInfo": {
|
||||
"TableName": "项目表",
|
||||
"ColumnName": "项目简介",
|
||||
@@ -86,7 +68,7 @@
|
||||
},
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "e91db780eb764a39bb3c08fe95083c24"
|
||||
"ID": "4258d9cad0ab46759a779ee7d5e19d41"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -201,6 +183,7 @@
|
||||
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
|
||||
"URL": "https://openai.api2d.net",
|
||||
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
|
||||
"ORGANIZATION": "",
|
||||
"IsDataSource": "json",
|
||||
"MessageJSON": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -320,39 +303,61 @@
|
||||
"OutParamaterName": "参数对象"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon",
|
||||
"NotificationName": "提醒通知",
|
||||
"SendType": 1,
|
||||
"UserNames": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
},
|
||||
"Params": [
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Name": "标题",
|
||||
"Value": "任务完成"
|
||||
},
|
||||
{
|
||||
"Name": "内容",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"项目\"&项目.项目名称&\"的封面已经生成完毕,记得看看哦~\""
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "类型",
|
||||
"Value": "打开页面",
|
||||
"Remark": "分为:打开页面、执行命令..."
|
||||
},
|
||||
{
|
||||
"Name": "参数对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=参数对象"
|
||||
}
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon",
|
||||
"NotificationName": "提醒通知",
|
||||
"SendType": 1,
|
||||
"UserNames": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
},
|
||||
"Params": [
|
||||
{
|
||||
"Name": "标题",
|
||||
"Value": "任务完成"
|
||||
},
|
||||
{
|
||||
"Name": "内容",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"项目\"&项目.项目名称&\"的封面已经生成完毕,记得看看哦~\""
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "类型",
|
||||
"Value": "打开页面",
|
||||
"Remark": "分为:打开页面、执行命令..."
|
||||
},
|
||||
{
|
||||
"Name": "参数对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=参数对象"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "34a32d9791db4e28a98c3e124753d6d8"
|
||||
}
|
||||
],
|
||||
"ID": "0780d347-fe3b-449d-bb35-58fe4d4ffd66"
|
||||
}
|
||||
],
|
||||
"ID": "2f75ccf37baf40af82ba7be5d052a5d6"
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
@@ -365,7 +370,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "8313122a-ccd7-4205-a4c0-ccaa96b07fd9"
|
||||
"ID": "d4280ccb-e4fe-42f7-b0c4-043474850622"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -375,12 +380,12 @@
|
||||
"Message": "项目资料不全,请在项目简介中尽量详细说明项目背景、使用场景、使用人群等。"
|
||||
}
|
||||
],
|
||||
"ID": "64bb754c-3f26-4d67-a73b-9c5e23c57a1b"
|
||||
"ID": "4c8a6cd8-f7d1-494f-aa73-e675cec22fe9"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "dc5669cc-9c9a-4cb6-91cd-77e47f09e9c9"
|
||||
"ID": "e0e0a881-a8ab-431b-91f3-563800e855ac"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -390,7 +395,7 @@
|
||||
"Message": "项目不存在"
|
||||
}
|
||||
],
|
||||
"ID": "1d51bd03-17f8-43f5-a9f2-b0de38ec89df"
|
||||
"ID": "1dfedf1f-5e08-4bc5-b6d0-71eb7263d44e"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -466,39 +471,61 @@
|
||||
"OutParamaterName": "参数对象"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon",
|
||||
"NotificationName": "提醒通知",
|
||||
"SendType": 1,
|
||||
"UserNames": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
},
|
||||
"Params": [
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Name": "标题",
|
||||
"Value": "生成项目图片失败"
|
||||
},
|
||||
{
|
||||
"Name": "内容",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ExceptionMessage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "类型",
|
||||
"Value": "打开页面",
|
||||
"Remark": "分为:打开页面、执行命令..."
|
||||
},
|
||||
{
|
||||
"Name": "参数对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=参数对象"
|
||||
}
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon",
|
||||
"NotificationName": "提醒通知",
|
||||
"SendType": 1,
|
||||
"UserNames": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
},
|
||||
"Params": [
|
||||
{
|
||||
"Name": "标题",
|
||||
"Value": "生成项目图片失败"
|
||||
},
|
||||
{
|
||||
"Name": "内容",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ExceptionMessage"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "类型",
|
||||
"Value": "打开页面",
|
||||
"Remark": "分为:打开页面、执行命令..."
|
||||
},
|
||||
{
|
||||
"Name": "参数对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=参数对象"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "36f09bdad8db44d69c390c4231083668"
|
||||
}
|
||||
],
|
||||
"ID": "ca8b0591-4ea0-40f5-b2b4-95a605c915c9"
|
||||
}
|
||||
],
|
||||
"ID": "cfd62bd647df4e64ba3428d7f54370d9"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user