You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
533 B
TypeScript
25 lines
533 B
TypeScript
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 });
|
|
};
|