完善账单功能,移除状态字段并优化支付资源创建逻辑
This commit is contained in:
@@ -7,7 +7,6 @@ export async function listBills(params: {
|
||||
size?: number
|
||||
bill_no?: string
|
||||
type?: number
|
||||
status?: number
|
||||
create_after?: Date
|
||||
create_before?: Date
|
||||
}) {
|
||||
|
||||
@@ -46,11 +46,15 @@ async function prepareResourceByWechat(props: CreateResourceReq) {
|
||||
return await callByUser<CreateResourceResp>('/api/resource/prepare/wechat', props)
|
||||
}
|
||||
|
||||
async function createResourceByAlipay(props: CreateResourceReq) {
|
||||
type PaidResourceReq = {
|
||||
trade_no: string
|
||||
}
|
||||
|
||||
async function createResourceByAlipay(props: PaidResourceReq) {
|
||||
return await callByUser('/api/resource/create/alipay', props)
|
||||
}
|
||||
|
||||
async function createResourceByWechat(props: CreateResourceReq) {
|
||||
async function createResourceByWechat(props: PaidResourceReq) {
|
||||
return await callByUser('/api/resource/create/wechat', props)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user