feat(work): 新增接口调用许可账号管理相关接口

This commit is contained in:
Fu Diwei
2022-10-31 14:35:16 +08:00
parent c3d5118974
commit ba7464454f
41 changed files with 1076 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
{
"active_code": "XXXXXXXX",
"corpid": "CORPID",
"userid": "USERID"
}

View File

@@ -0,0 +1,13 @@
{
"corpid": "CORPID",
"active_list": [
{
"active_code": "XXXXXXXX",
"userid": "USERID"
},
{
"active_code": "XXXXXXXX",
"userid": "USERID"
}
]
}

View File

@@ -0,0 +1,16 @@
{
"errcode": 0,
"errmsg": "ok",
"active_result": [
{
"active_code": "XXXXXXXX",
"userid": "USERID",
"errcode": 0
},
{
"active_code": "XXXXXXXX",
"userid": "USERID",
"errcode": 0
}
]
}

View File

@@ -0,0 +1,4 @@
{
"corpid": "xxx",
"active_code_list": ["XXXXXXXX", "YYYYYYYY", "ZZZZZZZZ"]
}

View File

@@ -0,0 +1,41 @@
{
"errcode": 0,
"errmsg": "ok",
"active_info_list": [
{
"active_code": "XXXXXXXX",
"type": 1,
"status": 1,
"userid": "USERID1",
"create_time": 1640966400,
"active_time": 1640966400,
"expire_time": 1640966400,
"merge_info": {
"to_active_code": "code_new",
"from_active_code": "code_old"
},
"share_info": {
"to_corpid": "CORPID",
"from_corpid": "CORPID"
}
},
{
"active_code": "YYYYYYYY",
"type": 2,
"status": 1,
"userid": "USERID2",
"create_time": 1640966400,
"active_time": 1640966400,
"expire_time": 1640966400,
"merge_info": {
"to_active_code": "code_new",
"from_active_code": "code_old"
},
"share_info": {
"to_corpid": "CORPID",
"from_corpid": "CORPID"
}
}
],
"invalid_active_code_list": ["ZZZZZZZZ"]
}

View File

@@ -0,0 +1,12 @@
{
"from_corpid": "FROMCORPID",
"to_corpid": "ToCORPID",
"share_list": [
{
"active_code": "ACTIVE_CODE"
},
{
"active_code": "ACTIVE_CODE"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"share_result": [
{
"active_code": "ACTIVE_CODE",
"errcode": 0,
"errmsg": "ok"
}
]
}

View File

@@ -0,0 +1,13 @@
{
"corpid": "CORPID",
"transfer_list": [
{
"handover_userid": "USERID",
"takeover_userid": "USERID"
},
{
"handover_userid": "USERID",
"takeover_userid": "USERID"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"transfer_result": [
{
"handover_userid": "USERID",
"takeover_userid": "USERID",
"errcode": 0
}
]
}

View File

@@ -0,0 +1,4 @@
{
"corpid": "xxx",
"active_code": "XXXXXXXX"
}

View File

@@ -0,0 +1,21 @@
{
"errcode": 0,
"errmsg": "ok",
"active_info": {
"active_code": "code1",
"type": 1,
"status": 1,
"userid": "USERID",
"create_time": 1640966400,
"active_time": 1640966400,
"expire_time": 1640966400,
"merge_info": {
"to_active_code": "code_new",
"from_active_code": "code_old"
},
"share_info": {
"to_corpid": "CORPID",
"from_corpid": "CORPID"
}
}
}

View File

@@ -0,0 +1,4 @@
{
"corpid": "CORPID",
"userid": "USERID"
}

View File

@@ -0,0 +1,21 @@
{
"errcode": 0,
"errmsg": "ok",
"active_status": 1,
"active_info_list": [
{
"active_code": "code1",
"type": 1,
"userid": "USERID",
"active_time": 1640966400,
"expire_time": 1640966400
},
{
"active_code": "code1",
"type": 2,
"userid": "USERID",
"active_time": 1640966400,
"expire_time": 1640966400
}
]
}

View File

@@ -0,0 +1,5 @@
{
"corpid": "CORPID",
"limit": 500,
"cursor": "xxxx"
}

View File

@@ -0,0 +1,20 @@
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "xxx",
"has_more": 1,
"account_list": [
{
"userid": "user1",
"type": 1,
"expire_time": 1500000000,
"active_time": 1500000000
},
{
"userid": "user2",
"type": 1,
"expire_time": 1500000000,
"active_time": 1500000000
}
]
}