import api from '../../utils/http.js' // API 基础路径 const BASE_PATH = '/corp/rate-records' export const getRate = (id) => { return api.post(`${BASE_PATH}/get-by-id`, { id }) } export function submitRate({ id, rate, words }) { return api.post(`${BASE_PATH}/submit`, { id, rate, words }) } export const getRateList = ({ page, pageSize, doctorId }) => { return api.post(`${BASE_PATH}/displayable-list`, { page, limit: pageSize, userId: doctorId }) }