{"Message":"1. 增加AI生成项目图片功能(尚未测试通);","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/项目信息"},{"State":1,"Type":15,"Name":"ServerCommand/AI对话"},{"State":1,"Type":40,"Name":"Plugin"},{"State":3,"Type":15,"Name":"ServerCommand/生成图片"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-16 18:37:40 +08:00
parent 0080f24090
commit 9307528f5e
6 changed files with 642 additions and 422 deletions

View File

@@ -622,17 +622,7 @@
}, },
{ {
"ModuleName": "PCPage/项目信息", "ModuleName": "PCPage/项目信息",
"State": 1, "ModuleType": 1
"LockedBy": {
"UserName": "超哥",
"Email": "phoben@qq.com"
},
"LockDateTime": "2024-06-16T18:21:14.049083+08:00",
"ModuleType": 1,
"ToRemoveFiles": [
"Pages\\项目\\项目首页\\项目配置\\项目信息.json",
"Pages\\项目\\项目首页\\项目配置\\项目信息.rd"
]
}, },
{ {
"ModuleName": "PCPage/项目岗位配置", "ModuleName": "PCPage/项目岗位配置",
@@ -1160,16 +1150,7 @@
}, },
{ {
"ModuleName": "ServerCommand/AI对话", "ModuleName": "ServerCommand/AI对话",
"State": 1, "ModuleType": 15
"LockedBy": {
"UserName": "超哥",
"Email": "phoben@qq.com"
},
"LockDateTime": "2024-06-16T18:12:37.0626206+08:00",
"ModuleType": 15,
"ToRemoveFiles": [
"ServerCommands\\AI\\AI对话.json"
]
}, },
{ {
"ModuleName": "ShareCommandContainer/发起预算申请", "ModuleName": "ShareCommandContainer/发起预算申请",
@@ -1577,46 +1558,7 @@
}, },
{ {
"ModuleName": "Plugin", "ModuleName": "Plugin",
"State": 1, "ModuleType": 40
"LockedBy": {
"UserName": "超哥",
"Email": "phoben@qq.com"
},
"LockDateTime": "2024-06-16T18:37:19.5658685+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\\OPENAIFORGUNCY.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\\xTools快速开发工具包-9_0_4_0(1).zip",
"Plugin\\加载动画-10_0_2_0.zip",
"Plugin\\发送HTTP请求命令-10_0_2_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\\甘特图-10_0_2_0.zip",
"Plugin\\用户管理命令 V2-10_0_2_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",
@@ -2028,12 +1970,6 @@
}, },
{ {
"ModuleName": "ServerCommand/生成图片", "ModuleName": "ServerCommand/生成图片",
"State": 3,
"LockedBy": {
"UserName": "超哥",
"Email": "phoben@qq.com"
},
"LockDateTime": "2024-06-16T18:13:09.5965725+08:00",
"ModuleType": 15 "ModuleType": 15
} }
] ]

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +1,15 @@
{ {
"PageType": 0, "PageType": 0,
"ColumnCount": 22, "ColumnCount": 22,
"RowCount": 36, "RowCount": 37,
"Formulas": { "Formulas": {
"9,1": "TEXT(E36,\"yyyy-mm-dd\")&\",\"&TEXT(I36,\"yyyy-mm-dd\")", "10,15": "DATEDIF(E37,I37,\"d\")",
"9,15": "DATEDIF(E36,I36,\"d\")" "10,1": "TEXT(E37,\"yyyy-mm-dd\")&\",\"&TEXT(I37,\"yyyy-mm-dd\")"
}, },
"CustomNames": [ "CustomNames": [
{ {
"Name": "项目ID", "Name": "项目ID",
"Formula": "项目信息!$B$36" "Formula": "项目信息!$B$37"
} }
] ]
} }

View File

@@ -43,7 +43,7 @@
"TableValueType": 1, "TableValueType": 1,
"BindingInfos": [ "BindingInfos": [
{ {
"GUID": "a9b60d4b-d619-4d43-b6f0-b94a360cadbc", "GUID": "7279057e-3b7f-4107-ba4a-e3a05dd993be",
"BindingInfo": { "BindingInfo": {
"TableName": "对话主题", "TableName": "对话主题",
"ColumnName": "ID", "ColumnName": "ID",
@@ -52,7 +52,7 @@
"ColumnName": "ID" "ColumnName": "ID"
}, },
{ {
"GUID": "5ce898a4-1e9b-47df-ba38-92acdf04fcb0", "GUID": "b75193c7-b3cf-4a34-b095-f00dc18cf561",
"BindingInfo": { "BindingInfo": {
"TableName": "对话主题", "TableName": "对话主题",
"ColumnName": "主题", "ColumnName": "主题",
@@ -75,7 +75,7 @@
}, },
"NullFormulaValueQueryPolicy": 0 "NullFormulaValueQueryPolicy": 0
}, },
"ID": "227381e6e4ba4eea943dd8ac970fd44e" "ID": "6b4bb154d8474e388bad84d8baa146aa"
}, },
{ {
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -119,7 +119,7 @@
"ParamNameToSaveNewRowValue": "主题信息" "ParamNameToSaveNewRowValue": "主题信息"
} }
], ],
"ID": "5669d718-dd46-494d-90d8-c78b3378dad5" "ID": "d6c5daec-d717-4b22-8215-9379e8c3ba49"
} }
] ]
}, },
@@ -343,7 +343,7 @@
] ]
} }
], ],
"ID": "78ccadab-639c-4382-946e-5d22769fab8c" "ID": "dcb2c40e-7342-4438-8034-5ff4d3a55bbf"
} }
] ]
}, },
@@ -353,7 +353,7 @@
"Message": "回答完毕" "Message": "回答完毕"
} }
], ],
"ID": "2d20d7f3-ed29-4761-9e57-8aa7f650d36c" "ID": "012d2a10-875b-40e8-b595-d86228756ec6"
}, },
{ {
"CommandList": [ "CommandList": [
@@ -363,7 +363,7 @@
"Message": "请输入消息" "Message": "请输入消息"
} }
], ],
"ID": "6a4ee3b1-3c29-4f84-a595-1034dd561bf9" "ID": "d9d8d0df-a096-48b9-8943-62021295df07"
} }
] ]
} }

View File

@@ -0,0 +1,103 @@
{
"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": "Prompt",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "生成一个封面图片用于描述Clue、有绪、综合管理系统使用真实摄影风格具有商务、工作的特点色彩清爽、低饱和度。"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "OPENAIFORGUNCY.CreateImage, OPENAIFORGUNCY",
"URL": "https://openai.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"ORGANIZATION": "",
"Prompt": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Prompt"
},
"Model": "dall-e-3",
"Size": "512x512",
"Number": 1,
"Style": "natural",
"Quality": "standard",
"Response_format": "b64_json",
"UserName": "Administrator",
"ResultTo": "result"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完毕",
"CustomReturns": [
{
"ReturnPropertyName": "图片地址",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.0"
}
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
},
"CustomReturns": [
{
"ReturnPropertyName": "图片地址"
}
]
}
]
}
}
],
"ReturnProperties": [
{
"Name": "图片地址"
}
]
}