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,35 @@
import request from '@/config/axios'
import type { MerchantVO } from './types'
export interface MerchantVO {
id: number
no: string
name: string
shortName: string
status: number
remark: string
createTime: Date
}
export interface MerchantPageReqVO extends PageParam {
no?: string
name?: string
shortName?: string
status?: number
remark?: string
createTime?: Date[]
}
export interface MerchantExportReqVO {
no?: string
name?: string
shortName?: string
status?: number
remark?: string
createTime?: Date[]
}
// 查询列表支付商户
export const getMerchantPageApi = (params) => {
export const getMerchantPageApi = (params: MerchantPageReqVO) => {
return request.get({ url: '/pay/merchant/page', params })
}
@@ -37,7 +64,7 @@ export const deleteMerchantApi = (id: number) => {
}
// 导出支付商户
export const exportMerchantApi = (params) => {
export const exportMerchantApi = (params: MerchantExportReqVO) => {
return request.download({ url: '/pay/merchant/export-excel', params })
}
// 支付商户状态修改