import request from '@/utils/request'

// ======== 多模型路由配置（管理端跨租户） ========

// 获取所有模型路由配置（可传companyId筛选租户）
export function listModelConfigs(params) {
  return request({
    url: '/workflow/lobster/model-config/list',
    method: 'get',
    params
  })
}

// 获取配置类型列表
export function getModelConfigTypes() {
  return request({
    url: '/workflow/lobster/model-config/types',
    method: 'get'
  })
}

// 新增模型路由配置
export function addModelConfig(data) {
  return request({
    url: '/workflow/lobster/model-config',
    method: 'post',
    data
  })
}

// 更新模型路由配置
export function updateModelConfig(id, data) {
  return request({
    url: '/workflow/lobster/model-config/' + id,
    method: 'put',
    data
  })
}

// 删除模型路由配置
export function deleteModelConfig(id) {
  return request({
    url: '/workflow/lobster/model-config/' + id,
    method: 'delete'
  })
}
