zhengyiming
2025-06-09 b237e3a2dd13592a680d99c058e5c832a1322120
fix: v1.4
4个文件已修改
63 ■■■■■ 已修改文件
packages/core/src/lifeRechargeConstants.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeServices.ts 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/typings.d.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/tsconfig.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeConstants.ts
@@ -199,4 +199,15 @@
    禁用 = 20,
  }
  export enum LifePayChannelConsultationFollowupStatus {
    /**未回访 */
    None = 0,
    /**跟进中 */
    Ing = 1,
    /**已拒绝 */
    Refuse = 1,
    /**已开通 */
    Open = 1,
  }
}
packages/core/src/lifeRechargeServices.ts
@@ -395,6 +395,36 @@
      ...(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/CreateChannelConsultationFollowup */
  async createChannelConsultationFollowup(
    body: CreateChannelConsultationFollowupInput,
    options?: RequestConfig
  ) {
    return this.request<string>('/api/Promoter/CreateChannelConsultationFollowup', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
}
export interface PhoneMesssageCodeLoginInput {
@@ -896,3 +926,15 @@
export interface QueryLifePayChannlesInput {
  status?: LifeRechargeConstants.LifePayChannelsStatsEnum;
}
export interface APIsetClickCountParams {
  idnumber?: string;
}
export interface CreateChannelConsultationFollowupInput {
  /** 渠道咨询Id */
  channelConsultationId?: string;
  followupStatus?: LifeRechargeConstants.LifePayChannelConsultationFollowupStatus;
  /** 回访记录 */
  followupRemark?: string;
}
packages/services/api/typings.d.ts
@@ -718,6 +718,15 @@
    switchType?: LifePaySwitchTypeEnum;
    status?: LifePayChannelsStatsEnum;
    channlesType?: LifePayChannlesTypeEnum;
    agentType?: LifePayChannelAgentType;
    /** 区域-省Id */
    areaProvinceId?: number;
    /** 区域-市Id */
    areaCityId?: number;
    /** 推广员ID */
    promoterIdNumber?: string;
    /** 推广员 */
    promoterName?: string;
  }
  interface CreateEditPayChannelsInputPageOutput {
packages/services/tsconfig.json
@@ -9,5 +9,6 @@
    "composite": true,
    "types": ["node", "./api/typings.d.ts", "./types.d.ts", "./globalType.d.ts"]
  },
  "include": ["api", "./api/typings.d.ts"],
  "exclude": ["node_modules", "dist"]
}