service.js
415 Bytes
import request from 'umi-request';
export async function queryProjectNotice() {
return request('/api/BLOCK_NAME/project/notice');
}
export async function queryActivities() {
return request('/api/BLOCK_NAME/activities');
}
export async function fakeChartData() {
return request('/api/BLOCK_NAME/fake_chart_data');
}
export async function queryCurrent() {
return request('/api/BLOCK_NAME/currentUser');
}