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
| import { $fysp } from './index';
|
| export default {
| /**
| * 获取用户详情
| */
| getUserById(id) {
| return $fysp.get(`userinfo/${id}`);
| },
|
| /**
| * 更新用户详情
| */
| updateUser(user) {
| return $fysp.post(`userinfo`, user);
| },
|
| /**
| * 获取场景的用户详情
| */
| getUserByScene(sId) {
| return $fysp.get(`userinfo/scene/get?sceneId=${sId}`);
| },
|
| /**
| * 自动创建账户
| */
| autoCreateAccount(sId) {
| return $fysp.post(`userinfo/create?sceneId=${sId}`);
| },
| };
|
|