aiApi.js 848 Bytes
/*
 * @Author: 前端 qianduan01@didihu.com.cn
 * @Date: 2024-02-24 10:06:36
 * @LastEditors: 前端 qianduan01@didihu.com.cn
 * @LastEditTime: 2024-02-24 10:06:56
 * @FilePath: \dj-scrm-wx-work-attachment-psd\src\api\aiApi.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const url = '/rop-scrm-marketing/router'
import { utils } from 'glsx-common'
export default {
  /**查询喜报战报推送日志分页列表 */
  issueChatGpt(data) {
    const method = 'scrm.api.knowledge.gptchat'
    return httpRequest(method, data)
  },
  /**
   *  获取AI id
   */
  getAiId(data) {
    data.method = 'marketing.api.scriptlibrary.ai.id'
    return window.$HTTP({
      url,
      data,
      returnAll: true
    })
  }
}