zouyu
8 天以前 e03ff28fb1dbaa19571b7ea0414e0161f178cf26
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
import request from '@/utils/request'
 
// 查询个人通讯录
// 个人通讯录通常是用户收藏或频繁联系的人员
export function getPersonalContacts(page,query) {
    return request({
        url: '/staffContactsPersonal/getList',
        method: 'get',
        params: {
            ...page,
            ...query
        }
    })
}
 
// 添加联系人到个人通讯录
export function addPersonalContact(data) {
    return request({
        url: '/staffContactsPersonal/add',
        method: 'post',
        data: data
    })
}
 
// 从个人通讯录移除联系人
export function removePersonalContact(id) {
    return request({
        url: '/staffContactsPersonal/delete/' + id,
        method: 'delete'
    })
}
 
// 查询公共通讯录
// 公共通讯录通常是所有员工可见的联系方式
export function getPublicContacts(query) {
    return request({
        url: '/staff/contacts/public/list',
        method: 'get',
        params: query
    })
}
 
// 查询单位通讯录
// 单位通讯录通常按部门组织的员工联系方式
export function getCompanyContacts(query) {
    return request({
        url: '/staff/contacts/company/list',
        method: 'get',
        params: query
    })
}
 
// 查询部门通讯录树结构
export function getDepartmentTree() {
    return request({
        url: '/staff/contacts/department/tree',
        method: 'get'
    })
}
 
// 获取员工详细信息
export function getEmployeeDetail(employeeId) {
    return request({
        url: '/staff/staffOnJob/' + employeeId,
        method: 'get'
    })
}