From c3bea22d672a6bea453c57090241e005068c88f6 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 21 Jul 2021 11:32:58 +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 --- .../WxaGenerateWxaShortLinkRequest.json | 5 ++++ .../WxaGenerateWxaShortLinkResponse.json | 5 ++++ .../WxaBusinessGetUserEncryptKeyRequest.json | 1 + .../WxaBusinessGetUserEncryptKeyResponse.json | 27 +++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyResponse.json diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkRequest.json new file mode 100644 index 00000000..c1b8297e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkRequest.json @@ -0,0 +1,5 @@ +{ + "page_url": "/pages/publishHomework/publishHomework?query1=q1", + "page_title": "Homework title", + "is_permanent": false +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkResponse.json new file mode 100644 index 00000000..cbb929ff --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Wxa/ShortLink/WxaGenerateWxaShortLinkResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "link": "Short Link" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyRequest.json new file mode 100644 index 00000000..22fdca1b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyRequest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyResponse.json new file mode 100644 index 00000000..40607113 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaBusiness/Internet/WxaBusinessGetUserEncryptKeyResponse.json @@ -0,0 +1,27 @@ +{ + "errcode": 0, + "errmsg": "ok", + "key_info_list": [ + { + "encrypt_key": "VI6BpyrK9XH4i4AIGe86tg==", + "version": 10, + "expire_in": 3597, + "iv": "6003f73ec441c386", + "create_time": 1616572301 + }, + { + "encrypt_key": "aoUGAHltcliiL9f23oTKHA==", + "version": 9, + "expire_in": 0, + "iv": "7996656384218dbb", + "create_time": 1616504886 + }, + { + "encrypt_key": "MlZNQNnRQz3zXHHcr6A3mA==", + "version": 8, + "expire_in": 0, + "iv": "58a1814f88883024", + "create_time": 1616488061 + } + ] +} \ No newline at end of file