完善账单页面,抽取公共页面组件
This commit is contained in:
15
src/actions/bill.ts
Normal file
15
src/actions/bill.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import {Bill} from '@/lib/models'
|
||||
import {callByUser} from '@/actions/base'
|
||||
import {PageRecord} from '@/lib/api'
|
||||
|
||||
export async function listBills(params: {
|
||||
page?: number
|
||||
size?: number
|
||||
bill_no?: string
|
||||
type?: number
|
||||
status?: number
|
||||
create_after?: Date
|
||||
create_before?: Date
|
||||
}) {
|
||||
return await callByUser<PageRecord<Bill>>('/api/bill/list', params)
|
||||
}
|
||||
Reference in New Issue
Block a user