Files
clue/ServerCommands/OPENAPI/GetLastVersion.json

297 lines
11 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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": "10"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "版本信息",
"TableValue": {
"TableName": "项目版本",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "7012707e-bbc1-41d0-b694-d1ffe9830a45",
"BindingInfo": {
"TableName": "项目版本",
"ColumnName": "版本名称",
"GUID": "cbacf8c3-4fbd-4adb-ba66-e8ff4eaa24d5"
},
"ColumnName": "版本名称"
},
{
"GUID": "ac4ca567-675f-4f20-b14f-11bf75701ff2",
"BindingInfo": {
"TableName": "项目版本",
"ColumnName": "最新版本号",
"GUID": "9a23966c-b7a9-4215-b2f7-440f758b4378"
},
"ColumnName": "最新版本号"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目版本",
"ColumnName": "ID",
"GUID": "25283357-364e-4d23-9da1-b71f1404bb43"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=VersionID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "47916a825b804a50ae33c8b8ccfdcc51"
},
{
"$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.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "发布记录",
"TableValue": {
"TableName": "项目发布记录",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "c445fe14-fb48-461e-a3a0-24f90d769266",
"BindingInfo": {
"TableName": "项目发布记录",
"ColumnName": "发布内容",
"GUID": "001e4788-6a22-4c62-a1a7-9858d2716820"
},
"ColumnName": "发布内容"
},
{
"GUID": "7df5c484-b325-4ee4-be6d-f8363150c446",
"BindingInfo": {
"TableName": "项目发布记录",
"ColumnName": "发布时间",
"GUID": "68acba91-bcd4-48b6-a40a-628dd8a5f466"
},
"ColumnName": "发布时间"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目发布记录",
"ColumnName": "版本ID",
"GUID": "3cf21cf5-28e7-4d7f-9aaa-9dea6337b3be"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=VersionID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目发布记录",
"ColumnName": "发布版本号",
"GUID": "11945b2f-e908-4bad-96ca-ce6854fb84f2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=版本信息.最新版本号"
}
}
]
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "99f45e29fc6e41d3aafcaf5ed34987a5"
},
{
"$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%"
},
"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": "Version",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=版本信息.最新版本号"
}
},
{
"ReturnPropertyName": "Update"
},
{
"ReturnPropertyName": "Content"
}
]
}
],
"ID": "76a2c4dd-79b4-453a-b46e-1abb1dbdc768"
},
{
"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": "Version",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=版本信息.最新版本号"
}
},
{
"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": "1e8ef81d-a954-484a-9801-99ef8b6a195f"
}
]
}
],
"ID": "eb7fa344-98ce-4193-8133-d71ec10140c6"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "无法找到对应版本",
"CustomReturns": [
{
"ReturnPropertyName": "Name",
"Remark": "发布ID\r\n="
},
{
"ReturnPropertyName": "Version"
},
{
"ReturnPropertyName": "Update"
},
{
"ReturnPropertyName": "Content"
}
]
}
],
"ID": "c1e7e882-db2c-4e9b-b989-83daf945dfd1"
}
]
}
],
"ReturnProperties": [
{
"Name": "Name",
"Remark": "发布ID\r\n="
},
{
"Name": "Version"
},
{
"Name": "Update"
},
{
"Name": "Content"
}
]
}