wupengfei
2025-06-09 17336d42e38798b0289029e84271d1433ea21080
packages/core/src/lifeRechargeServices.ts
@@ -351,9 +351,13 @@
  }
  /** 获取全部缴费渠道 GET /api/LifePay/GetLifePayChannlesAllList */
  async getLifePayChannlesAllList(options?: RequestConfig) {
  async getLifePayChannlesAllList(body: QueryLifePayChannlesInput, options?: RequestConfig) {
    return this.request<CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', {
      method: 'GET',
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
@@ -374,6 +378,61 @@
        ...(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 || {}),
    });
  }
  /** 点击数+1 POST /api/Promoter/SetClickCount */
  async setClickCount(
    // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
    params: APIsetClickCountParams,
    options?: RequestConfig
  ) {
    return this.request<any>('/api/Promoter/SetClickCount', {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    });
  }
  /** 申请渠道咨询 POST /api/Promoter/CreateChannelConsultation */
  async createChannelConsultation(body: CreateChannelConsultationInput, options?: RequestConfig) {
    return this.request<string>('/api/Promoter/CreateChannelConsultation', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
  /** 创建或更新推广员 POST /api/Promoter/CreateOrUpdatePromoter */
  async createOrUpdatePromoter(body: API.CreateOrUpdatePromoterInput, options?: API.RequestConfig) {
    return this.request<string>('/api/Promoter/CreateOrUpdatePromoter', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
}
@@ -833,6 +892,8 @@
export interface ChannelOutput {
  name?: string;
  channlesNum?: string;
  channlesId?: string;
  switchType?: LifeRechargeConstants.LifePaySwitchTypeEnum;
}
export interface LifePayUserMesssageByIduserInput {
@@ -841,3 +902,71 @@
  /** 用户编号 */
  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;
}
export interface APIsetClickCountParams {
  idnumber?: string;
}
export interface CreateChannelConsultationInput {
  /** 客户端用户Id 如有 */
  userId?: string;
  /** 推广人Id */
  idNumber?: string;
  /** 咨询人 */
  name?: string;
  agentType?: LifeRechargeConstants.LifePayChannelAgentType;
  /** 联系方式 */
  phoneNumber?: string;
  /** 公司名称 */
  companyName?: string;
  /** 客户资源 */
  customerResources?: string;
}
export interface CreateOrUpdatePromoterInput {
  /** Id */
  id?: string;
  /** 客户端用户Id 如有 */
  userId?: string;
  /** ID */
  idNumber?: string;
  /** 推广员 */
  name?: string;
  /** 联系方式 */
  phoneNumber?: string;
  /** 备注 */
  remark?: string;
}