本文整理汇总了TypeScript中@su/ajax.get函数的典型用法代码示例。如果您正苦于以下问题:TypeScript get函数的具体用法?TypeScript get怎么用?TypeScript get使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getComments
export function getComments(params: getComments.Param) {
return ajax.get<NR<getComments.Response>>('fees/comments', {
params
});
}
示例2: getConsumeItems
export function getConsumeItems() {
return ajax.get('consume_item_types');
}
示例3: getExpense
export function getExpense(id: string | number) {
return ajax.get(`fees/expenses/${id}`);
}
示例4: getExpenses
export function getExpenses(params: getExpenses.Param) {
return ajax.get<NR<getExpenses.Param>>('fees/expenses', { params });
}
示例5: getSubAccount
export function getSubAccount() {
return ajax.get<NR<getSubAccount.Response>>('sub_accounts/info');
}
示例6: getApplication
export function getApplication(id: number | string) {
return ajax.get<NR<ApplicationData>>(`fees/applications/${id}`);
}
示例7: getApplications
export function getApplications(params: GetApplicationsParam) {
return ajax.get('fees/applications', { params });
}
示例8: getApplicationOverview
export function getApplicationOverview(params: getApplicationOverview.Param) {
return ajax.get<NR<getApplicationOverview.Response>>('fees/applications/overview', { params });
}