368 lines
16 KiB
JSON
368 lines
16 KiB
JSON
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |