{"Message":"新增项目图片AI生成功能","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":15,"Name":"ServerCommand/AI对话"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":15,"Name":"ServerCommand/生成图片"},{"State":3,"Type":15,"Name":"ServerCommand/生成项目封面"}],"Version":"v1"}
This commit is contained in:
@@ -622,17 +622,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "PCPage/项目信息",
|
"ModuleName": "PCPage/项目信息",
|
||||||
"State": 1,
|
"ModuleType": 1
|
||||||
"LockedBy": {
|
|
||||||
"UserName": "超哥",
|
|
||||||
"Email": "phoben@qq.com"
|
|
||||||
},
|
|
||||||
"LockDateTime": "2024-06-20T23:34:22.4429258+08:00",
|
|
||||||
"ModuleType": 1,
|
|
||||||
"ToRemoveFiles": [
|
|
||||||
"Pages\\项目\\项目首页\\项目配置\\项目信息.json",
|
|
||||||
"Pages\\项目\\项目首页\\项目配置\\项目信息.rd"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "PCPage/项目岗位配置",
|
"ModuleName": "PCPage/项目岗位配置",
|
||||||
@@ -1132,16 +1122,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "ServerCommand/AI对话",
|
"ModuleName": "ServerCommand/AI对话",
|
||||||
"State": 1,
|
"ModuleType": 15
|
||||||
"LockedBy": {
|
|
||||||
"UserName": "超哥",
|
|
||||||
"Email": "phoben@qq.com"
|
|
||||||
},
|
|
||||||
"LockDateTime": "2024-06-20T23:15:35.5556518+08:00",
|
|
||||||
"ModuleType": 15,
|
|
||||||
"ToRemoveFiles": [
|
|
||||||
"ServerCommands\\AI\\AI对话.json"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "ShareCommandContainer/发起预算申请",
|
"ModuleName": "ShareCommandContainer/发起预算申请",
|
||||||
@@ -1540,47 +1521,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "Plugin",
|
"ModuleName": "Plugin",
|
||||||
"State": 1,
|
"ModuleType": 40
|
||||||
"LockedBy": {
|
|
||||||
"UserName": "超哥",
|
|
||||||
"Email": "phoben@qq.com"
|
|
||||||
},
|
|
||||||
"LockDateTime": "2024-06-20T23:42:18.9439273+08:00",
|
|
||||||
"ModuleType": 40,
|
|
||||||
"ToRemoveFiles": [
|
|
||||||
"Plugin\\Echarts图表-10_0_3_0.zip",
|
|
||||||
"Plugin\\Editormd-6_0_102_0.zip",
|
|
||||||
"Plugin\\Forguncy.CustomMenu.zip",
|
|
||||||
"Plugin\\Forguncy.PassListviewDataCommand.zip",
|
|
||||||
"Plugin\\JSON 序列化和反序列化-10_0_2_0.zip",
|
|
||||||
"Plugin\\JSON数据源-10_0_2_0.zip",
|
|
||||||
"Plugin\\Lottie动画插图-10_0_2_0.zip",
|
|
||||||
"Plugin\\Notiflix-9_0_103_0.zip",
|
|
||||||
"Plugin\\OPENAI套件-10_0_3_0.zip",
|
|
||||||
"Plugin\\PC组件包-格友工作室定制版-10_0_2_0.zip",
|
|
||||||
"Plugin\\SqlServerWrapper.zip",
|
|
||||||
"Plugin\\Tiny富文本编辑器-10_0_2_0.zip",
|
|
||||||
"Plugin\\UI操作工具箱-9_0_6_0.zip",
|
|
||||||
"Plugin\\Unlayer-9_0_103_0(1).zip",
|
|
||||||
"Plugin\\xTools快速开发工具包-9_0_4_0(1).zip",
|
|
||||||
"Plugin\\发送HTTP请求命令-10_0_2_0.zip",
|
|
||||||
"Plugin\\取消当前行-9_0_103_0.zip",
|
|
||||||
"Plugin\\增强关闭页面-9_0_6.zip",
|
|
||||||
"Plugin\\复制到剪贴板-7_0_3_0.zip",
|
|
||||||
"Plugin\\客户端缓存操作工具库-8_0_0_0.zip",
|
|
||||||
"Plugin\\富文本编辑器-10_0_2_0.zip",
|
|
||||||
"Plugin\\对象与集合操作工具-8_0_0_0.zip",
|
|
||||||
"Plugin\\异步运行命令-9_0_103_0.zip",
|
|
||||||
"Plugin\\支持预览的附件上传-10_0_2_0.zip",
|
|
||||||
"Plugin\\服务端缓存操作工具库-8_0_3_0.zip",
|
|
||||||
"Plugin\\模板引擎操作库-9_0_103_0.zip",
|
|
||||||
"Plugin\\用户管理命令 V2-10_0_2_0.zip",
|
|
||||||
"Plugin\\网络操作库-9_0_102_0.zip",
|
|
||||||
"Plugin\\裁剪并上传图片-9_0_102_0.zip",
|
|
||||||
"Plugin\\设置当前行命令-10_0_2_0.zip",
|
|
||||||
"Plugin\\设置焦点命令-10_0_2_0.zip",
|
|
||||||
"Plugin\\豪~豪插件合集-7_0_102_0.zip"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "PublishSetting",
|
"ModuleName": "PublishSetting",
|
||||||
@@ -1956,16 +1897,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "ServerCommand/生成图片",
|
"ModuleName": "ServerCommand/生成图片",
|
||||||
"State": 1,
|
"ModuleType": 15
|
||||||
"LockedBy": {
|
|
||||||
"UserName": "超哥",
|
|
||||||
"Email": "phoben@qq.com"
|
|
||||||
},
|
|
||||||
"LockDateTime": "2024-06-20T22:44:08.9247875+08:00",
|
|
||||||
"ModuleType": 15,
|
|
||||||
"ToRemoveFiles": [
|
|
||||||
"ServerCommands\\AI\\生成图片.json"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "PCPage/项目审批历史",
|
"ModuleName": "PCPage/项目审批历史",
|
||||||
@@ -2229,12 +2161,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModuleName": "ServerCommand/生成项目封面",
|
"ModuleName": "ServerCommand/生成项目封面",
|
||||||
"State": 3,
|
|
||||||
"LockedBy": {
|
|
||||||
"UserName": "超哥",
|
|
||||||
"Email": "phoben@qq.com"
|
|
||||||
},
|
|
||||||
"LockDateTime": "2024-06-20T23:16:19.1596143+08:00",
|
|
||||||
"ModuleType": 15
|
"ModuleType": 15
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
"BtnText": "知道了"
|
"BtnText": "知道了"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "cd91b969-6e6a-4bfd-a726-3fe5c9834c91"
|
"ID": "9acb2451-ae48-4800-b6c6-fa9e60fd3866"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CommandList": [
|
"CommandList": [
|
||||||
@@ -575,7 +575,7 @@
|
|||||||
"ReloadData": true
|
"ReloadData": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "e3936fb9-907b-4b35-985a-6ff20689c483"
|
"ID": "b7b29ea8-b6e6-481f-b2c2-84f463b41b48"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CommandList": [
|
"CommandList": [
|
||||||
@@ -590,12 +590,12 @@
|
|||||||
"BtnText": "知道了"
|
"BtnText": "知道了"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "419a06e5-7d6a-4836-b766-2fe98a107805"
|
"ID": "613913a3-9063-4ff0-9357-3a228a9f6cec"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "7526f7e0-d076-41ac-a084-7228fb07765a"
|
"ID": "9c6a3c26-4f07-4a70-84dc-a39f64bd25e2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -783,24 +783,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"CommandList": [
|
"CommandList": [
|
||||||
{
|
|
||||||
"$type": "Notiflix_Forguncy.Block_Command, Notiflix_Forguncy",
|
|
||||||
"Cell": {
|
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
||||||
"SerializeProperty": "=项目信息!B5"
|
|
||||||
},
|
|
||||||
"Title": "加载中"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||||
"ServerCommandName": "生成图片",
|
"ServerCommandName": "生成项目封面",
|
||||||
"Parameters": [
|
"Parameters": [
|
||||||
{
|
{
|
||||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||||
"ParamName": "Prompt",
|
"ParamName": "项目ID",
|
||||||
"Value": {
|
"Value": {
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
"SerializeProperty": "=\"生成一个封面图片,项目名称:\"&项目信息!G5&\",项目介绍:\"&项目信息!G8&\",请生成适合它的主题图片,要求真实摄影风格,具有商务、工作的特点,色彩清爽、低饱和度。\""
|
"SerializeProperty": "=项目信息!项目ID"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -810,78 +802,16 @@
|
|||||||
"ResultMessageTo": {
|
"ResultMessageTo": {
|
||||||
"SerializeProperty": "msg"
|
"SerializeProperty": "msg"
|
||||||
},
|
},
|
||||||
"ReturnPropertiesTo": [
|
"RequestAsync": true,
|
||||||
{
|
|
||||||
"ResultPropertyName": "图片地址",
|
|
||||||
"ResultTo": {
|
|
||||||
"SerializeProperty": "img"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"RefreshAfterFinish": true,
|
"RefreshAfterFinish": true,
|
||||||
"CheckDataValidation": true
|
"CheckDataValidation": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$type": "Notiflix_Forguncy.Block_Command, Notiflix_Forguncy",
|
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
|
||||||
"FunctionName": "remove",
|
"Message": "图片生成耗时较久,将在后台生成,请稍后查看!"
|
||||||
"Cell": {
|
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
||||||
"SerializeProperty": "=项目信息!B5"
|
|
||||||
},
|
|
||||||
"Title": "加载中"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
||||||
"ConditionAndCommandPairList": [
|
|
||||||
{
|
|
||||||
"Condition": {
|
|
||||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
||||||
"param": {
|
|
||||||
"$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon",
|
|
||||||
"cellLocations": [
|
|
||||||
{
|
|
||||||
"SerializeProperty": "=code"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"value": "0"
|
|
||||||
},
|
|
||||||
"CommandList": [
|
|
||||||
{
|
|
||||||
"$type": "Forguncy.Model.SetCellPropertyCommand, ServerDesignerCommon",
|
|
||||||
"PropertyItemsList": [
|
|
||||||
{
|
|
||||||
"TargetCells": {
|
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
||||||
"SerializeProperty": "=项目信息!B5"
|
|
||||||
},
|
|
||||||
"Value": {
|
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
||||||
"SerializeProperty": "=项目信息!img"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ID": "a1345821-3667-441b-9272-c5db82e4ebe5"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"CommandList": [
|
|
||||||
{
|
|
||||||
"$type": "Notiflix_Forguncy.Notify_Command, Notiflix_Forguncy",
|
|
||||||
"FourStandardStyle": "warning",
|
|
||||||
"Message": {
|
|
||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
||||||
"SerializeProperty": "=项目信息!msg"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ID": "fd80a101-925f-4b7c-907a-e91d98c155ae"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "b0a7847c-be46-4182-b323-b0b2ff77c448"
|
"ID": "a0612fa2-5a1c-4025-aff4-1b542dbca5d3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CommandList": [
|
"CommandList": [
|
||||||
@@ -891,7 +821,7 @@
|
|||||||
"Message": "请填写项目名称和项目简介"
|
"Message": "请填写项目名称和项目简介"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "38478ef4-3885-4fa0-a082-780c01b7a91c"
|
"ID": "28f0a7f7-984c-42b7-b30e-00db30963358"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1053,7 +983,7 @@
|
|||||||
"MethodName": "ReloadBindingItems"
|
"MethodName": "ReloadBindingItems"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "63cfc35b-0945-4b9d-ad8a-c7642e5b370c"
|
"ID": "2770a5d5-c7bb-43c7-87a8-bf04ef670e78"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1261,7 +1191,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "df829e54-e6aa-413a-bf34-c7ab4cf51702"
|
"ID": "fa299c45-97ed-4842-957d-0d911a4a5a0a"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -2620,4 +2550,4 @@
|
|||||||
"Formula": "项目信息!$M$36"
|
"Formula": "项目信息!$M$36"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}//qxk3wSwU0MXw1cbgr1DyzmAQZKbHi38BQECHBF+MVjqBSAWGXy+5bo6+jXg5FvUCk72xL7KPuSbBs8HLENxtf2Y5Q+v6stu71ldyidSsrPCTR2E3zCULKh4/DzvxbhrO63n1MUR3r4zrwm0FTNJ3R8j0eYA/w9idG6uFgT5BdK5UMlf1O6JKhfeAW3A+hZqfsHTdMfHMPQI763hrJ1XHdOpDUOIkIU+F7ziPPgH6fB3KwvGNsuUJXmatDw+cidAXCW0ljRFafHbop6TtdsMlfKmUfVVFIl4whmzoZXE7L9i9DMApoU8IA5Sys7fgcriaOiX8i6Q7CAexIjVOoVI7v7p/YHY4ENeoXZyj9YOfIaw/w3eSo2zjuWhY1U4DmGGQOKwppGjWDM/bRQrsznMv9HN14nq83npLAS6OREb5eh6KMVn5jq37nErT7e0Stvm6PbWDNn0IJxL4MSiRSIiMjl119rlNWn3CioZEkoCjb0OW5HVCEUzWPAFaWJMdkETlMPaTnueR9ZNkcVw2YJaMlbkMX6IaiyXlAaJp1PRKh7yJmps/PL/HpJo2Ig2yaBbelky/mx6Mm+rD2ErOWom7YeLDiy1Rt7C0l3aJSjf31fyQ2jt5Yotn+JmRYFN0uU+8hpe5MNfjMVtvKjFlDFJluGlKE+XM6i32oHrvhva+1kXkRu8uAv7aNP8i8oYrXvsmlh3xKQ0rx6gRa3n5ZCJ2qUVDgcMuV68C55AFN52XF7xAOj7X2Z6YvEuXAu+ZbR2+QIirQOAUQFitYhQXcnEdu3uhfP913kih5fw5B3PR9ZAcacpL8+EkWnqH2iQbPzeybeqKZqINPGTvGj5VeDTJTwQ/VnD+GTuWG1XyEh0uAR1VF+LDPuxXthdKg3GUvgaWfM8CSgtBkkE1th2y44balw==|920
|
}//5Tf3meDuzephwE8+K14oIR0zQ/H6vqROkX4uwdlTcJ4tJAvgpofAf0LJXHCFqC0g6l224vw1HclswZB03TDLgHNdRzcG9o1vy1eZ5faKeEdh3Rjou2gbxeTAUpFXDzsYeqUSNorhi5/FkUPRYgIEXNwlXdcCv/Mh85pL35kxKqwY9FRQPJp50xRuy/JAbgsGyEoJCUUJ76JyD4YoPxJifZO0md3i+SahfkmLunfTqs9t0ZpkEOhvBbVIRE5G4tsfMrQKy5rN4W0sqDX/s9ilKUWVlSDpb03UvbAlr5cz5OKd+FeRnojBlty6KYbUFfUwtZG2WNfbS8fXNNkonvnvXJeZDM4oX2CyJ9fi6wOZT1ChhWVyOw/+16HGNVai2KBObIBNkXTKxdk39FSVreOesfJR1jLdtQGGcVLdWREZgWtlwhqphzp+W+GD5H/jMXfoRvN2gqc58JEFTCSIp+9mZyO7vWnG4Im542z5Tzs8Yw9trzE99x8xi1hPNfdjdWQXTy8ROIguBJ3t6VQLBbeJdDV9/LcmdV6qgssMrQ3s5Dcqoov/AkVmv9jDURypUtjXVgKQgRRzt/EWWo+BWdv+NsTkWvxvjuUsac+hiXouCmVtgkL4SlVhLmbvLX+YCBOGyJLYyHUuC0RfCfJrbJU85jDWcSSUyw3fCZ1ESj0BeQUfUqHLTIy8qy3QvupTED0k31gYkHCJa9/NVvsygkwq/wrRAcapeKGszbe7aklT44RX+sdqXRRBcBM06PBl4+2B80d1R5sApIXKYbmTGecm0yilRfk1LOknz1Ygnvi9hUXvqufM9IiTRn0cpqvrzzxsmIeIFqkoRm0z6g19l4KLJYUnIpltnhTiDCpJvnsvrJ50JO9ca8gCqBwJROVQpYnWpPIYixP1zUQaoGK0Zq++8w==|920
|
||||||
Binary file not shown.
@@ -119,7 +119,7 @@
|
|||||||
"ParamNameToSaveNewRowValue": "主题信息"
|
"ParamNameToSaveNewRowValue": "主题信息"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "d6c5daec-d717-4b22-8215-9379e8c3ba49"
|
"ID": "d6b8fb4a-01bd-4371-99f1-18aaa3b4c169"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -343,7 +343,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "dcb2c40e-7342-4438-8034-5ff4d3a55bbf"
|
"ID": "03d86005-473f-46ad-b5e1-b31f48cef5c1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -353,7 +353,7 @@
|
|||||||
"Message": "回答完毕"
|
"Message": "回答完毕"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "012d2a10-875b-40e8-b595-d86228756ec6"
|
"ID": "6c2da05e-4900-40ba-8eb5-96411b30c69e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CommandList": [
|
"CommandList": [
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
"Message": "请输入消息"
|
"Message": "请输入消息"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ID": "d9d8d0df-a096-48b9-8943-62021295df07"
|
"ID": "ee0ed562-635a-4011-9c69-4b9266f42647"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,13 +48,12 @@
|
|||||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
"SerializeProperty": "=Prompt"
|
"SerializeProperty": "=Prompt"
|
||||||
},
|
},
|
||||||
"Model": "dall-e-3",
|
|
||||||
"Size": "512x512",
|
"Size": "512x512",
|
||||||
"Number": 1,
|
"Number": 1,
|
||||||
"Style": "natural",
|
"Style": "natural",
|
||||||
"Quality": "standard",
|
"Quality": "standard",
|
||||||
"Response_format": "b64_json",
|
|
||||||
"UserName": "Administrator",
|
"UserName": "Administrator",
|
||||||
|
"FileName": "新生成的图片",
|
||||||
"ResultTo": "result"
|
"ResultTo": "result"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
374
ServerCommands/AI/生成项目封面.json
Normal file
374
ServerCommands/AI/生成项目封面.json
Normal file
@@ -0,0 +1,374 @@
|
|||||||
|
{
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"TestData": "2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"InvokeTriggerTestData": {
|
||||||
|
"UserName": "Administrator"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Commands": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||||
|
"ParameterName": "当前用户",
|
||||||
|
"ParameterValue": "%CurrentUser%",
|
||||||
|
"ID": "28b1de6dd9b246fe8ab029030e502ed0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||||
|
"ParameterName": "项目",
|
||||||
|
"TableValue": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"TableValueType": 1,
|
||||||
|
"BindingInfos": [
|
||||||
|
{
|
||||||
|
"GUID": "d2c29a63-a2e8-413c-b1d0-56474a78b2b2",
|
||||||
|
"BindingInfo": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ColumnName": "项目名称",
|
||||||
|
"GUID": "2e422ab6-d64e-4a2e-9ff2-9878808d3c5c"
|
||||||
|
},
|
||||||
|
"ColumnName": "项目名称"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GUID": "8163ca70-051a-4cb2-ae0f-bedd0b91de5c",
|
||||||
|
"BindingInfo": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ColumnName": "项目简介",
|
||||||
|
"GUID": "cc7282d1-923f-4221-b499-88fbf12d02ab"
|
||||||
|
},
|
||||||
|
"ColumnName": "项目简介"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"SqlCondition": {
|
||||||
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||||
|
"ColumnBindingInfo": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ColumnName": "ID",
|
||||||
|
"GUID": "deb5d689-0982-43f4-a5c0-7daeebaee349"
|
||||||
|
},
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=项目ID"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"TopCount": "1"
|
||||||
|
},
|
||||||
|
"ID": "fc63a37bbd2c40148f97f2f337607c77"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||||
|
"ConditionAndCommandPairList": [
|
||||||
|
{
|
||||||
|
"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.ConditionCommand, ServerDesignerCommon",
|
||||||
|
"ConditionAndCommandPairList": [
|
||||||
|
{
|
||||||
|
"Condition": {
|
||||||
|
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||||
|
"SubConditions": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||||
|
"param": {
|
||||||
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||||
|
"ParamObject": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=项目.项目名称"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"value": "%Null%",
|
||||||
|
"compareType": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||||
|
"param": {
|
||||||
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||||
|
"ParamObject": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=项目.项目简介"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"value": "%Null%",
|
||||||
|
"compareType": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||||
|
"param": {
|
||||||
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||||
|
"ParamObject": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=LEN(项目.项目简介)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"value": "12",
|
||||||
|
"compareType": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"CommandList": [
|
||||||
|
{
|
||||||
|
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
||||||
|
"OperationParamaterPairs": [
|
||||||
|
{
|
||||||
|
"Name": "role",
|
||||||
|
"Value": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "content",
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=\"我的项目名称为:\"&项目.项目名称&\",项目简介:\"&项目.项目简介&\"。请你发挥创意,帮我生成一段英文描述词,回复中请不要携带任何引导语、说明语,只能返回你生成的图片描述。\""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"OutParamaterName": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||||
|
"InParamater": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=user"
|
||||||
|
},
|
||||||
|
"Operation": 15,
|
||||||
|
"OutParamaterName": "消息列表"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
|
||||||
|
"URL": "https://openai.api2d.net",
|
||||||
|
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
|
||||||
|
"ORGANIZATION": "",
|
||||||
|
"IsDataSource": "json",
|
||||||
|
"MessageJSON": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=消息列表"
|
||||||
|
},
|
||||||
|
"Parameter": {
|
||||||
|
"Model": 38,
|
||||||
|
"Temperature": 1.0,
|
||||||
|
"TopP": 1.0,
|
||||||
|
"MaxTokens": 100,
|
||||||
|
"SystemContent": "我需要为我的项目生成一张封面图片,需要你帮我生成Prompt英文关键词,用来描述这张图片,以便AI能够准确生成,你可以根据我提供的项目信息,来生成合适的图片描述,以职业、商务、工作主题为主,风格为真实摄影,场景可以是办公楼、办公室、工作场景等,灯光明亮自然,可以抽象一些,而且不要包含明显人物。需要注意的是,你的回复应该只包含我需要的描述,不需要任何其他引导性、说明性文字。",
|
||||||
|
"Response_format": "text"
|
||||||
|
},
|
||||||
|
"Tools": [],
|
||||||
|
"ResultTo": "result",
|
||||||
|
"CommandList": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||||
|
"ParameterName": "Prompt",
|
||||||
|
"ParameterValue": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=result.content"
|
||||||
|
},
|
||||||
|
"ID": "655e2ed0116d42d1910e21f5c52be130"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||||
|
"ServerCommandName": "生成图片",
|
||||||
|
"Parameters": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||||
|
"ParamName": "Prompt",
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=Prompt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ResultErrorCodeTo": {
|
||||||
|
"SerializeProperty": "code"
|
||||||
|
},
|
||||||
|
"ResultMessageTo": {
|
||||||
|
"SerializeProperty": "msg"
|
||||||
|
},
|
||||||
|
"ReturnPropertiesTo": [
|
||||||
|
{
|
||||||
|
"ResultPropertyName": "图片地址",
|
||||||
|
"ResultTo": {
|
||||||
|
"SerializeProperty": "图片地址"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RefreshAfterFinish": true,
|
||||||
|
"CheckDataValidation": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ShowConfirm": false,
|
||||||
|
"RowsToUpdate": 1,
|
||||||
|
"RowsToUpdateCondition": {
|
||||||
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||||
|
"ColumnBindingInfo": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ColumnName": "ID",
|
||||||
|
"GUID": "e97813c0-1ef7-4799-9af9-b2e4b8af270a"
|
||||||
|
},
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=项目ID"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"UpdateBindingValues": [
|
||||||
|
{
|
||||||
|
"BindingInfo": {
|
||||||
|
"TableName": "项目表",
|
||||||
|
"ColumnName": "项目封面",
|
||||||
|
"GUID": "b723f549-8cc0-4816-981e-9754b294aa55"
|
||||||
|
},
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=图片地址"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
||||||
|
"OperationParamaterPairs": [
|
||||||
|
{
|
||||||
|
"Name": "页面名称",
|
||||||
|
"Value": "项目首页"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "打开方式",
|
||||||
|
"Value": "跳转页面"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "打开样式"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "主题",
|
||||||
|
"Value": "成功"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "传值",
|
||||||
|
"Value": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=项目ID"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "目标单元格",
|
||||||
|
"Value": "项目ID"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"OutParamaterName": "参数对象"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$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": "31fe719227d54079a1094a6ba7a1d41c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||||
|
"ErrorCode": "0",
|
||||||
|
"Message": {
|
||||||
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||||
|
"SerializeProperty": "=图片地址"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ID": "41779c76-11b9-47f0-8622-79c68cf20051"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"CommandList": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||||
|
"ErrorCode": "400",
|
||||||
|
"Message": "项目资料不全,请在项目简介中尽量详细说明项目背景、使用场景、使用人群等。"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ID": "6ce09b77-fba4-4287-b7b9-4cd5e7aad5f5"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ID": "510729d7-9775-49ea-8844-c5f9cbe070b6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"CommandList": [
|
||||||
|
{
|
||||||
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||||
|
"ErrorCode": "400",
|
||||||
|
"Message": "项目不存在"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ID": "e4f3d3d5-142b-41d4-99f8-74fb9f34e138"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user