通讯录标签
1. 简介
通讯录标签功能,支持对关键角色打标签,这样可以更加具体的了解关键角色的行为。
2. 接口规范
2.1. 获取当前企业下所有角色组和角色
接口地址
https://www.fdccloud.com/api/tenant-open/get-role-groups?access_token=ACCESS_TOKEN
传参方式
GET
返回值
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"g_id": "1",
"g_name": "默认",
"g_des": "",
"g_editable": "0",
"g_deletable": "0",
"roles": [
{
"r_id": "mysoft-39e5f4c1-75eb-e42e-3cca-bfe38b141eae",
"r_name": "1W",
"r_des": "",
"r_editable": "0",
"r_deletable": "0"
}
]
},
{
"g_id": "2",
"g_name": "测试",
"g_des": "",
"g_editable": "0",
"g_deletable": "0",
"roles": [
{
"r_id": "mysoft-40e5f4c1-75eb-e42e-3cca-bfe38b141eae",
"r_name": "开发总",
"r_des": "",
"r_editable": "0",
"r_deletable": "0"
}
]
}
]
}
2.2. 获取某个角色下的所有用户
接口地址
https://www.fdccloud.com/api/tenant-open/get-role-users?access_token=ACCESS_TOKEN
传参方式
POST
post参数
{
"role_id":"mysoft-39e5f4c1-75eb-e42e-3cca-bfe38b141eae"
}
返回值
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"avatar": "",
"openid": "mysoft59f14bfc4e758876156650",
"user_id": "23488",
"user_name": "梅义",
"user_code": "meiy02",
"email": "meiy02@mingyuanyun.com",
"dept_guid": "c861444a-c506-47dd-beb4-f13332434aee",
"dept_full_name": "dev_fangl > 明源软件 > 用户管理 > 02-明源用户 > 03-武汉公司 > 武汉产品研发中心 > 公共平台事业部 > 云助手组",
"dept_name": "云助手组"
}
]
}
2.3. 获取某个用户的所有角色
接口地址
https://www.fdccloud.com/api/tenant-open/get-user-roles?access_token=ACCESS_TOKEN
传参方式
POST
post参数
{
"openid":["mysoft59f14bfc4e758876156650"]
}
返回值
{
"errcode": 0,
"err,sg": "ok",
"data": [
{
"openid": "mysoft59f14bfc4e758876156650",
"user_id": "23488",
"name": "梅义",
"dept_full_name": "总部 > 深圳明源 > 产品体验",
"dept_name": "产品体验",
"roles": [
{
"g_id": "1",
"g_name": "默认",
"g_des": "",
"g_editable": "0",
"g_deletable": "0",
"r_id": "2",
"r_name": "CFO",
"r_des": "",
"r_editable": "0",
"r_deletable": "0"
}
]
}
]
}