293 lines
11 KiB
JSON
293 lines
11 KiB
JSON
{
|
||
"Name": "DeploymentNotification",
|
||
"Description": "应用部署接口,用来自动通知应用部署事件。",
|
||
"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_Anonymous"
|
||
]
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"HttpMethod": 2,
|
||
"Parameters": [
|
||
{
|
||
"Name": "ProjectCode",
|
||
"Remark": "项目代号",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
}
|
||
},
|
||
{
|
||
"Name": "VersionName",
|
||
"Remark": "版本名称,例如:develop、preview、bate、alpha...",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
}
|
||
},
|
||
{
|
||
"Name": "VersionCode",
|
||
"Remark": "具体的版本好,例如1.0.0",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "版本",
|
||
"TableValue": {
|
||
"TableName": "项目版本",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "0b9270f2-a361-4341-92a8-caaf1179dfc4",
|
||
"BindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "ID",
|
||
"GUID": "ee296702-5f8d-4144-a1b4-bc0b5eb143ad"
|
||
},
|
||
"ColumnName": "ID"
|
||
},
|
||
{
|
||
"GUID": "7c242a00-9384-4d39-9360-3c32045b9684",
|
||
"BindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "3b4b415d-6902-4978-bda8-6708cf3c9a6c"
|
||
},
|
||
"ColumnName": "项目ID"
|
||
},
|
||
{
|
||
"GUID": "fbc18acd-4f1f-4a50-ba61-1e67607e8a1c",
|
||
"BindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "a035fd5a-d24e-4a16-a09c-a1e10df97293",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目经理"
|
||
}
|
||
},
|
||
"ColumnName": "项目经理"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||
"SubConditions": [
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "5ff14dfb-25d8-427d-be7a-57075aee63f1"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=ProjectCode"
|
||
}
|
||
},
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "版本名称",
|
||
"GUID": "04d65631-430a-4bea-9ef6-8aebc90ae34a"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=VersionName"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0,
|
||
"TopCount": "1"
|
||
},
|
||
"ID": "76a4d9a6fad142bdac9c8e202035ded0"
|
||
},
|
||
{
|
||
"$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.ServerTransactionCommand, ServerDesignerCommon",
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "项目版本",
|
||
"ShowConfirm": false,
|
||
"RowsToUpdate": 1,
|
||
"RowsToUpdateCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "ID",
|
||
"GUID": "5027905b-f3b6-49a2-b31a-231a6672034b"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=版本.ID"
|
||
}
|
||
},
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目版本",
|
||
"ColumnName": "最新版本号",
|
||
"GUID": "829f1424-897d-4704-9575-4e896c5f0af6"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=VersionCode"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||
"TableName": "项目发布记录",
|
||
"UpdateType": "add",
|
||
"ShowConfirm": false,
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "项目ID",
|
||
"GUID": "6985688f-5d91-4494-aa6c-37a172ffb2d5"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=版本.项目ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "版本ID",
|
||
"GUID": "5bc2e76e-24b7-44f8-b1b9-116d660daea4"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=版本.ID"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布版本号",
|
||
"GUID": "2daef053-9ea4-4b36-ae0e-a4419db4e20b"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=VersionCode"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "负责人",
|
||
"GUID": "5dc6e639-b11b-4f17-8e68-4d15b8db187f"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=版本.项目经理"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布时间",
|
||
"GUID": "4036a7e6-bf6a-4cd4-b1b8-4c0b5c80647c"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=NOW()"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "是否发布",
|
||
"GUID": "c865673d-7c03-4827-aacd-91152c02de9e"
|
||
},
|
||
"Value": "0"
|
||
}
|
||
],
|
||
"ParamNameToSaveNewRowValue": "新发布记录"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "success",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "ReleaseID",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=新发布记录.ID"
|
||
},
|
||
"Remark": "发布ID\r\n="
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "62675496-6a80-401d-9560-86c115ebca87"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "无法找到对应版本",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "ReleaseID",
|
||
"Remark": "发布ID\r\n="
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "f21c4122-59c4-4286-9dea-e3671f0bb153"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "ReleaseID",
|
||
"Remark": "发布ID\r\n="
|
||
}
|
||
]
|
||
} |