- Remove unused template files (frontend-code-interpreter, template-renderer) - Add home, test1, test2, zh-en-translator pages - Update router configuration - Add Docker and tailwind config - Update environment files and configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
782 B
TypeScript
29 lines
782 B
TypeScript
import { cacheGet } from '@/utils/cacheUtil'
|
|
|
|
export function getAgentBaseInfo(params: { id: string }) {
|
|
const Tenantid = cacheGet('tenantId')
|
|
const Token = cacheGet('token')
|
|
return fetch(`${import.meta.env.VITE_API_BASE_AI}/agent/baseInfo/info?id=${params.id}`, {
|
|
method: 'GET',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
Tenantid,
|
|
Token
|
|
}
|
|
}).then(res => res.json())
|
|
}
|
|
|
|
// 获取用户信息
|
|
export async function getUserInfoById() {
|
|
const Tenantid = cacheGet('tenantId')
|
|
const Token = cacheGet('token')
|
|
return fetch(`${import.meta.env['VITE_API_BASE_LAMP']}/oauth/anyone/getUserInfoById`, {
|
|
method: 'GET',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
Tenantid,
|
|
Token
|
|
}
|
|
}).then(res => res.json())
|
|
}
|