490 lines
18 KiB
JSON
490 lines
18 KiB
JSON
{
|
|
"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
|
|
}
|
|
},
|
|
{
|
|
"Name": "空间路径名",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "空间名称",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "仓库路径名",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "仓库名称",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "仓库地址",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "仓库描述",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "仓库成员",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "创建人",
|
|
"DataValidationInfo": {}
|
|
},
|
|
{
|
|
"Name": "创建人头像",
|
|
"DataValidationInfo": {}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "当前用户",
|
|
"TableValue": {
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "366500b8-6b5a-415b-b080-c1984c5c546d",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT用户名",
|
|
"GUID": "56abe866-0cb9-4437-b844-3e8a8f30dfa5"
|
|
},
|
|
"ColumnName": "GIT用户名"
|
|
},
|
|
{
|
|
"GUID": "1483cbe9-393e-45d7-94c4-367742849f83",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT密码",
|
|
"GUID": "d2ce4ffe-abcb-4b1b-8fbd-f8481b08df32"
|
|
},
|
|
"ColumnName": "GIT密码"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "af5d8809-daac-453d-9874-3c1a16f44ecd"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "1635e0bf7bdf4b56b986f7c95a2104ef"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "查找仓库",
|
|
"TableValue": {
|
|
"TableName": "Git仓库表",
|
|
"TableValueType": 3,
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "cb3e1ea6-5719-447f-9e75-84923cffaf89"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0
|
|
},
|
|
"ID": "2abb0425c40841df8b09b37ecbbf58cb"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
|
"CommandList": [
|
|
{
|
|
"$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": "0"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"UpdateType": "add",
|
|
"ShowConfirm": false,
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "dbd47bc5-1fde-4182-8e78-1d3c76ea6223"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间路径名",
|
|
"GUID": "abca3f5e-e20c-455b-b775-67f048fa8c87"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=空间路径名"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间名称",
|
|
"GUID": "87681325-0d60-4165-94da-7f3190953f10"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=空间名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库路径名",
|
|
"GUID": "5b0f1389-5fc4-4330-b890-9d20f57e44bc"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库路径名"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库名称",
|
|
"GUID": "714bfac1-405b-4a5d-9a22-bcff5b3cd28f"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库地址",
|
|
"GUID": "7dce609f-eea9-4411-8037-4b6a3730449f"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库地址"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库描述",
|
|
"GUID": "de30e5d1-4837-4ebc-8ad3-344b36eb75ed"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库描述"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库成员",
|
|
"GUID": "8ae4008a-c654-483d-ab3e-6ffe05ec8f68"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库成员"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "创建人",
|
|
"GUID": "15f8dcd3-e557-413c-9edb-b065a7496b0e"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=创建人"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "创建人头像",
|
|
"GUID": "c26b8a11-866b-4c85-b69c-45501406eb3b"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=创建人头像"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "80813e9f-283a-4403-a633-860f7c3c9e84"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "0cb22c5e-6428-421d-b601-e71f8fe673bd"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间路径名",
|
|
"GUID": "4cace823-2051-4a68-be59-823a2b1af654"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=空间路径名"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间名称",
|
|
"GUID": "1de7544c-bf71-4d40-8a9a-2007c833de53"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=空间名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库路径名",
|
|
"GUID": "00ae0991-9a9b-4f75-aac6-146b1421a1f3"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库路径名"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库名称",
|
|
"GUID": "31ce0962-b44b-4c79-96b8-a4fe0d660f24"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库名称"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库地址",
|
|
"GUID": "af88bb26-fcc8-494a-ae5f-f39d2c549612"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库地址"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库描述",
|
|
"GUID": "589d9932-db4e-403d-9484-af3ec8564b39"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库描述"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库成员",
|
|
"GUID": "ffbef827-bb53-428e-a446-e6951cdd4efb"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库成员"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "创建人",
|
|
"GUID": "6a03ba3f-11fb-4c27-a6a7-10cd85f29660"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=创建人"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "创建人头像",
|
|
"GUID": "339132cf-3720-424e-87ef-0a539efe8026"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=创建人头像"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "2d93347d-4804-4cd7-90f0-bb959f962714"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "创建一个仓库WebHook",
|
|
"Parameters": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "仓库ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库路径名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=当前用户"
|
|
}
|
|
}
|
|
],
|
|
"ResultErrorCodeTo": {
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": [
|
|
{
|
|
"ResultPropertyName": "id",
|
|
"ResultTo": {
|
|
"SerializeProperty": "res_hookId"
|
|
}
|
|
},
|
|
{
|
|
"ResultPropertyName": "url",
|
|
"ResultTo": {
|
|
"SerializeProperty": "res_URL"
|
|
}
|
|
},
|
|
{
|
|
"ResultPropertyName": "password",
|
|
"ResultTo": {
|
|
"SerializeProperty": "res_密码"
|
|
}
|
|
}
|
|
],
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true
|
|
},
|
|
{
|
|
"$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": "=code"
|
|
}
|
|
},
|
|
"value": "0"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "仓库创建并订阅成功!"
|
|
}
|
|
],
|
|
"ID": "01bd4a4a-25a1-47a7-aff1-03e0fa05ed57"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "仓库创建成功,但未能订阅,请手动订阅"
|
|
}
|
|
],
|
|
"ID": "602cc6b8-a64d-4ffb-8f12-faf8c062ad86"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |