mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 20:36:30 +08:00
20 lines
387 B
TypeScript
20 lines
387 B
TypeScript
import type { CardListResult, ListResult } from '@/api/model/listModel';
|
|
import { request } from '@/utils/request';
|
|
|
|
const Api = {
|
|
BaseList: '/get-list',
|
|
CardList: '/get-card-list',
|
|
};
|
|
|
|
export function getList() {
|
|
return request.get<ListResult>({
|
|
url: Api.BaseList,
|
|
});
|
|
}
|
|
|
|
export function getCardList() {
|
|
return request.get<CardListResult>({
|
|
url: Api.CardList,
|
|
});
|
|
}
|