import request from "../utils/request";

/**
 * 活动列表页
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=782fda77-0da5-4885-88cb-f731df4ff799)
 */
export const getActivityList = () => request.get("/weapp/activity/list");

/**
 * 活动列表页
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=94fdf27d-6094-4e1e-8026-7544fe7c274a)
 */
export const getActivityDetail = (id) => request.get(`/weapp/activity/${id}`);

/**
 * 活动列表页
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=e25b84fd-6dbb-4234-9fc5-bca51b0858cd)
 */
export const joinActivity = (data) => request.post(`/weapp/activity`, data);
