import { post, get } from '../utils'

/**
 * 获取站点列表
 * @param {Object} params - 查询参数
 * @returns {Promise} 站点列表
 */
export const getStationList = (params = {}) => {
  return post('/washStation/list', {
    pageNum: params.pageNum || 1,
    pageSize: params.pageSize || 1024,
    ...params
  })
}

/**
 * 获取站点详情
 * @param {string|number} id - 站点ID
 * @returns {Promise} 站点详情
 */
export const getStationDetail = (id) => {
  return get(`/washStation/detail/${id}`)
}
