mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
20 lines
388 B
TypeScript
20 lines
388 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", "/get-card-list", { data });
|
|
};
|
|
|
|
/** 版本日志 */
|
|
export const getReleases = () => {
|
|
return http.request<Result>("get", "/releases");
|
|
};
|