// 系统配置
import {
  bluebookAiAgent,
} from '@/xiaolanbenlib/api/index'
import request from '@/xiaolanbenlib/module/axios.js'

import { TSystemCoreCnf, TSystemDefaultPageContent } from '@/types/system'


// 获取协议列表
export type TAgreementItem = {
  "link": string,
  "name": string
}
// 获取协议列表
export const getSysAgreements = (type: 'register'|'service') => {
  return  request.get<TAgreementItem[]>(`${bluebookAiAgent}api/v1/sys/agreements`, {
    params: {type}
  })
}

// 获取个人最多允许创建N个智能体、智能助手二维码照片、录音文案等核心配置

export const getSysCoreCnf = () => {
  return request.get<TSystemCoreCnf>(`${bluebookAiAgent}api/v1/sys/core/cnf`)
}


// 获取个人未创建智能体时的默认主页渲染内容

export const getSysDefaultPageContent = () => {
  request.get<TSystemDefaultPageContent>(`${bluebookAiAgent}api/v1/sys/defaultPage/content`)
}


