ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defHttp } from '#/api/request';
 
enum Api {
  Prefix = '/api/permission/socials',
}
 
// 获取用户授权列表
export function getSocialsUserList() {
  return defHttp.get({ url: Api.Prefix });
}
// 获取用户授权列表(用户管理)
export function getSocialsUserListByUser(userId) {
  return defHttp.get({ url: `${Api.Prefix}?userId=${userId}` });
}
// 第三方绑定
export function socialsBind(name) {
  return defHttp.get({ url: `${Api.Prefix}/render/${name}` });
}
// 解绑
export function deleteSocials(userId, id) {
  return defHttp.delete({ url: `${Api.Prefix}/${id}?userId=${userId}` });
}