| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import request from "@/sheep/request";
- const myHomeAPI = {
- // 获取技师列表
- getTechnicianList: (params) => {
- return request({
- url: "/client/coach",
- method: "GET",
- params: {
- latitude: params.latitude, // 必填,纬度
- longitude: params.longitude, // 必填,经度
- },
- custom: {
- showLoading: true,
- loadingMsg: "加载中...",
- },
- });
- },
- // 获取技师位置列表
- getTechnicianLocations: () => {
- return request({
- url: "/client/coach/location",
- method: "GET",
- custom: {
- showLoading: true,
- loadingMsg: "加载中...",
- },
- });
- },
- // 获取项目列表
- getProjectList: (params) => {
- return request({
- url: "/client/project",
- method: "GET",
- params: {
- area_code: params.area_code, // 必填,区域代码
- project_cate_id: params.project_cate_id, // 可选,项目分类ID
- type: params.type || 1, // 必填,项目类型(1:普通项目,2:加钟项目)
- },
- custom: {
- showLoading: true,
- loadingMsg: "加载中...",
- },
- });
- },
- // 获取项目详情
- getProjectDetail: (params) => {
- return request({
- url: "/client/project/detail",
- method: "GET",
- params: {
- id: params.id, // 必填,项目ID
- area_code: params.area_code, // 必填,区域代码
- },
- custom: {
- showLoading: true,
- loadingMsg: "加载中...",
- },
- });
- },
- // 获取用户二维码
- getUserQrcode: () => {
- return request({
- url: `/client/user/invite-code`,
- method: "get",
- });
- },
- };
- export default myHomeAPI;
|