Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
志
志愿填报
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
单欣鑫
志愿填报
Commits
c54de2f1
Commit
c54de2f1
authored
May 28, 2025
by
sunsongtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
a2f158f6
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1086 additions
and
603 deletions
+1086
-603
pom.xml
ruoyi-admin/pom.xml
+3
-2
ApiChatController.java
.../java/com/ruoyi/web/controller/api/ApiChatController.java
+600
-600
ApiChatNewController.java
...va/com/ruoyi/web/controller/api/ApiChatNewController.java
+309
-0
application.yml
ruoyi-admin/src/main/resources/application.yml
+4
-0
pom.xml
ruoyi-system/pom.xml
+7
-1
BaiduAppRequest.java
...main/java/com/ruoyi/mall/domain/Chat/BaiduAppRequest.java
+66
-0
BaiduAppResponse.java
...ain/java/com/ruoyi/mall/domain/Chat/BaiduAppResponse.java
+97
-0
No files found.
ruoyi-admin/pom.xml
View file @
c54de2f1
...
@@ -73,11 +73,12 @@
...
@@ -73,11 +73,12 @@
<artifactId>
weixin-java-miniapp
</artifactId>
<artifactId>
weixin-java-miniapp
</artifactId>
</dependency>
</dependency>
<!--千帆 智能对话-->
<!--文心一言-->
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
okhttp
</artifactId>
<artifactId>
okhttp
</artifactId>
<version>
4.
8.1
</version>
<version>
4.
12.0
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <dependency>-->
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/ApiChatController.java
View file @
c54de2f1
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/ApiChatNewController.java
0 → 100644
View file @
c54de2f1
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/resources/application.yml
View file @
c54de2f1
...
@@ -142,3 +142,7 @@ qiNiu:
...
@@ -142,3 +142,7 @@ qiNiu:
secretKey
:
tWJjsaYPBBACuyw8CfaF9h2BRUziuje_zwrz4GyE
secretKey
:
tWJjsaYPBBACuyw8CfaF9h2BRUziuje_zwrz4GyE
bucketName
:
xiaoniu666666
bucketName
:
xiaoniu666666
baseUrl
:
https://image.xnszz.com/
baseUrl
:
https://image.xnszz.com/
baidu
:
appId
:
a7234eb3-fc6b-4e8a-baae-e7f2df86a1f3
appKey
:
bce-v3/ALTAK-SJq4Dnyo31QJlajmyMT40/d806d48c7b7f2ec9675c7cbf2171e6dd0676b274
\ No newline at end of file
ruoyi-system/pom.xml
View file @
c54de2f1
...
@@ -22,7 +22,13 @@
...
@@ -22,7 +22,13 @@
<groupId>
com.ruoyi
</groupId>
<groupId>
com.ruoyi
</groupId>
<artifactId>
ruoyi-common
</artifactId>
<artifactId>
ruoyi-common
</artifactId>
</dependency>
</dependency>
<!--lombok-->
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.4
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
ruoyi-system/src/main/java/com/ruoyi/mall/domain/Chat/BaiduAppRequest.java
0 → 100644
View file @
c54de2f1
package
com
.
ruoyi
.
mall
.
domain
.
Chat
;
import
lombok.Data
;
/**
* 请求体 用于请求百度千帆
*/
public
class
BaiduAppRequest
{
private
String
app_id
;
private
String
query
;
private
boolean
stream
;
private
String
conversation_id
;
public
BaiduAppRequest
(
String
app_id
,
String
query
,
String
conversation_id
)
{
this
.
app_id
=
app_id
;
this
.
query
=
query
;
this
.
conversation_id
=
conversation_id
;
}
public
String
getApp_id
()
{
return
app_id
;
}
public
void
setApp_id
(
String
app_id
)
{
this
.
app_id
=
app_id
;
}
public
String
getQuery
()
{
return
query
;
}
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
}
public
boolean
isStream
()
{
return
stream
;
}
public
void
setStream
(
boolean
stream
)
{
this
.
stream
=
stream
;
}
public
String
getConversation_id
()
{
return
conversation_id
;
}
public
void
setConversation_id
(
String
conversation_id
)
{
this
.
conversation_id
=
conversation_id
;
}
@Override
public
String
toString
()
{
return
"BaiduAppRequest{"
+
"app_id='"
+
app_id
+
'\''
+
", query='"
+
query
+
'\''
+
", stream="
+
stream
+
", conversation_id='"
+
conversation_id
+
'\''
+
'}'
;
}
}
ruoyi-system/src/main/java/com/ruoyi/mall/domain/Chat/BaiduAppResponse.java
0 → 100644
View file @
c54de2f1
package
com
.
ruoyi
.
mall
.
domain
.
Chat
;
import
lombok.Data
;
import
java.util.List
;
/**
* 响应体 接收消息用
*/
public
class
BaiduAppResponse
{
private
String
request_id
;
private
String
date
;
private
String
answer
;
private
String
conversation_id
;
private
String
message_id
;
private
Boolean
is_completion
;
private
List
<
Object
>
content
;
public
String
getRequest_id
()
{
return
request_id
;
}
public
void
setRequest_id
(
String
request_id
)
{
this
.
request_id
=
request_id
;
}
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getAnswer
()
{
return
answer
;
}
public
void
setAnswer
(
String
answer
)
{
this
.
answer
=
answer
;
}
public
String
getConversation_id
()
{
return
conversation_id
;
}
public
void
setConversation_id
(
String
conversation_id
)
{
this
.
conversation_id
=
conversation_id
;
}
public
String
getMessage_id
()
{
return
message_id
;
}
public
void
setMessage_id
(
String
message_id
)
{
this
.
message_id
=
message_id
;
}
public
Boolean
getIs_completion
()
{
return
is_completion
;
}
public
void
setIs_completion
(
Boolean
is_completion
)
{
this
.
is_completion
=
is_completion
;
}
public
List
<
Object
>
getContent
()
{
return
content
;
}
public
void
setContent
(
List
<
Object
>
content
)
{
this
.
content
=
content
;
}
@Override
public
String
toString
()
{
return
"BaiduAppResponse{"
+
"request_id='"
+
request_id
+
'\''
+
", date='"
+
date
+
'\''
+
", answer='"
+
answer
+
'\''
+
", conversation_id='"
+
conversation_id
+
'\''
+
", message_id='"
+
message_id
+
'\''
+
", is_completion="
+
is_completion
+
", content="
+
content
+
'}'
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment