feat(work): 新增第三方应用开发多企业新购订单相关接口

This commit is contained in:
Fu Diwei
2023-05-24 21:10:57 +08:00
parent d7c4d57c4e
commit afb94293d9
23 changed files with 739 additions and 127 deletions

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"app_permissions": [ "xxx::xxx::xx" ]
}

View File

@@ -0,0 +1,17 @@
{
"buy_list": [
{
"corpid": "CORPID",
"account_count": {
"base_count": 100,
"external_contact_count": 100
},
"account_duration": {
"months": 2,
"days": 20
},
"auto_active_status": 1
}
],
"jobid": "JOBID"
}

View File

@@ -0,0 +1,12 @@
{
"errcode": 0,
"errmsg": "ok",
"jobid": "BUYJOBID",
"invalid_list": [
{
"corpid": "CORPID",
"errcode": 1,
"errmsg": "xxx"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"order_id": "ORDERID",
"limit": 1000,
"cursor": "CURSOR"
}

View File

@@ -0,0 +1,28 @@
{
"errcode": 0,
"errmsg": "ok",
"order": {
"order_id": "ORDERID",
"order_type": 1,
"order_status": 1,
"price": 10000,
"create_time": 150000000,
"pay_time": 1550000000
},
"has_more": 1,
"next_cursor": "CURSOR",
"buy_list": [
{
"sub_order_id": "SUBORDERID",
"corpid": "CORPID",
"account_count": {
"base_count": 100,
"external_contact_count": 100
},
"account_duration": {
"months": 2,
"days": 20
}
}
]
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"status": 1,
"order_id": "xxxx",
"fail_list": [
{
"corpid": "CORPID",
"errcode": 700400,
"errmsg": "xxx"
}
]
}

View File

@@ -0,0 +1,4 @@
{
"jobid": "BUYJOBID",
"buyer_userid": "xxxx"
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"jobid": "BUYJOBID"
}