本文整理匯總了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 });
}