59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 活动报名 VO
|
|
export interface RegistrationVO {
|
|
userName: string // 用户姓名
|
|
phoneNumber: string // 手机号
|
|
companyName: string // 公司名称
|
|
position: string // 职位
|
|
operationPlatform: string // 运营平台
|
|
mainCategory: string // 主营品类
|
|
agencyCity: string // 代理城市
|
|
productIntent: string // 产品意向
|
|
purpose: string // 参会目的
|
|
attendeeIdentity: string // 参会身份
|
|
registrationStatus: string // 报名状态
|
|
verificationCode: string // 核销码
|
|
verificationStatus: string // 核销状态
|
|
isPaid: string // 是否付费
|
|
reviewStatus: string // 审核状态
|
|
}
|
|
|
|
// 活动报名 API
|
|
export const RegistrationApi = {
|
|
// 查询活动报名分页
|
|
getRegistrationPage: async (params: any) => {
|
|
return await request.get({ url: `/promotion/registration/page`, params })
|
|
},
|
|
|
|
// 查询活动报名详情
|
|
getRegistration: async (id: number) => {
|
|
return await request.get({ url: `/promotion/registration/get?id=` + id })
|
|
},
|
|
|
|
// 新增活动报名
|
|
createRegistration: async (data: RegistrationVO) => {
|
|
return await request.post({ url: `/promotion/registration/create`, data })
|
|
},
|
|
|
|
// 修改活动报名
|
|
updateRegistration: async (data: RegistrationVO) => {
|
|
return await request.put({ url: `/promotion/registration/update`, data })
|
|
},
|
|
|
|
// 删除活动报名
|
|
deleteRegistration: async (id: number) => {
|
|
return await request.delete({ url: `/promotion/registration/delete?id=` + id })
|
|
},
|
|
|
|
// 导出活动报名 Excel
|
|
exportRegistration: async (params) => {
|
|
return await request.download({ url: `/promotion/registration/export-excel`, params })
|
|
},
|
|
// 查询活动名称数据
|
|
getActivityNames: async () => {
|
|
return await request.get({ url: `/promotion/registration/getOrganization` })
|
|
},
|
|
|
|
}
|