chat聊天功能

This commit is contained in:
X1627315083
2025-05-20 16:47:27 +08:00
parent 8bc0a52ab8
commit c235d0de4a
50 changed files with 4902 additions and 2861 deletions

View File

@@ -154,6 +154,13 @@ const adminRouter = {
route:'/administrator/coupons',
key:'sub12',
isShow:true,
},{
name:'Organization',
icon:'usetime',
route:'/administrator/organization',
key:'sub13',
isShow:true,
}],
schoolOrEnterprise:[
{

View File

@@ -213,6 +213,7 @@ export const Https = {
queryUserGroup:`/api/history/queryUserGroup`, //History用户分页分组列表
deleteUserGroup:`/api/history/deleteUserGroup`, //History删除用户分组
updateUserGroupName:`/api/history/updateUserGroupName`, //History修改用户分组名
saveOrUpdate:`/api/project/saveOrUpdate`, //History修改用户分组名
historyChoose:`/api/history/choose`, //History choose
getDesignDetail:`/api/design/detail/getDetail`,//查询design详情
designSingleWithGradient:`/api/design/detail/designSingleWithGradient`,//查询需要更新mask列表
@@ -232,6 +233,11 @@ export const Https = {
editRelPublicClassificationIdList:`/api/classification/editRelPublicClassificationIdList`,//多选修改公共标签
//模块化
llmStream:`/api/llm/stream`,//聊天
chatCreateProject:`/api/llm/chatCreateProject`,//聊天创建项目
getChatHistory:`/api/llm/getChatHistory`,//获取聊天历史记录
llmUploadFile:`/api/llm/uploadFile`,//聊天上传文件
saveOrUpdate:`/api/project/saveOrUpdate`,//模块化新增修改
getModuleContent:`/api/project/getModuleContent`,//获取模块内容
saveModuleContent:`/api/project/saveModuleContent`,//储存模块内容
@@ -312,7 +318,9 @@ export const Https = {
updatePromCodeInfo:`/api/stripe/updatePromCodeInfo`,//修改优惠码
getAllCoupons:`/api/stripe/getAllCoupons`,//查询优惠码列表
checkCoupon:`/api/stripe/checkCoupon`,//根据优惠码获取结算后的金额
deletePromCode:`api/stripe/deletePromCode`,//删除优惠券
deletePromCode:`/api/stripe/deletePromCode`,//删除优惠券
addOrganization:`/api/inquiry/addOrganization`,//添加企业版或者教育版
queryOrganization:`/api/inquiry/queryOrganization`,//查询企业版或者教育版
//云生成
@@ -418,7 +426,7 @@ export const Https = {
axiosGet(url,config) {
return new Promise((resolve, reject) => {
if(isLoginTime) {
if(isLoginTime && url != '/api/portfolio/page') {
resolve('')
return
}
@@ -432,7 +440,7 @@ export const Https = {
axiosPut(url, data) {
return new Promise((resolve, reject) => {
if(isLoginTime) {
if(isLoginTime && url != '/api/portfolio/page') {
resolve('')
return
}
@@ -446,7 +454,7 @@ export const Https = {
axiosPost(url, data,config) {
return new Promise((resolve, reject) => {
if(isLoginTime) {
if(isLoginTime && url != '/api/portfolio/page') {
resolve('')
return
}
@@ -460,7 +468,7 @@ export const Https = {
axiosDelete(url, newData) {
return new Promise((resolve, reject) => {
if(isLoginTime) {
if(isLoginTime && url != '/api/portfolio/page') {
resolve('')
return
}

View File

@@ -236,13 +236,71 @@ const openTypeList = (t)=>{
tools:{
icon:'fi-rr-magic-wand',
label:'Advanced tools',
value:'advancedTools',
value:'tools',
router:'/home/tools',
list:[
// {
// icon:'fi fi-rr-grid',
// value:'moodBoard',
// label:'Moodboard',
// router:'tools=moodBoard'
// },{
// icon:'fi fi-rs-objects-column',
// value:'printBoard',
// label:'Printboard',
// router:'tools=printBoard'
// },{
// icon:'fi fi-rr-palette',
// value:'colorBoard',
// label:'Colorboard',
// router:'tools=colorBoard'
// },{
// icon:'fi icon iconfont icon-a-waitao_changkuanwaitao11x',
// value:'sketchBoard',
// label:'Sketchboard',
// router:'tools=sketchBoard'
// },{
// icon:'fi fi-rs-people',
// value:'mannequin',
// label:'Mannequin',
// router:'tools=mannequin'
// },{
// icon:'fi fi-rs-paintbrush-pencil',
// value:'design',
// label:'Design',
// router:'tools=design'
// },
{
icon:'',
label:'All',
value:'all',
}
icon:'fi fi-ss-box-open',
value:'toProduct',
label:'To Product Image',
router:'tools=toProduct'
},{
icon:'fi fi-br-keyboard-brightness',
value:'relight',
label:'Relight',
router:'tools=relight'
},{
icon:'fi fi-rr-play-alt',
value:'poseTransfer',
label:'Transfer Pose',
router:'tools=poseTransfer'
},{
icon:'i class="fi fi-rr-puzzle-alt',
value:'deReconstruction',
label:'De/Reconstruction',
router:'tools=deReconstruction'
},{
icon:'fi fi-rr-cubes',
value:'patternMaking3D',
label:'3D Pattern Making',
router:'tools=patternMaking3D'
},{
icon:'fi fi-rr-pen-swirl',
value:'canvasUpload',
label:'Canvas',
router:'tools=canvasUpload'
},
]
},
library:{
@@ -289,11 +347,6 @@ const openTypeList = (t)=>{
label:'History',
value:'history',
list:[
{
icon:'',
label:'All',
value:'all',
}
]
},
gallery:{
@@ -328,14 +381,14 @@ const openTypeList = (t)=>{
event:{
icon:'fi-rr-calendar-star',
label:'Event',
value:'event',
value:'events',
router:'/home/events',
list:[
{
icon:'',
label:'All',
value:'all',
router:''
router:'events=all'
}
]
},