{"Message":"增加任务成员变动时,自动拉入或移出Gitee仓库。","MessageType":2,"Modules":[{"State":1,"Type":11,"Name":"UserService"},{"State":1,"Type":1,"Name":"PCPage/完善Gitee资料"},{"State":1,"Type":15,"Name":"ServerCommand/更新GITEE信息"},{"State":1,"Type":15,"Name":"ServerCommand/用户登录检查"},{"State":1,"Type":15,"Name":"ServerCommand/在线获取仓库某日提交数据"},{"State":1,"Type":15,"Name":"ServerCommand/新增任务"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/判断是否为仓库成员"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/增加仓库成员"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/移除仓库成员"},{"State":3,"Type":16,"Name":"TaskScheduler/添加任务成员"},{"State":3,"Type":16,"Name":"TaskScheduler/删除任务成员"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-18 22:21:26 +08:00
parent a58577f50e
commit 4c9a7aba42
12 changed files with 1499 additions and 192 deletions

View File

@@ -0,0 +1,291 @@
{
"Name": "判断是否为仓库成员",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
"Parameters": [
{
"Name": "检测用户",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "linxi"
},
{
"Name": "空间路径",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "yugasoft"
},
{
"Name": "仓库路径",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "sst-ga-res"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "640dd92f-0bf8-4391-b3eb-f0b1dd379336",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "cfc0c600-5d1f-41ba-ad07-8c77444e5748"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "d2b48381-be2c-4e45-96da-5de9ed58bf8a",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
"GUID": "ec2222a1-0ee7-4b1a-8872-5a9f101f9495"
},
"ColumnName": "GIT密码"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "59cb0c69-e361-405b-8b58-c3337407a53e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=检测用户"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "b67c61c022a24531a060cb6141bbce88"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
}
},
"value": "%Null%",
"compareType": 1
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "请求令牌",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": "Administrator"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "强制刷新",
"Value": "0"
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "最新令牌",
"ResultTo": {
"SerializeProperty": "ACCESS_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.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "GETPOST.编码类.URL编码, GETPOST",
"BianmaMsg": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
},
"BianMaTpye": 1,
"BianMaFun": 1,
"FanHuiMsg": "编码用户名"
},
{
"$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": "=ACCESS_TOKEN"
}
}
]
}
},
"WebUrl": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&空间路径&\"/\"&仓库路径&\"/collaborators/\"&编码用户名"
},
"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": 10.0
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "该成员为仓库成员",
"CustomReturns": [
{
"ReturnPropertyName": "ACCESS_TOKEN",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ACCESS_TOKEN"
}
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员不为仓库成员",
"CustomReturns": [
{
"ReturnPropertyName": "ACCESS_TOKEN",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ACCESS_TOKEN"
}
}
]
}
]
}
}
],
"ID": "78826300-5643-4881-89dd-d7009b0118e8"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=msg"
},
"CustomReturns": [
{
"ReturnPropertyName": "ACCESS_TOKEN"
}
]
}
],
"ID": "d4260203-01ec-4981-b3c3-e27dd0108830"
}
]
}
],
"ID": "afdf11a9-69e2-4f2b-8a75-9c5916b4f874"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该用户尚未维护Gitee信息",
"CustomReturns": [
{
"ReturnPropertyName": "ACCESS_TOKEN"
}
]
}
],
"ID": "12b76645-89df-4c44-af81-c4dcc86389f7"
}
]
}
],
"ReturnProperties": [
{
"Name": "ACCESS_TOKEN"
}
]
}

View File

@@ -73,7 +73,7 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "1b1aa1ce-4afa-4cc1-b1c5-31f42cc3935f",
"GUID": "8ec1b6c9-8f37-4ade-989c-296e783fbec5",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间路径名",
@@ -82,7 +82,7 @@
"ColumnName": "空间路径名"
},
{
"GUID": "117e3875-1d12-4b85-aa88-a73d87864bcb",
"GUID": "29a22111-28d2-4173-9f30-dfddfcdd7813",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库路径名",
@@ -91,7 +91,7 @@
"ColumnName": "仓库路径名"
},
{
"GUID": "ec2d3691-f0b0-4b74-a1f0-b7b772b5da29",
"GUID": "d3fe18a4-3bb8-4152-91e2-f6c249985847",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库名称",
@@ -115,7 +115,7 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "9bfbac7e547b46b6a4d5dfee70b80159"
"ID": "fcfcb5370e254905939c4fcfe1f0abed"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
@@ -125,22 +125,13 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "5f95867c-3663-4046-bc97-1aca1622003e",
"GUID": "1e4e0e72-98e0-4607-832f-e63ccefda9a3",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "25b16057-d543-4975-bc69-f26ab4854843"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "f2526148-7ca1-4b9f-8b33-a3eaefc2ce2d",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "邮件",
"GUID": "b37b6736-6fcb-4d1f-a8da-30a86de71762"
},
"ColumnName": "邮件"
}
],
"SqlCondition": {
@@ -158,7 +149,7 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "754a819248624485a9abb5c86712753b"
"ID": "fd49088e893c4d0a93832255a8031b39"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
@@ -310,7 +301,7 @@
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员.邮件"
"SerializeProperty": "=成员.GIT用户名"
}
},
{
@@ -394,7 +385,7 @@
"WithinLoop": true
}
],
"ID": "7fe7f89e-526e-4f6e-ad1e-ac1a08e8c45f"
"ID": "a258b50f-36bf-4a1d-885d-1be361eb4390"
},
{
"CommandList": [
@@ -519,12 +510,12 @@
"OutParamaterName": "提交信息数组"
}
],
"ID": "2d5372e0-a0ab-4224-aff8-0c86ac1f49b5"
"ID": "52282a14-f53e-480a-99dd-2908c9784568"
}
]
}
],
"ID": "f7829de8-2958-42c5-b7d3-7c6a6eb60511"
"ID": "61f8a5c6-aabc-4fda-a5be-e028e50ea688"
},
{
"CommandList": [
@@ -542,17 +533,17 @@
"OutParamaterName": "提交信息数组"
}
],
"ID": "6b532a5c-e01c-4a11-ac5d-612c15f05c58"
"ID": "dd0a80da-41cb-45f6-bfec-b6a837e14ddb"
}
]
}
],
"ID": "e47d7060-4df2-4745-a399-75f08fd12ab8"
"ID": "f22c5688-163a-4e95-8905-7d5b85fa0d03"
}
]
}
],
"ID": "d74ce186-e831-4936-a8dc-87baad6c1079"
"ID": "c0696e40-63f3-4c92-9a0e-976717b3e286"
}
]
}
@@ -562,7 +553,7 @@
]
}
],
"ID": "6fcbba48-75cc-40cb-8b47-b662393ede2e"
"ID": "d370850e-88bb-48d3-b651-99560ae93ec4"
}
]
}
@@ -621,7 +612,7 @@
]
}
],
"ID": "2e877980-8a9b-4bf1-a2fc-2dc9ead7fd87"
"ID": "bfa377b7-7af0-4fdf-8ee1-cc0a9abe86a1"
},
{
"CommandList": [
@@ -642,12 +633,12 @@
]
}
],
"ID": "885233d6-7a6c-4e29-98ce-0eba4a16d67f"
"ID": "c8282040-a0de-423a-8f7c-a75c8fb1f982"
}
]
}
],
"ID": "674a600e-717d-4eca-a58f-74485a2e8b39"
"ID": "79e86084-9554-4314-8932-86b31a0e4b31"
},
{
"CommandList": [
@@ -662,12 +653,12 @@
]
}
],
"ID": "97568787-a3b7-4efb-bc5e-83a94f7fa580"
"ID": "5e20c3e7-eb98-4d79-9cce-3531e2164b34"
}
]
}
],
"ID": "fd70c2d0-8444-43b7-a271-c3f8550103d7"
"ID": "d5d28842-f9ec-4b1e-8e0d-661a3b94cb85"
},
{
"CommandList": [
@@ -682,7 +673,7 @@
]
}
],
"ID": "7dd39217-e80e-452c-8ab1-e2d93088127a"
"ID": "4aac35b6-1221-403a-9fac-dea084187cfd"
}
]
}

View File

@@ -0,0 +1,368 @@
{
"Name": "增加仓库成员",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
"Parameters": [
{
"Name": "仓库ID",
"DataValidationInfo": {},
"TestData": "33487312"
},
{
"Name": "成员",
"DataValidationInfo": {},
"TestData": "linxi"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "6a0612b1-d332-4daf-a99f-a960fe3122b8",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "25b330fd-62ed-4d0b-8ccc-cfeeb9087bb6"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "676d1d48-bd57-4b6c-b310-a1f10b8f4edc",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
"GUID": "c41f664e-b1ad-4c3c-8e10-33926de9de12"
},
"ColumnName": "GIT密码"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "77f6497e-0a26-4e3d-92c4-4c807a455563"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "5dc79d6e7c85431bab753562cd2dbb7c"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
}
},
"value": "%Null%",
"compareType": 1
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "仓库",
"TableValue": {
"TableName": "Git仓库表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "02a64056-1d4a-4fba-8f15-f0f02836bdf6",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间路径名",
"GUID": "7c1ab6bb-1e3c-41fb-a2f5-a208f902fb3d"
},
"ColumnName": "空间路径名"
},
{
"GUID": "1a473aee-9478-4e60-ae48-06b4493998d9",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库路径名",
"GUID": "549350b1-176c-40fa-957f-664b464a6fc0"
},
"ColumnName": "仓库路径名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库ID",
"GUID": "a46197a1-76be-4909-a1e7-e486efac36bd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "e6bfd30904e34e50bc40ddb4f4c14f13"
},
{
"$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.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "请求令牌",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": "Administrator"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "强制刷新",
"Value": "0"
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "最新令牌",
"ResultTo": {
"SerializeProperty": "ACCESS_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.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "GETPOST.编码类.URL编码, GETPOST",
"BianmaMsg": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
},
"BianMaTpye": 1,
"BianMaFun": 1,
"FanHuiMsg": "编码用户名"
},
{
"$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": "=ACCESS_TOKEN"
}
},
{
"Name": "permission",
"DataItemType": 0,
"Data": "push"
}
]
}
},
"WebUrl": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&仓库.空间路径名&\"/\"&仓库.仓库路径名&\"/collaborators/\"&用户.GIT用户名"
},
"Method": "PUT",
"SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);",
"ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);",
"NewParameter": "result",
"Header": [],
"Timeout": 10.0
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "设置成员权限成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "日志表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "标题",
"GUID": "f65aa440-21a2-4891-a210-053b3d216252"
},
"Value": "新增或设置仓库成员权限"
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "内容",
"GUID": "98ae3704-38d1-4161-9c84-77d6b82678eb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "类型",
"GUID": "4a4476d9-09ee-4bf4-94de-59b4921a4831"
},
"Value": "错误"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
],
"ID": "1912b598-d49d-40f8-b735-1e772d30d92c"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=msg"
}
}
],
"ID": "20dfb257-3661-43bc-8acd-517c2f494357"
}
]
}
],
"ID": "abe257cb-8d0f-49d1-8db0-37179fe1e9d6"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "仓库不存在"
}
],
"ID": "8c1d0bea-296f-4ebb-a749-8397a4bd94eb"
}
]
}
],
"ID": "bb47d61d-0865-431f-82ef-db495584470a"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该用户尚未维护Gitee信息"
}
],
"ID": "b396c5b8-75ee-433f-b259-3dce60fa91c5"
}
]
}
]
}

View File

@@ -62,7 +62,7 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "f93daff7-8a41-4e6d-ae95-c5da5cf2d4ea",
"GUID": "1b272cc8-ff24-4aa1-9795-10b22b504bbf",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
@@ -71,7 +71,7 @@
"ColumnName": "用户名"
},
{
"GUID": "e492c62f-3726-431f-a9b8-f0803767cb90",
"GUID": "4e191c4a-ccc0-485a-bd61-0ebecf122d49",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
@@ -80,11 +80,11 @@
"ColumnName": "全名"
},
{
"GUID": "e4431bdd-85fc-4c72-970f-74bbba378349",
"GUID": "a0ee631b-9b0d-48a1-b2d1-66c9e0922682",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "邮件",
"GUID": "07d2c92f-708b-46a8-9610-3c326740dd88"
"GUID": "614d14c1-d3eb-474c-8645-4e7aa800c8e0"
},
"ColumnName": "邮件"
}
@@ -104,7 +104,7 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "3f0ffb1d3f7f4655b6e6d27fe8b598f3"
"ID": "24f1c159d1b34db09b2072799a47af8d"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -254,7 +254,7 @@
"Message": "保存成功"
}
],
"ID": "014e33da-3afd-4d65-80e7-af7fd58ced10"
"ID": "e3fb5ae4-5c30-4dec-b023-fd90122c56ad"
},
{
"CommandList": [
@@ -270,7 +270,7 @@
}
}
],
"ID": "e6d43ff4-be74-45c3-b98a-7a140635f32d"
"ID": "f9b92651-b74c-4412-8c67-08fc1d94d3fd"
}
]
}
@@ -293,7 +293,7 @@
}
}
],
"ID": "465ea1cc-084f-4a65-8d72-4db87b5030d2"
"ID": "6f596371-4112-4fb8-8540-fdd7acd494a6"
},
{
"CommandList": [
@@ -303,7 +303,7 @@
"Message": "用户不存在"
}
],
"ID": "81378159-d987-4662-a42b-0abef3076cf0"
"ID": "60237801-d71e-4138-8ac8-a3545c6894b9"
}
]
}

View File

@@ -0,0 +1,368 @@
{
"Name": "移除仓库成员",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
"Parameters": [
{
"Name": "仓库ID",
"DataValidationInfo": {},
"TestData": "33487312"
},
{
"Name": "成员",
"DataValidationInfo": {},
"TestData": "linxi"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "df6a32b1-d7cb-413b-b2cc-d8f27bf2c9fc",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "e438c713-665c-4543-8db0-f6f2e8871874"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "90a46275-cffe-4a54-9752-01f8e0275e6f",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
"GUID": "893a696a-d88b-4edf-b38e-8353676a1429"
},
"ColumnName": "GIT密码"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "717f7d03-bd00-4d30-afb1-bba8f53cb052"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "f1bea57b26664cdf87370f409f603b4a"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
}
},
"value": "%Null%",
"compareType": 1
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "仓库",
"TableValue": {
"TableName": "Git仓库表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "02a64056-1d4a-4fba-8f15-f0f02836bdf6",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间路径名",
"GUID": "7c1ab6bb-1e3c-41fb-a2f5-a208f902fb3d"
},
"ColumnName": "空间路径名"
},
{
"GUID": "1a473aee-9478-4e60-ae48-06b4493998d9",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库路径名",
"GUID": "549350b1-176c-40fa-957f-664b464a6fc0"
},
"ColumnName": "仓库路径名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库ID",
"GUID": "a46197a1-76be-4909-a1e7-e486efac36bd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "e6bfd30904e34e50bc40ddb4f4c14f13"
},
{
"$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.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "请求令牌",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": "Administrator"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "强制刷新",
"Value": "0"
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "最新令牌",
"ResultTo": {
"SerializeProperty": "ACCESS_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.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "GETPOST.编码类.URL编码, GETPOST",
"BianmaMsg": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.GIT用户名"
},
"BianMaTpye": 1,
"BianMaFun": 1,
"FanHuiMsg": "编码用户名"
},
{
"$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": "=ACCESS_TOKEN"
}
},
{
"Name": "permission",
"DataItemType": 0,
"Data": "push"
}
]
}
},
"WebUrl": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&仓库.空间路径名&\"/\"&仓库.仓库路径名&\"/collaborators/\"&用户.GIT用户名"
},
"Method": "DELETE",
"SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);",
"ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);",
"NewParameter": "result",
"Header": [],
"Timeout": 10.0
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "移除仓库成员成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "日志表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "标题",
"GUID": "9046e6da-5463-4803-a641-d1fad357b253"
},
"Value": "新增或设置仓库成员权限"
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "内容",
"GUID": "afe9fd41-27a3-4b2b-aba3-3133a683e47f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "类型",
"GUID": "fae3516e-e6cd-4c64-b52a-f9c2117a5882"
},
"Value": "错误"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
],
"ID": "15b702b3-ce05-4303-b67a-32691c3a7cae"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=msg"
}
}
],
"ID": "b2a2c697-7517-43d8-9d3d-ee0650f646f4"
}
]
}
],
"ID": "3ea737e9-e66f-4914-971e-a5cff0413a74"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "仓库不存在"
}
],
"ID": "fb449859-9055-48f2-8b9c-990625558c40"
}
]
}
],
"ID": "92808d85-2c9f-44c4-8051-69d36714abd6"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该用户尚未维护Gitee信息"
}
],
"ID": "bc6ea8be-e4e6-44cc-92b5-2d0ab45ab267"
}
]
}
]
}