import { request } from '../request.uts' // 基础 URL 配置 // #ifdef APP-ANDROID const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef APP-IOS const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef H5 const BASE_URL = '' // #endif // #ifdef MP-WEIXIN const BASE_URL = 'http://192.168.0.9:8001' // #endif // #ifdef MP-HARMONY const BASE_URL = 'http://192.168.0.9:8001' // #endif /** * 获取商户评论列表 */ export function transRecords(params : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/wallet/trans-records`, method: "GET", params: params }) } /** * 获取商户评论列表 */ export function getCommentList(params : any) : Promise { return request({ url: `${BASE_URL}/api/coach/v3/ordercomments`, method: "GET", params: params }) } /** * 获取商户评论统计数据 */ export function getCommentData() : Promise { return request({ url: `${BASE_URL}/api/coach/v3/ordercomments/statistics`, method: "GET" }) }