blob: 0b2f802c98382c82bec26cb64ee101c6317f22b3 [file] [log] [blame]
刘嘉昕9cdeca22025-06-03 16:54:30 +08001import axios from 'axios';
2
3const BASE_URL = 'http://localhost:8080/activity';
4
5// 获取所有 is_show == 0 的活动预览(只含标题和图片)
6export const getActivityPreviews = () => {
7 return axios.get(`${BASE_URL}/preview`);
8};
9
10// 获取所有 is_show == 0 的完整活动信息
11export const getFullActivities = () => {
12 return axios.get(`${BASE_URL}/full`);
13};