-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2698 from mojinxun/master
完善第三方平台API-待商家管理小程序-小程序域名管理所有接口
- Loading branch information
Showing
13 changed files
with
1,036 additions
and
0 deletions.
There are no files selected for viewing
543 changes: 543 additions & 0 deletions
543
src/Senparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainApi.cs
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
...Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/GetEffectiveDomainResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:GetEffectiveDomainResultJson.cs | ||
文件功能描述:获取发布后生效服务器域名列表接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 获取发布后生效服务器域名列表 | ||
/// </summary> | ||
public class GetEffectiveDomainResultJson : WxJsonResult | ||
{ | ||
public GetEffectiveDomainResultDomain mp_domain { get; set; } | ||
public GetEffectiveDomainResultDomain third_domain { get; set; } | ||
public GetEffectiveDomainResultDomain direct_domain { get; set; } | ||
public GetEffectiveDomainResultDomain effective_domain { get; set; } | ||
} | ||
|
||
public class GetEffectiveDomainResultDomain | ||
{ | ||
public List<string> requestdomain { get; set; } | ||
public List<string> wsrequestdomain { get; set; } | ||
public List<string> uploaddomain { get; set; } | ||
public List<string> downloaddomain { get; set; } | ||
public List<string> udpdomain { get; set; } | ||
public List<string> tcpdomain { get; set; } | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/GetEffectiveWebViewDomainResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:GetEffectiveWebViewDomainResultJson.cs | ||
文件功能描述:获取发布后生效业务域名列表接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 获取发布后生效业务域名列表 | ||
/// </summary> | ||
public class GetEffectiveWebViewDomainResultJson : WxJsonResult | ||
{ | ||
public List<string> mp_webviewdomain { get; set; } | ||
public List<string> third_webviewdomain { get; set; } | ||
public List<string> direct_webviewdomain { get; set; } | ||
public List<string> effective_webviewdomain { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...ixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/GetPrefetchDNSDomainResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:GetPrefetchDNSDomainResultJson.cs | ||
文件功能描述:获取DNS预解析域名 接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 获取DNS预解析域名 接口返回类型 | ||
/// </summary> | ||
public class GetPrefetchDNSDomainResultJson : WxJsonResult | ||
{ | ||
/// <summary> | ||
/// 预解析 dns 域名 | ||
/// </summary> | ||
public List<SetPrefetchDNSDomainData> prefetch_dns_domain { get; set; } | ||
/// <summary> | ||
/// 总共可配置域名个数 | ||
/// </summary> | ||
public int size_limit { get; set; } | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...en/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/GetWebViewDomainConfirmFileResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:GetWebViewDomainConfirmFileResultJson.cs | ||
文件功能描述:获取业务域名校验文件接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 获取业务域名校验文件 | ||
/// </summary> | ||
public class GetWebViewDomainConfirmFileResultJson : WxJsonResult | ||
{ | ||
//以下字段仅在get时返回 | ||
|
||
public string file_name { get; set; } | ||
public string file_content { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...ixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/ModifyDomainDirectlyResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:ModifyDomainDirectlyResultJson.cs | ||
文件功能描述:快速配置小程序服务器域名接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 快速配置小程序服务器域名接口返回类型 | ||
/// </summary> | ||
public class ModifyDomainDirectlyResultJson : WxJsonResult | ||
{ | ||
//以下字段仅在get时返回 | ||
|
||
public List<string> requestdomain { get; set; } | ||
public List<string> wsrequestdomain { get; set; } | ||
public List<string> uploaddomain { get; set; } | ||
public List<string> downloaddomain { get; set; } | ||
public List<string> udpdomain { get; set; } | ||
public List<string> tcpdomain { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...nparc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/ModifyDomainResultJson.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:ModifyDomainResultJson.cs | ||
文件功能描述:修改域名接口返回类型 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
using Senparc.Weixin.Entities; | ||
using System.Collections.Generic; | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 修改域名接口返回类型 | ||
/// </summary> | ||
public class ModifyDomainResultJson : WxJsonResult | ||
{ | ||
//以下字段仅在get时返回 | ||
|
||
public List<string> requestdomain { get; set; } | ||
public List<string> wsrequestdomain { get; set; } | ||
public List<string> uploaddomain { get; set; } | ||
public List<string> downloaddomain { get; set; } | ||
public List<string> udpdomain { get; set; } | ||
public List<string> tcpdomain { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...arc.Weixin.Open/Senparc.Weixin.Open/WxaAPIs/Domain/DomainJson/SetPrefetchDNSDomainData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#region Apache License Version 2.0 | ||
/*---------------------------------------------------------------- | ||
Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | ||
except in compliance with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions | ||
and limitations under the License. | ||
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md | ||
----------------------------------------------------------------*/ | ||
#endregion Apache License Version 2.0 | ||
|
||
/*---------------------------------------------------------------- | ||
Copyright (C) 2022 Senparc | ||
文件名:SetPrefetchDNSDomain.cs | ||
文件功能描述:设置DNS预解析域名请求参数 | ||
创建标识:Yaofeng - 20220809 | ||
----------------------------------------------------------------*/ | ||
|
||
namespace Senparc.Weixin.Open.WxaAPIs.Domain | ||
{ | ||
/// <summary> | ||
/// 预览信息(小程序页面截图和操作录屏) | ||
/// </summary> | ||
public class SetPrefetchDNSDomainData | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
public string url { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public int status { get; set; } | ||
} | ||
|
||
} |
Oops, something went wrong.