zhangwei
21 小时以前 14f7d39b1885442de42bdd81806774151baddd4f
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
/**
 * (不建议写成 request.post(xxx),因为这样 post 时,无法 params 与 data 同时传参)
 *
 * 个人中心api接口集合
 * @method login 登录
 */
 
import { http } from "@/utils/http";
import { baseUrlApi } from "./util";
import type { Result } from "./types";
 
// 获取个人中心数据
export const cusExtendInfo = (data?: object) => {
  return http.request<Result>(
    "post",
    baseUrlApi("/api/customer/cusExtendInfo"),
    {
      data
    }
  );
};
 
// 修改个人中心数据
export const changeCusExtend = (data?: object) => {
  return http.request("post", baseUrlApi("/api/customer/changeCusExtend"), {
    data
  });
};