AI Chat Role API Client (chatRole/index.js)

yudao-ui-admin-vue2 · src/api/ai/model/chatRole/index.js · javascript · MIT
ai, integration, chat, lang:javascript

API client module for managing AI chat roles, pagination, and categories in a Vue admin interface.

// Source: https://github.com/yudaocode/yudao-ui-admin-vue2 | License: MIT | Copyright 2021 ruoyi-vue-pro
// Provided via justclaw.it.com; keep this notice with the code.
import request from '@/utils/request'

// AI 聊天角色 API
export const ChatRoleApi = {
  // 查询聊天角色分页
  getChatRolePage(params) {
    return request({ url: '/ai/chat-role/page', method: 'get', params })
  },

  // 查询聊天角色详情
  getChatRole(id) {
    return request({ url: '/ai/chat-role/get?id=' + id, method: 'get' })
  },

  // 新增聊天角色
  createChatRole(data) {
    return request({ url: '/ai/chat-role/create', method: 'post', data })
  },

  // 修改聊天角色
  updateChatRole(data) {
    return request({ url: '/ai/chat-role/update', method: 'put', data })
  },

  // 删除聊天角色
  deleteChatRole(id) {
    return request({ url: '/ai/chat-role/del

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key