zhangwei
1 天以前 ef3906e9669cc75c054ef9bf4ea6336b727a539b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * (不建议写成 request.post(xxx),因为这样 post 时,无法 params 与 data 同时传参)
 *
 * 个人中心api接口集合
 * @method login 登录
 */
 
import { http } from "@/utils/http";
import { baseUrlApi } from "./util";
type Result = {
  success: boolean;
  data: Array<any>;
};
 
// 获取个人中心数据
export const cusExtendInfo = (data?: object) => {
  return http.request("post", baseUrlApi("/api/customer/cusExtendInfo"), { data });
};
 
// 修改个人中心数据
export const changeCusExtend = (data?: object) => {
  return http.request("post", baseUrlApi("/api/customer/changeCusExtend"), { data });
};