| | |
| | | ...axiosConfig, |
| | | // baseURL: process.env.NODE_ENV === 'development' ? '/' : 'https://api.81812333.com', |
| | | requestInterceptors: [ |
| | | // [ |
| | | // (config) => { |
| | | // console.log('config2: ', config); |
| | | // return config; |
| | | // }, |
| | | // ], |
| | | [ |
| | | (config) => { |
| | | if (config.params) { |
| | | config.params.checkChannelId = this.ctx.accountModel.channlesNum; |
| | | } |
| | | if (config.data) { |
| | | config.data.checkChannelId = this.ctx.accountModel.channlesNum; |
| | | } |
| | | return config; |
| | | }, |
| | | ], |
| | | ...axiosConfig.requestInterceptors, |
| | | ], |
| | | timeout: 10 * 1000, |
| | |
| | | } |
| | | |
| | | async lifePayPhoneMesssageCodeLogin(body: PhoneMesssageCodeLoginInput, options?: RequestConfig) { |
| | | return this.request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | return this.request<LifePayPhoneMesssageCodeLoginOutput>( |
| | | '/api/Account/LifePayPhoneMesssageCodeLogin', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取折扣 GET /api/LifePay/GetRate */ |
| | |
| | | } |
| | | |
| | | /** 根据订单号获取支付状态 GET /api/LifePay/GetPayStatusByOrderNo */ |
| | | async getPayStatusByOrderNo(params: APIgetPayStatusByOrderNoParams, options?: RequestConfig) { |
| | | async getPayStatusByOrderNo(body: GetPayStatusByOrderNoInput, options?: RequestConfig) { |
| | | return this.request<LifeRechargeConstants.LifePayStatusEnum>( |
| | | '/api/LifePay/GetPayStatusByOrderNo', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取须知 GET /api/LifePay/GetIntroInfo */ |
| | | async getIntroInfo(params: APIgetIntroInfoParams, options?: RequestConfig) { |
| | | return this.request<LifePayIntroInfoOutput[]>('/api/LifePay/GetIntroInfo', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取渠道折扣 GET /api/LifePay/GetChannelRate */ |
| | | async getChannelRate(body: ChannelsBaseInput, options?: RequestConfig) { |
| | | return this.request<ChannelRateOutput>('/api/LifePay/GetChannelRate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取在线客服 GET /api/LifePay/GetOnlineService */ |
| | | async getOnlineService(options?: RequestConfig) { |
| | | return this.request<string>('/api/LifePay/GetOnlineService', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 获取全部缴费渠道 GET /api/LifePay/GetLifePayChannlesAllList */ |
| | | async getLifePayChannlesAllList(body: QueryLifePayChannlesInput, options?: RequestConfig) { |
| | | return this.request<CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 根据用户ID获取用户是否为后台管理员 POST /api/Account/LifePayUserMesssageByIduser */ |
| | | async lifePayUserMesssageByIduser( |
| | | body: LifePayUserMesssageByIduserInput, |
| | | options?: RequestConfig |
| | | ) { |
| | | return this.request<LifePayPhoneMesssageCodeLoginOutput>( |
| | | '/api/Account/LifePayUserMesssageByIduser', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取顶部统计数据 GET /api/LifePay/GetTopStatistics */ |
| | | async getTopStatistics( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | body: TopStatisticsInput, |
| | | options?: RequestConfig |
| | | ) { |
| | | return this.request<TopStatisticsOutput>('/api/LifePay/GetTopStatistics', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export interface PhoneMesssageCodeLoginInput { |
| | |
| | | |
| | | export interface LifePhoneDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifePhoneData; |
| | | } |
| | | |
| | |
| | | |
| | | export interface LifeElectricDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifeElectricData; |
| | | } |
| | | |
| | |
| | | creationTime?: string; |
| | | /** 退款时间 */ |
| | | refundTime?: string; |
| | | /** 退款申请时间 */ |
| | | refundApplyTime?: string; |
| | | /** 退款凭证 */ |
| | | refundCredentialsImgUrl?: string; |
| | | refundApplyRemark?: string; |
| | | refundCheckRemark?: string; |
| | | /** 渠道流水号 */ |
| | | acoolyOrderNo?: string; |
| | | frontStatus?: LifeRechargeConstants.LifePayOrderFrontStatusEnum; |
| | | lifePayRefundStatus?: LifeRechargeConstants.LifePayRefundStatusEnum; |
| | | acoolyStatus?: LifeRechargeConstants.ACOOLYStatusEnum; |
| | | } |
| | | |
| | | export interface ElectricSupportAreaResponse { |
| | |
| | | |
| | | export interface LifeGasDataCreateLifePayOrderInput { |
| | | userId?: string; |
| | | /** 渠道Id */ |
| | | channelId?: string; |
| | | productData?: LifeGasData; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | export interface ChannelsBaseInput { |
| | | channelId?: string; |
| | | checkChannelId?: string; |
| | | } |
| | | |
| | | export interface AreaInfo { |
| | |
| | | /** 快速检索 */ |
| | | quickQuery?: string; |
| | | } |
| | | |
| | | export interface GetPayStatusByOrderNoInput { |
| | | checkChannelId?: string; |
| | | orderNo?: string; |
| | | } |
| | | |
| | | export interface APIgetIntroInfoParams { |
| | | type?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | } |
| | | |
| | | export interface LifePayIntroInfoOutput { |
| | | type?: IntroInfoTypeEnum; |
| | | lifePayType?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | /** 摘要 */ |
| | | contentSummary?: string; |
| | | /** 文本内容 */ |
| | | content?: string; |
| | | /** 图片/视频路径 */ |
| | | path?: string; |
| | | /** 排序 */ |
| | | sequence?: number; |
| | | } |
| | | |
| | | export type IntroInfoTypeEnum = 0 | 1 | 2 | 3 | 4; |
| | | |
| | | export interface ChannelRateOutput { |
| | | channlesRate?: number; |
| | | } |
| | | |
| | | export interface CreateEditPayChannelsInput { |
| | | id?: string; |
| | | channlesName?: string; |
| | | channlesNum?: string; |
| | | channlesRate?: number; |
| | | channlesRakeRate?: number; |
| | | } |
| | | |
| | | export interface LifePayPhoneMesssageCodeLoginOutput { |
| | | /** 用户Id */ |
| | | userId?: string; |
| | | /** 是否是后台用户 */ |
| | | isBackClientUser?: boolean; |
| | | /** 渠道号 */ |
| | | channlesNum?: ChannelOutput[]; |
| | | } |
| | | |
| | | export interface ChannelOutput { |
| | | name?: string; |
| | | channlesNum?: string; |
| | | channlesId?: string; |
| | | switchType?: LifeRechargeConstants.LifePaySwitchTypeEnum; |
| | | } |
| | | |
| | | export interface LifePayUserMesssageByIduserInput { |
| | | pageModel?: Pagination; |
| | | checkChannelId?: string; |
| | | /** 用户编号 */ |
| | | id?: string; |
| | | } |
| | | |
| | | export interface TopStatisticsInput { |
| | | channleList?: string[]; |
| | | } |
| | | |
| | | export interface TopStatisticsOutput { |
| | | /** 创建时间 */ |
| | | creationTime?: string; |
| | | /** 账户余额 */ |
| | | amount?: number; |
| | | /** 累计收款 */ |
| | | accumulatedReceipts?: number; |
| | | /** 昨日收款 */ |
| | | receiptsYesterday?: number; |
| | | /** 累计收入 */ |
| | | accumulatedIncome?: number; |
| | | /** 累计下单 */ |
| | | accumulatedOrders?: number; |
| | | /** 昨日下单 */ |
| | | ordersNumYesterday?: number; |
| | | /** 昨日成功 */ |
| | | yesterdaySuccess?: number; |
| | | /** 昨日失败 */ |
| | | yesterdayFail?: number; |
| | | /** 累计用户 */ |
| | | accumulatedUsers?: number; |
| | | /** 昨日活跃用户 */ |
| | | yesterdayActiveUsers?: number; |
| | | } |
| | | |
| | | export interface QueryLifePayChannlesInput { |
| | | status?: LifeRechargeConstants.LifePayChannelsStatsEnum; |
| | | } |