190 lines
6.0 KiB
JSON
190 lines
6.0 KiB
JSON
{
|
||
"Name": "GetLastVersion",
|
||
"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": "VersionID",
|
||
"Remark": "具体的版本好,例如1.0.0",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "3"
|
||
}
|
||
],
|
||
"InvokeTriggerTestData": {
|
||
"UserName": "Administrator"
|
||
}
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "发布记录",
|
||
"TableValue": {
|
||
"TableName": "项目发布记录",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "e490990f-353d-4170-9e1b-c4f4bca77d4d",
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布版本号",
|
||
"GUID": "d1e35776-8739-42fd-9997-1374868138b6"
|
||
},
|
||
"ColumnName": "发布版本号"
|
||
},
|
||
{
|
||
"GUID": "3708d24e-1c19-4bfd-a614-899534a9b90b",
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布内容",
|
||
"GUID": "5e9c4f6c-4e2f-4201-9698-f0cc041eb4a1"
|
||
},
|
||
"ColumnName": "发布内容"
|
||
},
|
||
{
|
||
"GUID": "ce782a5e-90c4-43e2-b11a-430fbb1619e7",
|
||
"BindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布时间",
|
||
"GUID": "dc2ecef9-b45c-4a2a-a95e-ba984b1184da"
|
||
},
|
||
"ColumnName": "发布时间"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "版本ID",
|
||
"GUID": "134d3057-174e-46db-8116-659909846ed7"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=VersionID"
|
||
}
|
||
},
|
||
"TopCount": "1",
|
||
"OrderBySqlCondition": {
|
||
"OrderByColumns": [
|
||
{
|
||
"ColumnBindingInfo": {
|
||
"TableName": "项目发布记录",
|
||
"ColumnName": "发布时间",
|
||
"GUID": "f9bfd6bb-e955-4628-800b-fa543a76f07d"
|
||
},
|
||
"Order": 1
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"ID": "c5b3754d659a478faf8d5da196c40f2d"
|
||
},
|
||
{
|
||
"$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.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "success",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "Name",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=发布记录.发布版本号"
|
||
},
|
||
"Remark": "发布ID\r\n="
|
||
},
|
||
{
|
||
"ReturnPropertyName": "Update",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=TEXT(发布记录.发布时间,\"yyyy-mm-dd HH:mm:ss\")"
|
||
}
|
||
},
|
||
{
|
||
"ReturnPropertyName": "Content",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=发布记录.发布内容"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "f8c6af05-6701-480b-8a93-7aa0d4e896da"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "无法找到对应版本",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "Name",
|
||
"Remark": "发布ID\r\n="
|
||
},
|
||
{
|
||
"ReturnPropertyName": "Update"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "Content"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "a3b5cf05-adde-47db-a00b-e8c96c571ebe"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "Name",
|
||
"Remark": "发布ID\r\n="
|
||
},
|
||
{
|
||
"Name": "Update"
|
||
},
|
||
{
|
||
"Name": "Content"
|
||
}
|
||
]
|
||
} |