知识中心
所有文章
帮助中心
AI客户联络中心 升级日志
API文档
AI客户联络
白标接口及地址
白标接口及地址
最后更新于 2023/04/04   阅读数 636

通常不需要,如果OEM伙伴需要,可以使用以下地址:

白标合伙伙伴

管理端manage:

ai.manage.longlonglong.cn

用户端saas:

ai.call.longlonglong.cn

接口api:

ai.api.longlonglong.cn

接口文档doc:

doc.call.longlonglong.cn

更变部门:

  • 接口:/agent-api/user/{user_id}/department/change

  • 请求方式: POST

  • 路由参数

参数

类型

示例

解释

必填

user_id

string

5433b412-07d5-44e6-9fa4-deb65e43bc93

用户id

  • 请求参数

参数

类型

示例

解释

必填

user_id

String

f850c96b-00a5-4d10-92ba-1e4eb32f852c

子账号id

department_id

int

100007

现在所在部门id

phone

int

12345678

更变到部门id

  • 请求示例:

{
  "data": [
    {
      "user_id": "f850c96b-00a5-4d10-92ba-1e4eb32f852c",
      "department_id": 10007
    }
  ],
  "target_department_id": 10024
}
1
2
3
4
5
6
7
8
9
plaintext
  • 返回示例:

{
    "code": 200,
    "status": "success",
    "message": "修改部门列表成功",
    "data": {
        "update": 1 \\修改个数
    }
}
1
2
3
4
5
6
7
8
plaintext

部门列表:

  • 接口:/agent-api/user/{user_id}/department

  • 请求方式: GET

  • 路由参数

参数

类型

示例

解释

必填

user_id

string

5433b412-07d5-44e6-9fa4-deb65e43bc93

用户id

  • 请求参数

参数

类型

示例

解释

必填

page

int

1

页码

  • 返回示例:

{
    "code": 200,
    "status": "success",
    "message": "查看部门列表成功",
    "data": [
        {
            "id": 10007,
            "pid": 0, //上级部门
            "name": "测试", //部门名称
            "user_id": "e8cca468-33c6-4885-aa4f-a400a022641a", //所属用户id 
            "description": null,
            "sort": 0,
            "depth": 1,
            "path": "0",
            "number": null,
            "status": true,
            "deleted_at": null,
            "created_at": "2023-02-16 19:04:53",
            "updated_at": "2023-02-16 19:04:53",
            "leader_members": [],
            "parent": null,
            "members": [//用户
                {
                    "type": 8,
                    "id": "fba145ab-6a10-445a-b04f-043a7b50a685",//用户id
                    "name": "测试3",
                    "email": "1232131331231@telrobot.net",
                    "phone": "12313132133",
                    "type_note": "子账户",
                    "pivot": {
                        "department_id": 10007,
                        "user_id": "fba125ab-6a00-445a-b04f-043a7b50a685",
                        "is_leader": 0,
                        "created_at": "2023-03-27 11:49:30",
                        "updated_at": "2023-03-27 11:49:30"
                    }
                }
            ]
        },
        {
            "id": 10024,
            "pid": 7,
            "name": "测试1",
            "user_id": "e8cca468-33c6-4885-aa4f-a400a022641a",
            "description": "测试1",
            "sort": 0,
            "depth": 2,
            "path": "0-7",
            "number": null,
            "status": true,
            "deleted_at": null,
            "created_at": "2023-03-31 10:11:41",
            "updated_at": "2023-03-31 10:11:41",
            "leader_members": [],
            "parent": {
                "id": 10007,
                "name": "刘知鑫测试"
            },
            "members": [
                {
                    "type": 8,
                    "id": "f850c96b-00a5-4d10-92ba-1e4eb32f852c",
                    "name": "cyp测试2",
                    "email": "te1232132131st@telrobot.net",
                    "phone": "1232131231232131",
                    "type_note": "子账户",
                    "pivot": {
                        "department_id": 10024,
                        "user_id": "f850c96b-00a5-4d10-92ba-1e4eb32f852c",
                        "is_leader": 0,
                        "created_at": null,
                        "updated_at": null
                    }
                }
            ]
        }
    ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plaintext


未能解决您的问题?请联系