| | |
| | | |
| | | import { http } from "@/utils/http"; |
| | | import { baseUrlApi } from "./util"; |
| | | type Result = { |
| | | success: boolean; |
| | | data: Array<any>; |
| | | }; |
| | | import type { Result } from "./types"; |
| | | |
| | | // 获取个人中心数据 |
| | | export const cusExtendInfo = (data?: object) => { |
| | | return http.request("post", baseUrlApi("/api/customer/cusExtendInfo"), { data }); |
| | | return http.request<Result>( |
| | | "post", |
| | | baseUrlApi("/api/customer/cusExtendInfo"), |
| | | { |
| | | data |
| | | } |
| | | ); |
| | | }; |
| | | |
| | | // 修改个人中心数据 |
| | | export const changeCusExtend = (data?: object) => { |
| | | return http.request("post", baseUrlApi("/api/customer/changeCusExtend"), { data }); |
| | | return http.request("post", baseUrlApi("/api/customer/changeCusExtend"), { |
| | | data |
| | | }); |
| | | }; |