feat(contact): 联系人列表接合并接口,设备用户联系人只读
- 新增 listAllContacts 调用 /contact/all - 设备用户联系人(origin=user)标注「来自手机通讯录」,隐藏编辑/删除
This commit is contained in:
1 parent
3b1806eaec
commit
fae96362d6
3 files changed
+15
-4
No files matched your search
@@ -335,11 +335,19 @@ export interface ContactItem {
|
||||
showDesktop?: boolean
|
||||
bindPhone?: string
|
||||
bindSn?: string
|
||||
/** family=家属端创建(可编辑);user=设备用户创建(系统通讯录,只读) */
|
||||
origin?: string
|
||||
/** user 来源细分:system=系统通讯录;manual=设备端手动添加 */
|
||||
source?: string
|
||||
}
|
||||
|
||||
export const listContacts = (sn: string) =>
|
||||
request<ContactItem[]>({ url: `/v1/client/sn/contact/list?${query({ sn })}` })
|
||||
|
||||
/** 合并列表:家属创建(可编辑)+ 设备用户创建(只读) */
|
||||
export const listAllContacts = (sn: string) =>
|
||||
request<ContactItem[]>({ url: `/v1/client/sn/contact/all?${query({ sn })}` })
|
||||
|
||||
export const getContactForm = (sn: string, id: number) =>
|
||||
request<ContactItem>({
|
||||
url: `/v1/client/sn/contact/form?${query({ sn, id })}`
|
||||
|
||||
Reference in new issue
Block a user