import { defHttp } from '/@/utils/http/axios'; enum Api { list = '/app/appOrder/refundOrderPageList', queryByid = '/app/appOrder/queryInfoById', queryEvents = '/app/appOrder/exportConditionByName', queryProject = '/app/appOrder/exportConditionByProjectName', exportData = '/app/appOrder/exportCondition', profitSharing = '/app/appOrder/profitSharing', } /** * 列表接口 * @param params */ export const list = (params) => defHttp.post({ url: Api.list, params }); export const queryByid = (orderId) => defHttp.get({ url: `${Api.queryByid}/${orderId}` }); export const queryEvents = (params) => defHttp.get({ url: Api.queryEvents, params }); export const queryProject = (params) => defHttp.get({ url: Api.queryProject, params }); export const putProfitSharing = (params) => { const queryString = new URLSearchParams(params).toString(); return defHttp.put({ url: `${Api.profitSharing}?${queryString}` }); }; export const exportData = (params) => defHttp.post( { url: Api.exportData, params, responseType: 'blob', }, { isTransformResponse: false, // 禁用默认的响应转换 } ); /** * 返回数据对象 data * 返回数据对象 * * AppOrderInfoVO */ export interface AppOrderInfoVO { /** * 订单类型:0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 */ orderType: number; /** * 地址 */ address?: string; /** * 下单时间 */ createTime?: string; /** * 赛程安排 */ gameScheduleVOList?: AppGameScheduleVO[]; /** * ID */ id?: string; /** * 使用记录 */ isinList?: AppIsinVO[]; /** * 买家昵称 */ nikeName?: string; /** * 订单号 */ orderCode?: string; /** * 订单状态 */ orderStatus: number; /** * 付款时间 */ payTime?: string; /** * 买家电话 */ phoneNumber?: string; /** * 实际付款 */ price?: number; /** * 订单信息 */ proInfoList?: AppOrderProInfo[]; /** * 试听优惠金额 */ sDiscounts?: number; /** * 地点 */ siteName?: string; /** * 团购优惠金额 */ tDiscounts?: number; /** * 商品总额 */ totalPrice?: number; /** * 核销记录 */ verificationRecordDTOList?: VerificationRecordDTO[]; [property: string]: any; } /** * org.jeecg.modules.app.vo.AppGameScheduleVO * * AppGameScheduleVO */ export interface AppGameScheduleVO { /** * 安排 */ arrange?: string; /** * 结束时间 */ endTime?: string; /** * 赛事id */ gameId?: string; /** * id */ id?: string; /** * 比赛名称 */ name?: string; /** * 开始状态 */ startStatus?: string; /** * 开始时间 */ startTime?: string; [property: string]: any; } /** * org.jeecg.modules.system.app.vo.AppIsinVO * * AppIsinVO */ export interface AppIsinVO { /** * 用户ID(关联家庭用户表) */ familyId?: string; /** * 用户名 */ familyUserName?: string; /** * 券码号 */ isinCode?: string; /** * 使用记录 */ isinList?: AppIsin[]; /** * 手机号码 */ UserPhone?: string; [property: string]: any; } /** * AppIsin */ export interface AppIsin { /** * 创建人;创建人 */ createBy?: string; /** * 创建时间;创建时间 * 创建时间 */ createTime?: string; /** * 删除标志;删除状态(0-正常,1-已删除) * 删除状态(0-正常,1-已删除) */ delFlag?: number; /** * 到期时间 */ expireTime?: string; /** * 用户ID * 用户ID(关联家庭用户表) */ familyId?: string; /** * 用户名 */ familyUserName?: string; /** * 主键ID */ id?: string; /** * 券状态 0-待使用 1-已使用 2-已失效 */ isinStatus?: number; /** * 订单编号 */ orderCode?: string; /** * 订单ID */ orderId?: string; /** * 子订单商品ID */ orderProInfoId?: string; /** * 部门编号 */ orgCode?: string; /** * 备注 */ remark?: string; /** * 系统状态;状态(0-正常,1-冻结) * 系统状态(0-正常,1-冻结) */ status?: number; /** * 券码号 */ ticketNo?: string; /** * 更新时间;更新时间 * 更新时间 */ updateTime?: string; /** * 使用地点 */ useAddress?: string; /** * 使用照片 */ useImage?: string; /** * 手机号码 */ UserPhone?: string; /** * 使用时间 */ useTime?: string; /** * 核验人ID */ verifyUserId?: string; /** * 核验人 * 核验人名称 */ verifyUserName?: string; [property: string]: any; } /** * org.jeecg.modules.system.app.entity.AppOrderProInfo * * AppOrderProInfo */ export interface AppOrderProInfo { /** * 地点 */ address?: string; /** * 售后状态 */ afterSaleStatus?: number; /** * 创建人;创建人 */ createBy?: string; /** * 创建时间;创建时间 */ createTime?: string; /** * 删除标志;删除状态(0-正常,1-已删除) */ delFlag?: number; /** * 过期时间 */ expireTime?: string; /** * 使用人ID */ familyUserId?: string; /** * 时间段 */ frameTimeStr?: string; /** * 比赛日期 */ gameTimeStr?: string; /** * id */ id?: string; /** * 订单id * 订单编号 */ orderCode?: string; /** * 订单id */ orderId?: string; /** * 订单状态 */ orderStatus: number; /** * 是否免费试听课(0-否 1-是) */ orFreePro?: number; /** * 原价/元 */ originalPrice?: number; /** * 实际价格/元 */ price?: number; /** * 产品id;场地/赛事/课程 */ productId?: string; /** * 商品图片 */ productImage?: string; /** * 商品名称 */ productName?: string; /** * 数量 */ quantity?: number; /** * 系统状态;状态(0-正常,1-冻结) */ status?: number; /** * 券号 */ ticketNo?: string; /** * 商品类型(0-学校 1-包场 2-无固定场 3-个人赛 4-团队赛 5-课程 6-保险) */ type?: number; /** * 更新人;更新人 */ updateBy?: string; /** * 更新时间;更新时间 */ updateTime?: string; /** * 日期 */ useDateStr?: string; /** * 使用人 */ userName?: string; /** * 手机号 */ userPhone?: string; [property: string]: any; } /** * org.jeecg.modules.system.app.dto.VerificationRecordDTO * * VerificationRecordDTO */ export interface VerificationRecordDTO { /** * 课程类型(0-正常课 1-补课) */ coursesType?: number; /** * 核销记录 */ verificationRecordList?: AppCoursesVerificationRecord[]; [property: string]: any; } /** * AppCoursesVerificationRecord */ export interface AppCoursesVerificationRecord { /** * 上课时间 */ coursesEndTime?: string; /** * 课程ID */ coursesId?: string; /** * 课时名称 */ coursesName?: string; /** * 课程小节ID */ coursesPriceRuleId?: string; /** * 上课时间 */ coursesStartTime?: string; /** * 课程类型(0-正常课 1-补课) */ coursesType?: number; /** * 创建人;创建人 */ createBy?: string; /** * 创建时间;创建时间 */ createTime?: string; /** * 删除标志;删除状态(0-正常,1-已删除) */ delFlag?: number; /** * id */ id?: string; /** * 订单编号 */ orderCode?: string; /** * 订单id */ orderId?: string; /** * id * 部门编号 */ orgCode?: string; /** * 是否延课(0-未延课 1-已延课) */ orPostpone?: number; /** * 延课原因 */ postponeReason?: string; /** * 系统状态;状态(0-正常,1-冻结) */ status?: number; /** * 更新人;更新人 */ updateBy?: string; /** * 更新时间;更新时间 */ updateTime?: string; /** * 使用人ID */ useUserId?: string; /** * 使用人人脸照片 */ useUserImage?: string; /** * 使用人名称 */ useUserName?: string; /** * 使用人手机号 */ useUserPhone?: string; /** * 核验照片 */ verifyImage?: string; /** * 核销状态(0-未核销 1-已核销) */ verifyStatus?: number; /** * 核验时间 */ verifyTime?: string; /** * 核验人ID */ verifyUserId?: string; /** * 核验人名称 */ verifyUserName?: string; [property: string]: any; }