451 lines
18 KiB
JSON
451 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": "用户名",
|
|
"DataValidationInfo": {
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "Administrator"
|
|
},
|
|
{
|
|
"Name": "关键字",
|
|
"DataValidationInfo": {},
|
|
"TestData": "pms"
|
|
},
|
|
{
|
|
"Name": "页码",
|
|
"DataValidationInfo": {},
|
|
"TestData": "1"
|
|
},
|
|
{
|
|
"Name": "行数",
|
|
"DataValidationInfo": {},
|
|
"TestData": "20"
|
|
}
|
|
],
|
|
"InvokeTriggerTestData": {
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "当前用户",
|
|
"TableValue": {
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "d729d953-26ba-47db-932c-1c1c03d82582",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT用户名",
|
|
"GUID": "a7a542bb-c690-4434-a291-280d4cd24db1"
|
|
},
|
|
"ColumnName": "GIT用户名"
|
|
},
|
|
{
|
|
"GUID": "8d265c7d-5038-4665-9bf7-56b3c74628db",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT密码",
|
|
"GUID": "b2873649-7bba-4aff-a01a-ca2b893679d7"
|
|
},
|
|
"ColumnName": "GIT密码"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "245446e2-3f7b-450d-865b-84dfbb83d524"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "9f4a9b7507724d0fa549ff7383b33525"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
|
"OutParamaterName": "仓库列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "请求令牌",
|
|
"Parameters": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "强制刷新",
|
|
"Value": "0"
|
|
}
|
|
],
|
|
"ResultErrorCodeTo": {
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": [
|
|
{
|
|
"ResultPropertyName": "最新令牌",
|
|
"ResultTo": {
|
|
"SerializeProperty": "TOKEN"
|
|
}
|
|
}
|
|
],
|
|
"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.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "url",
|
|
"ParameterValue": "https://gitee.com/api/v5/user/repos",
|
|
"ID": "732024d7ab3b473793a631aa754e2d01"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
|
"TryCommandPart": {
|
|
"CommandList": [
|
|
{
|
|
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
|
|
"PostData": {
|
|
"DataItemType": 1,
|
|
"Data": {
|
|
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
|
|
"Data": [
|
|
{
|
|
"Name": "access_token",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TOKEN"
|
|
}
|
|
},
|
|
{
|
|
"Name": "visibility",
|
|
"DataItemType": 0,
|
|
"Data": "all"
|
|
},
|
|
{
|
|
"Name": "affiliation",
|
|
"DataItemType": 0,
|
|
"Data": "admin"
|
|
},
|
|
{
|
|
"Name": "q",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=关键字"
|
|
}
|
|
},
|
|
{
|
|
"Name": "sort",
|
|
"DataItemType": 0,
|
|
"Data": "updated"
|
|
},
|
|
{
|
|
"Name": "direction",
|
|
"DataItemType": 0,
|
|
"Data": "desc"
|
|
},
|
|
{
|
|
"Name": "page",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=页码"
|
|
}
|
|
},
|
|
{
|
|
"Name": "per_page",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=行数"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"JsonString": "",
|
|
"WebUrl": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=url"
|
|
},
|
|
"Method": "GET",
|
|
"SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);",
|
|
"ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);",
|
|
"NewParameter": "result",
|
|
"Header": [],
|
|
"Timeout": 100.0
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
|
"LoopInfo": {
|
|
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
|
"LoopCount": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result"
|
|
},
|
|
"LoopItemParamName": "Item"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
|
"InParamater": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.members"
|
|
},
|
|
"Operation": 16,
|
|
"OperationParamaterAName": ",",
|
|
"OutParamaterName": "仓库成员名称"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
|
"OperationParamaterPairs": [
|
|
{
|
|
"Name": "ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.id"
|
|
}
|
|
},
|
|
{
|
|
"Name": "空间路径名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.namespace.path"
|
|
}
|
|
},
|
|
{
|
|
"Name": "空间名称",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.namespace.name"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库路径名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.path"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库名称",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.name"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库地址",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.html_url"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库描述",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.description"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库成员",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库成员名称"
|
|
}
|
|
},
|
|
{
|
|
"Name": "创建人",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.owner.name"
|
|
}
|
|
},
|
|
{
|
|
"Name": "创建人头像",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.owner.avatar_url"
|
|
}
|
|
},
|
|
{
|
|
"Name": "hook_api_url",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.hooks_url"
|
|
}
|
|
},
|
|
{
|
|
"Name": "默认分支",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.default_branch"
|
|
}
|
|
},
|
|
{
|
|
"Name": "仓库URL",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.url"
|
|
}
|
|
}
|
|
],
|
|
"OutParamaterName": "仓库信息"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
|
"InParamater": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库列表"
|
|
},
|
|
"Operation": 4,
|
|
"OperationParamaterAName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库信息"
|
|
},
|
|
"OutParamaterName": "仓库列表"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "获取成功",
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "仓库列表",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库列表"
|
|
}
|
|
},
|
|
{
|
|
"ReturnPropertyName": "总行数",
|
|
"Value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"CatchCommandPart": {
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result.message"
|
|
},
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "仓库列表"
|
|
},
|
|
{
|
|
"ReturnPropertyName": "总行数"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"ID": "ca1593dc-1d1c-4810-bee9-9310800c6cba"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=msg"
|
|
},
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "仓库列表",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库列表"
|
|
}
|
|
},
|
|
{
|
|
"ReturnPropertyName": "总行数"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "4a0b435e-9453-4155-96d9-7b28cc755a87"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ReturnProperties": [
|
|
{
|
|
"Name": "仓库列表"
|
|
},
|
|
{
|
|
"Name": "总行数"
|
|
}
|
|
]
|
|
} |