refactor: pay

This commit is contained in:
xingyu4j
2022-11-30 15:33:58 +08:00
parent 24439b70ea
commit cbc7b9dfc0
19 changed files with 1075 additions and 1058 deletions

View File

@ -1,8 +1,41 @@
import request from '@/config/axios'
import type { ChannelVO } from './types'
export interface ChannelVO {
id: number
code: string
config: string
status: number
remark: string
feeRate: number
merchantId: number
appId: number
createTime: Date
}
export interface ChannelPageReqVO extends PageParam {
code?: string
status?: number
remark?: string
feeRate?: number
merchantId?: number
appId?: number
config?: string
createTime?: Date[]
}
export interface ChannelExportReqVO {
code?: string
status?: number
remark?: string
feeRate?: number
merchantId?: number
appId?: number
config?: string
createTime?: Date[]
}
// 查询列表支付渠道
export const getChannelPageApi = (params) => {
export const getChannelPageApi = (params: ChannelPageReqVO) => {
return request.get({ url: '/pay/channel/page', params })
}
@ -32,6 +65,6 @@ export const deleteChannelApi = (id: number) => {
}
// 导出支付渠道
export const exportChannelApi = (params) => {
export const exportChannelApi = (params: ChannelExportReqVO) => {
return request.download({ url: '/pay/channel/export-excel', params })
}

View File

@ -1,11 +0,0 @@
export type ChannelVO = {
id: number
code: string
config: string
status: number
remark: string
feeRate: number
merchantId: number
appId: number
createTime: string
}