本文整理汇总了TypeScript中src/services.setParams函数的典型用法代码示例。如果您正苦于以下问题:TypeScript setParams函数的具体用法?TypeScript setParams怎么用?TypeScript setParams使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setParams函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: setURL
export const getPayments = (params?: any, filter?: any) =>
Request<Page<Linode.Payment>>(
setURL(`${API_ROOT}/account/payments`),
setMethod('GET'),
setParams(params),
setXFilter(filter)
).then(response => response.data);
示例2: setURL
export const getOAuthClients = (params?: any, filter?: any) =>
Request<Page<OAuthClient>>(
setURL(`${API_ROOT}/account/oauth-clients`),
setMethod('GET'),
setParams(params),
setXFilter(filter)
).then(response => response.data);
示例3: setURL
export const getEvents = (params: any = {}, filter: any = {}) =>
Request<Page<Event>>(
setURL(`${API_ROOT}/account/events`),
setMethod('GET'),
setXFilter(filter),
setParams(params),
);
示例4: setURL
export const getImages = (params: any = {}, filters: any = {}) =>
Request<Page<Image>>(
setURL(`${API_ROOT}/images`),
setMethod('GET'),
setParams(params),
setXFilter(filters)
).then(response => response.data);
示例5: setURL
export const getUsers = (params?: any, filters?: any) =>
Request<Page<User>>(
setURL(`${API_ROOT}/account/users`),
setMethod('GET'),
setParams(params),
setXFilter(filters)
).then(response => response.data);
示例6: setURL
export const getInvoiceItems = (invoiceId: number, params?: any, filter?: any) =>
Request<Page<Linode.InvoiceItem>>(
setURL(`${API_ROOT}/account/invoices/${invoiceId}/items`),
setMethod('GET'),
setParams(params),
setXFilter(filter),
)
.then(response => response.data);