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