44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 发卡记录 VO
|
|
export interface CardLogVO {
|
|
id: number // 编号
|
|
nickName: string // 会员昵称
|
|
phone: string // 手机号
|
|
countNumber: number // 数量
|
|
cardSection: number // 区间
|
|
}
|
|
|
|
// 发卡记录 API
|
|
export const CardLogApi = {
|
|
// 查询发卡记录分页
|
|
getCardLogPage: async (params: any) => {
|
|
return await request.get({ url: `/send/card-log/page`, params })
|
|
},
|
|
|
|
// 查询发卡记录详情
|
|
getCardLog: async (id: number) => {
|
|
return await request.get({ url: `/send/card-log/get?id=` + id })
|
|
},
|
|
|
|
// 新增发卡记录
|
|
createCardLog: async (data: CardLogVO) => {
|
|
return await request.post({ url: `/send/card-log/create`, data })
|
|
},
|
|
|
|
// 修改发卡记录
|
|
updateCardLog: async (data: CardLogVO) => {
|
|
return await request.put({ url: `/send/card-log/update`, data })
|
|
},
|
|
|
|
// 删除发卡记录
|
|
deleteCardLog: async (id: number) => {
|
|
return await request.delete({ url: `/send/card-log/delete?id=` + id })
|
|
},
|
|
|
|
// 导出发卡记录 Excel
|
|
exportCardLog: async (params) => {
|
|
return await request.download({ url: `/send/card-log/export-excel`, params })
|
|
},
|
|
}
|