{"Message":"1","MessageType":2,"Modules":[{"State":3,"Type":15,"Name":"ServerCommand/GetAllVersion"}],"Version":"v1"}

This commit is contained in:
cuckooent
2025-06-16 11:05:42 +08:00
parent 0acfc99ff3
commit 7e4e8eb821
2 changed files with 338 additions and 6 deletions

View File

@@ -0,0 +1,338 @@
{
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
"Name": "GetAllVersion",
"Description": "获取某项目某版本的最新版本号",
"Enabled": true,
"Triggers": {
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon",
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": {
"$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": {
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
"$values": [
"FGC_Anonymous"
]
}
}
]
}
}
},
"HttpMethod": 2,
"Parameters": {
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
"Name": "versionId",
"Remark": "具体的版本好例如1.0.0",
"DataValidationInfo": {
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
"IgnoreBlank": false
},
"TestData": "10"
},
{
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
"Name": "pageNum",
"DataValidationInfo": {
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
}
},
{
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
"Name": "pageSize",
"DataValidationInfo": {
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
}
}
]
},
"InvokeTriggerTestData": {
"$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon",
"UserName": "Administrator"
}
}
]
},
"Commands": {
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "版本信息",
"TableValue": {
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
"TableName": "项目版本",
"TableValueType": 1,
"BindingInfos": {
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "332ec820-7ca4-4ebb-ac17-ab9e3e27012f",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目版本",
"ColumnName": "版本名称",
"GUID": "1bb4008c-2570-4a34-a1a2-4427d8e6de04"
},
"ColumnName": "版本名称"
},
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "a81d9cbe-7573-4543-834a-6ed7c336e2d5",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目版本",
"ColumnName": "最新版本号",
"GUID": "bdf5a6c3-ccf7-4cdf-a515-f0549673c2d3"
},
"ColumnName": "最新版本号"
}
]
},
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目版本",
"ColumnName": "ID",
"GUID": "35314cff-e62f-4ccc-8358-1d31f55d95a8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=versionId"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "31629d5341674b10acd00b07b4143723",
"BreakpointIdentity": "7c1acae1-b90c-41ef-9e9c-418d21ffdc51"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": {
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
"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": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "发布记录",
"TableValue": {
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
"TableName": "项目发布记录",
"TableValueType": 1,
"BindingInfos": {
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "668e05e0-1a32-4592-97c6-1f0f33c0b69f",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "版本ID",
"GUID": "885160e2-60af-42cb-b806-4db7b582a487",
"RelationBinding": {
"$type": "ForguncyDataAccess.RelationBinding, ForguncyDataAccess",
"RelatedTable": "项目版本",
"RelatedColumn": "ID",
"DisplayColumn": "版本名称"
}
},
"ColumnName": "name"
},
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "cd18167e-6e83-4308-8aa0-9284f95b3601",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "发布版本号",
"GUID": "5ec760fd-7830-4bea-959f-53f208daa009"
},
"ColumnName": "verstion"
},
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "5dec0104-aa45-4d97-8c4a-d8967b45e263",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "发布内容",
"GUID": "cb340d4c-7c99-4298-9e77-f957e72959be"
},
"ColumnName": "content"
},
{
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
"GUID": "8a1fe590-b75e-4a7c-b1d0-a44269a44826",
"BindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "发布时间",
"GUID": "eb70dc3b-8771-40c1-8397-05210bb27b86"
},
"ColumnName": "update"
}
]
},
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": {
"$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.ISqlCondition, ForguncyDataAccess]], System.Private.CoreLib",
"$values": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "版本ID",
"GUID": "494c8bd9-f6be-4469-aa41-5c01ba801aad"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=versionId"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "发布版本号",
"GUID": "fb79df69-4a12-4099-a24a-be2afb0aacf6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=版本信息.最新版本号"
}
}
]
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=pageSize"
},
"OffsetCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=(IF(pageNum=\"\",1,pageNum)-1)*IF(pageSize=\"\",10,pageSize)"
},
"OrderBySqlCondition": {
"$type": "ForguncyDataAccess.OrderBySqlCondition, ForguncyDataAccess",
"OrderByColumns": {
"$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.OrderBySqlConditionItem, ForguncyDataAccess]], System.Private.CoreLib",
"$values": [
{
"$type": "ForguncyDataAccess.OrderBySqlConditionItem, ForguncyDataAccess",
"ColumnBindingInfo": {
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
"TableName": "项目发布记录",
"ColumnName": "发布时间",
"GUID": "95d562d6-9d01-48eb-969c-4929861ec1bf"
},
"Order": 1
}
]
}
}
},
"ID": "8174f09f5416493f94533741243d2a1c",
"BreakpointIdentity": "50f4a0c3-6a35-4a51-b695-74789903952d"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "success",
"CustomReturns": {
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
"ReturnPropertyName": "VerstionLogs",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发布记录"
}
}
]
},
"BreakpointIdentity": "28cb5dd4-bcd1-4765-bc41-7b12db79a302"
}
]
},
"ID": "a214fc59-6cb4-4c1d-9fdb-2ba74bc8e99c"
},
{
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
"CommandList": {
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "无法找到对应版本",
"CustomReturns": {
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
"ReturnPropertyName": "VerstionLogs"
}
]
},
"BreakpointIdentity": "d540cc54-4f6e-43fe-b4de-cd68bf3e2238"
}
]
},
"ID": "28de043e-6a56-4d6c-9271-79d2c6678ad4"
}
]
},
"BreakpointIdentity": "8ebd949f-0e48-44f0-9d55-a3e333093ce9"
}
]
},
"ReturnProperties": {
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib",
"$values": [
{
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
"Name": "VerstionLogs"
}
]
}
}