import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data?: {
    /** 列表数据 */
    list: Array<any>;
  };
};

/** 卡片列表 */
export const getCardList = (data?: object) => {
  return http.request<Result>("post", "/getCardList", { data });
};

/** 版本日志 */
export const getReleases = () => {
  return http.request<Result>("get", "/releases");
};

/** 平台算法库 */
export const getAlgorithmList = (data?: object) => {
  return http.request<Result>("post", "/algorithmList", { data });
};
