Commit 802a503f authored by XieZhiXiong's avatar XieZhiXiong

修改接口名称

parent 5192b198
......@@ -156,7 +156,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取评价汇总
const getTradeSummary = () => {
PublicApi.getMemberCommentSupplyCountSupplyTradeSummary().then(res => {
PublicApi.getMemberCommentSupplyCountTradeSummary().then(res => {
if (res.code === 1000) {
const evaluate = summaryEvaluate(res.data.rows);
const evaluatePieData = getSummaryEvaluatePie(evaluate);
......@@ -170,7 +170,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const getTradeHistory = (params: ListParams): Promise<RecordRes> => {
const { star, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getMemberCommentSupplyCountSupplyTradeHistoryPage({
PublicApi.getMemberCommentSupplyCountTradeHistoryPage({
...rest,
starLevel: params.star,
}).then(res => {
......@@ -204,7 +204,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取收到的评价列表
const getReceivedList = (params: ListParams): Promise<RecordRes> => {
return new Promise((resolve, reject) => {
PublicApi.getMemberCommentSupplySupplyTradeHistoryPage({
PublicApi.getMemberCommentSupplyReceiveTradeHistoryPage({
...params,
}).then(res => {
if (res.code === 1000) {
......
......@@ -67,7 +67,7 @@ const ReceivedDetail: React.FC = () => {
return;
}
setEvaluationInfoLoading(true);
PublicApi.getMemberCommentSupplySupplyTradeHistoryGet({
PublicApi.getMemberCommentSupplyReceiveTradeHistoryGet({
id,
}).then(res => {
if (res.code === 1000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment