From 01651593c9b365e92c6de08e13c7fc526131dfb4 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 6 Aug 2021 21:19:46 +0800 Subject: [PATCH] =?UTF-8?q?test(wxapi):=20=E9=80=82=E9=85=8D=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=A8=A1=E5=9E=8B=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TcbGetAppConfigRequest.json | 3 ++ .../TcbGetAppConfigResponse.json | 5 +++ .../TcbGetCallbackConfigRequest.json | 1 + .../TcbGetCallbackConfigResponse.json | 31 +++++++++++++++++++ .../TcbGetQCloudTokenRequest.json | 3 ++ .../TcbGetQCloudTokenResponse.json | 8 +++++ .../TcbSetCallbackConfigRequest.json | 27 ++++++++++++++++ .../TcbSetCallbackConfigResponse.json | 4 +++ .../TcbUploadAppConfigRequest.json | 4 +++ .../TcbUploadAppConfigResponse.json | 4 +++ .../TcbUseCloudAccessTokenRequest.json | 7 +++++ .../TcbUseCloudAccessTokenResponse.json | 9 ++++++ .../TcbWxpayListRequest.json | 2 ++ .../TcbWxpayListResponse.json | 30 ++++++++++++++++++ .../TcbWxpayOpenAuthRequest.json | 4 +++ .../TcbWxpayOpenAuthResponse.json | 4 +++ 16 files changed, 146 insertions(+) create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthResponse.json diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigRequest.json new file mode 100644 index 00000000..7d5b7e26 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigRequest.json @@ -0,0 +1,3 @@ +{ + "type": 1 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigResponse.json new file mode 100644 index 00000000..92bbdbda --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetAppConfigResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "config": "{\"enable\":true,\"callbacks\":[{\"msgType\":\"msg\",\"event\":\"event\",\"env\":\"env\",\"functionName\":\"func\"}]}" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigRequest.json new file mode 100644 index 00000000..22fdca1b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigRequest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigResponse.json new file mode 100644 index 00000000..ed9a4809 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCallbackConfigResponse.json @@ -0,0 +1,31 @@ +{ + "errcode": 0, + "errmsg": "ok", + "data": { + "function_config": { + "enable": false, + "callbacks": [ + { + "msgType": "event", + "event": "user_enter_tempsession", + "env": "test-env-6gni9ity244a6ea3", + "functionName": "callback", + "enable": false + }, + { + "msgType": "image", + "event": "", + "env": "test-env-6gni9ity244a6ea3", + "functionName": "callback", + "enable": true + } + ] + }, + "container_config": { + "enable": true, + "qbase_env": "test-env-6gni9ity244a6ea3", + "qbase_container_path": "/container-echo", + "text_mode": 1 + } + } +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenRequest.json new file mode 100644 index 00000000..c4e13d21 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenRequest.json @@ -0,0 +1,3 @@ +{ + "lifespan": 7200 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenResponse.json new file mode 100644 index 00000000..88591e42 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetQCloudTokenResponse.json @@ -0,0 +1,8 @@ +{ + "errcode": 0, + "errmsg": "ok", + "secretid": "SECRETID", + "secretkey": "SECRETKEY", + "token": "TOKEN", + "expired_time": 1557310488 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigRequest.json new file mode 100644 index 00000000..e6c32dbf --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigRequest.json @@ -0,0 +1,27 @@ +{ + "function_config": { + "enable": false, + "callbacks": [ + { + "msgType": "event", + "event": "user_enter_tempsession", + "env": "test-env-6gni9ity244a6ea3", + "functionName": "callback", + "enable": false + }, + { + "msgType": "image", + "event": "", + "env": "test-env-6gni9ity244a6ea3", + "functionName": "callback", + "enable": true + } + ] + }, + "container_config": { + "enable": true, + "qbase_env": "test-env-6gni9ity244a6ea3", + "qbase_container_path": "/container-echo", + "text_mode": 1 + } +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbSetCallbackConfigResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigRequest.json new file mode 100644 index 00000000..c8fb38ef --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigRequest.json @@ -0,0 +1,4 @@ +{ + "type": 1, + "config": "{\"enable\":true,\"callbacks\":[{\"msgType\":\"msg\",\"event\":\"event\",\"env\":\"env\",\"functionName\":\"func\"}]}" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadAppConfigResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenRequest.json new file mode 100644 index 00000000..6f974d5a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenRequest.json @@ -0,0 +1,7 @@ +{ + "action": "set", + "open": true, + "env": "myttest-8gu57so0bd9f9e8a", + "api_whitelist": [ "/*" ], + "version": 6 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenResponse.json new file mode 100644 index 00000000..65c4c7c5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUseCloudAccessTokenResponse.json @@ -0,0 +1,9 @@ +{ + "errcode": 0, + "errmsg": "ok", + "open": true, + "api_whitelist": [ + "/*" + ], + "version": 2 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListRequest.json new file mode 100644 index 00000000..8593c62d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListRequest.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListResponse.json new file mode 100644 index 00000000..97afb7c5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayListResponse.json @@ -0,0 +1,30 @@ +{ + "errcode": 0, + "errmsg": "ok", + "list": [ + { + "merchant_code": "1900006511", + "merchant_name": "MIOKKK市区政府-test_mdm", + "company_name": "weapp政府111", + "mch_relation_state": "RELATION_BINDED", + "jsapi_auth_state": "AUTH_AUTHORIZED", + "refund_auth_state": "AUTH_AUTHORIZED" + }, + { + "merchant_code": "1800008315", + "merchant_name": "微信公众平台", + "company_name": "深圳市腾讯计算机系统有限公司", + "mch_relation_state": "RELATION_WAIT_CONFIRM_WXTPL", + "jsapi_auth_state": "AUTH_WAIT_CONFIRM_WXTPL", + "refund_auth_state": "AUTH_UNAUTHORIZED" + }, + { + "merchant_code": "11485517", + "merchant_name": "商家简称", + "company_name": "广平大街2", + "mch_relation_state": "RELATION_WAIT_CONFIRM_WXTPL", + "jsapi_auth_state": "AUTH_WAIT_CONFIRM_WXTPL", + "refund_auth_state": "AUTH_UNAUTHORIZED" + } + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthRequest.json new file mode 100644 index 00000000..b171828d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthRequest.json @@ -0,0 +1,4 @@ +{ + "action": "bind", + "merchant_code": "1900006511" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbWxpayOpenAuthResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file