mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 01:44:42 +08:00
feat(work): 随官方更新企业互联获取下级或下游企业 AccessToken 接口模型
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/corpgroup/corp/gettoken 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinCorpGroupCorpGetTokenRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("business_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("business_type")]
|
||||
public int? BusinessType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下级企业 CorpId。
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"corpid": "wwabc",
|
||||
"business_type": 1,
|
||||
"agentid": 1111
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"access_token": "accesstoken000001",
|
||||
"expires_in": 7200
|
||||
}
|
||||
Reference in New Issue
Block a user