import request from '@/config/axios'

// AI 模型 VO
export interface ModelVO {
  id: string
  // TODO: Add other fields based on your data model
}

// AI 模型 API
export const ModelApi = {
  // 获得模型分页
  getModelPage: async (params: any) => {
    return await request.get({ url: '/chat/aigc/model/page', params })
  },

  // 获得模型列表
  getModelList: async (params: any) => {
    return await request.get({ url: '/chat/aigc/model/list', params })
  },

  // 获得模型详情
  getModel: async (id: string) => {
    return await request.get({ url: `/chat/aigc/model/${id}` })
  },

  // 创建模型
  createModel: async (data: any) => {
    return await request.post({ url: '/chat/aigc/model', data })
  },

  // 更新模型
  updateModel: async (data: any) => {
    return await request.put({ url: '/chat/aigc/model', data })
  },

  // 删除模型
  deleteModel: async (id: string) => {
    return await request.delete({ url: `/chat/aigc/model/${id}` })
  }
}