{"Message":"新增WebHook的订阅","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/FGC_订单记录","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_订单明细表","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_商品表","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/项目动态"},{"State":1,"Type":7,"Name":"Table/项目版本"},{"State":1,"Type":23,"Name":"TableView/用户信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户角色关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织级别视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色分类关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色拥有权限视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色组织关系视图","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/message_test","ExclusiveType":0},{"State":1,"Type":1,"Name":"PCPage/项目版本管理"},{"State":1,"Type":1,"Name":"PCPage/任务版本详情"},{"State":1,"Type":1,"Name":"PCPage/任务-任务信息"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":1,"Name":"PCPage/工时总览"},{"State":1,"Type":1,"Name":"PCPage/个人工时首页"},{"State":1,"Type":1,"Name":"PCPage/首页"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":15,"Name":"ServerCommand/AI报工数据转日报"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":26,"Name":"Upload"},{"State":1,"Type":39,"Name":"PublishConfiguration"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/请求令牌"},{"State":2,"Type":27,"Name":"ServerCommandPrivate/创建一个仓库WebHook"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/删除一个仓库WebHook"},{"State":1,"Type":7,"Name":"Table/Git仓库表"},{"State":1,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":1,"Type":7,"Name":"Table/Git_事件记录"},{"State":1,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":1,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":1,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/列出仓库的WebHooks"},{"State":3,"Type":16,"Name":"TaskScheduler/应用部署时"},{"State":3,"Type":20,"Name":"ServerCommands/系统"},{"State":3,"Type":15,"Name":"ServerCommand/获取版本号"},{"State":3,"Type":15,"Name":"ServerCommand/列出授权用户所有的Namespace"},{"State":3,"Type":15,"Name":"ServerCommand/创建一个仓库WebHook"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-13 19:51:48 +08:00
parent b8f39fbefc
commit 658b5c7f8f
35 changed files with 2989 additions and 3212 deletions

View File

@@ -40,7 +40,7 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "b4222772-c3d0-4440-8639-27288df25dba",
"GUID": "74dd4d3e-636e-4f65-acce-33a26d73a725",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
@@ -49,7 +49,7 @@
"ColumnName": "GIT用户名"
},
{
"GUID": "f179a166-ffdc-420b-b7ea-6fa8555406f6",
"GUID": "109cbeb8-ba05-40af-b2a2-020b88398ce7",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
@@ -72,7 +72,7 @@
},
"TopCount": "1"
},
"ID": "cff69cd7a24c45f994ffa93787bc4eaf"
"ID": "261743f5d31b4b9bb40716e2ec8b01b8"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -146,7 +146,7 @@
"$type": "CacheOperationCommand.CacheGetCommand, CacheOperationCommand",
"CacheKeyStr": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT用户名+\"_Gitee_access_token\""
"SerializeProperty": "=当前用户.GIT用户名&\"_\"&\"_Gitee_access_token\""
},
"ParamName": "获取缓存TOKEN"
},
@@ -199,159 +199,192 @@
]
}
],
"ID": "fbb8609c-5624-404e-a16c-14e9e8550b15"
"ID": "7865b2e7-8ccf-486d-ba5a-68e7d760c331"
},
{
"CommandList": [
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
"DataItemType": 1,
"Data": {
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
"Data": [
{
"Name": "grant_type",
"DataItemType": 0,
"Data": "password"
},
{
"Name": "username",
"DataItemType": 0,
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
"DataItemType": 1,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT用户名"
}
},
{
"Name": "password",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT密码"
}
},
{
"Name": "client_id",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.client_id"
}
},
{
"Name": "client_secret",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.client_secret"
}
},
{
"Name": "scope",
"DataItemType": 0,
"Data": "user_info projects pull_requests issues notes keys hook groups gists enterprises"
}
]
}
},
"JsonString": "",
"WebUrl": "https://gitee.com/oauth/token",
"Method": "POST",
"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": "SaveFormData.fillInJSONProperties, SaveFormData",
"FullJsonString": "{\r\n \"error\": \"invalid_grant\",\r\n \"error_description\": \"授权方式无效,或者登录回调地址无效、过期或已被撤销\",\r\n \"access_token\": \"5c7c5fe2b1f0fc025c1a38006b6e95f3\",\r\n \"token_type\": \"bearer\",\r\n \"expires_in\": 86400,\r\n \"refresh_token\": \"03be42668ee199713604ff75491eeb0904a665d069de178c6c8f73c0a50a6ab6\",\r\n \"scope\": \"user_info projects pull_requests issues notes keys hook groups gists enterprises\",\r\n \"created_at\": 1718241807\r\n}",
"SourceJson": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result"
},
"ResultTo": "RES"
},
{
"$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": "=RES.error"
}
},
"value": "%Null%"
},
"CommandList": [
{
"$type": "CacheOperationCommand.CacheAddCommand, CacheOperationCommand",
"CacheKeyStr": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT用户名+\"_Gitee_access_token\""
},
"CacheValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.access_token"
},
"CacheSeconds": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.expires_in"
},
"ParamName": "缓存结果"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取最新TOKEN成功",
"CustomReturns": [
{
"ReturnPropertyName": "最新令牌",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.access_token"
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
"Data": [
{
"Name": "grant_type",
"DataItemType": 0,
"Data": "password"
},
{
"Name": "username",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT用户名"
}
},
{
"Name": "password",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT密码"
}
},
{
"Name": "client_id",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.client_id"
}
},
{
"Name": "client_secret",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.client_secret"
}
},
{
"Name": "scope",
"DataItemType": 0,
"Data": "user_info projects pull_requests issues notes keys hook groups gists enterprises"
}
}
]
}
],
"ID": "6aa74ad7-c578-4fef-af9c-fb96a6631550"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.error"
]
}
},
"JsonString": "",
"WebUrl": "https://gitee.com/oauth/token",
"Method": "POST",
"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": "SaveFormData.fillInJSONProperties, SaveFormData",
"FullJsonString": "{\r\n \"error\": \"invalid_grant\",\r\n \"error_description\": \"授权方式无效,或者登录回调地址无效、过期或已被撤销\",\r\n \"access_token\": \"5c7c5fe2b1f0fc025c1a38006b6e95f3\",\r\n \"token_type\": \"bearer\",\r\n \"expires_in\": 86400,\r\n \"refresh_token\": \"03be42668ee199713604ff75491eeb0904a665d069de178c6c8f73c0a50a6ab6\",\r\n \"scope\": \"user_info projects pull_requests issues notes keys hook groups gists enterprises\",\r\n \"created_at\": 1718241807\r\n}",
"SourceJson": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result"
},
"ResultTo": "RES"
},
{
"$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": "=RES.error"
}
},
"value": "%Null%"
},
"CommandList": [
{
"$type": "CacheOperationCommand.CacheAddCommand, CacheOperationCommand",
"CacheKeyStr": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户.GIT用户名&\"_\"&\"_Gitee_access_token\""
},
"CacheValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.access_token"
},
"CacheSeconds": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.expires_in"
},
"ParamName": "缓存结果"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取最新TOKEN成功",
"CustomReturns": [
{
"ReturnPropertyName": "最新令牌",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=RES.access_token"
}
}
]
}
],
"ID": "ae11d952-819c-4a9c-8ea5-3d1fa00c2a5b"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.error_description"
},
"CustomReturns": [
{
"ReturnPropertyName": "最新令牌"
}
]
}
],
"ID": "cb2dbe62-dd22-4eaa-a70c-8be8feeb74c5"
}
]
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.error"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.error_description"
},
"CustomReturns": [
{
"ReturnPropertyName": "最新令牌"
}
]
}
],
"ID": "49d139cd-c0d1-4bf4-99ef-1904c6842a84"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
},
"SampleJson": "{\"message\":\"\"}",
"ToParameter": "错误信息"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=错误信息.message"
},
"CustomReturns": [
{
"ReturnPropertyName": "最新令牌"
}
]
}
]
}
}
],
"ID": "8d208ae4-19ac-49ba-92d2-d3f1133ef4dc"
"ID": "8ddfb90f-3fb6-4561-950d-b1b6cee04bb9"
}
]
}
],
"ID": "ebf144b0-dd6f-4c75-b889-9ada8b6db780"
"ID": "ad68ffe5-0b5c-4467-b56f-f066062c4361"
},
{
"CommandList": [
@@ -366,12 +399,12 @@
]
}
],
"ID": "3036ecd5-8001-4122-82b6-31e54d15c529"
"ID": "e250f7a9-8b5e-4dd9-90a5-d4ec0248c612"
}
]
}
],
"ID": "e8e2fdd1-88f6-481e-86f1-5d189154b0a7"
"ID": "76875b4b-7d4c-4c17-bd15-bd3a3051819e"
},
{
"CommandList": [
@@ -386,7 +419,7 @@
]
}
],
"ID": "403fa8e4-ab3a-4db8-ae32-e95b4c4a3d26"
"ID": "841634f8-211a-4eef-a3a5-6365048ecdaa"
}
]
}