feat: 创建项目ID

This commit is contained in:
2026-02-25 11:00:31 +08:00
parent 37cedb5272
commit 9fbeb408fc
9 changed files with 288 additions and 173 deletions

View File

@@ -3,8 +3,8 @@ import request from '@/utils/request'
// 对话
export interface AgentParamsType {
message: string // 消息
projectID: string //
versionID?: string //
projectID: string //
versionID?: string //
imageUrlList?: string[] // 图片URL列表
configParams: Record<string, any> // 其他配置参数
token: string
@@ -13,7 +13,17 @@ export const fetchAgentReply = (data: AgentParamsType): Promise<AgentResponse> =
return request({
url: '/api/ai-design/chat',
method: 'get',
data,
data,
meta: { responseAll: true }
})
}
export interface CreateProjectParamsType {
type: string
region: string
style: string
temperature: number | string
}
export const createProject = (data: CreateProjectParamsType): Promise<any> => {
return request({ url: '/api/project/init', method: 'post', data })
}