Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
poc
poc-api
Commits
dbee3b19
Commit
dbee3b19
authored
Jan 15, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 应用对话记录添加图片记录
parent
a582761e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
364 additions
and
224 deletions
+364
-224
BizAgentApplicationDialoguesRecordConvert.java
...on/convert/BizAgentApplicationDialoguesRecordConvert.java
+4
-0
BizAgentApplicationDialoguesRecordDto.java
...pplication/dto/BizAgentApplicationDialoguesRecordDto.java
+113
-75
BizAgentApplicationDialoguesRecordEntity.java
...tion/entity/BizAgentApplicationDialoguesRecordEntity.java
+103
-65
BizAgentApplicationDialoguesRecordModel.java
...cation/model/BizAgentApplicationDialoguesRecordModel.java
+14
-0
AgentApplicationDialoguesRecordQuery.sql
...pplication/query/AgentApplicationDialoguesRecordQuery.sql
+2
-1
AgentApplicationDialoguesRecordQueryItem.java
...ation/query/AgentApplicationDialoguesRecordQueryItem.java
+92
-67
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+1
-0
DialoguesContextDto.java
src/main/java/cn/com/poc/expose/dto/DialoguesContextDto.java
+34
-16
AgentApplicationRestImpl.java
...cn/com/poc/expose/rest/impl/AgentApplicationRestImpl.java
+1
-0
No files found.
src/main/java/cn/com/poc/agent_application/convert/BizAgentApplicationDialoguesRecordConvert.java
View file @
dbee3b19
...
@@ -14,6 +14,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
...
@@ -14,6 +14,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
entity
.
setAgentId
(
model
.
getAgentId
());
entity
.
setAgentId
(
model
.
getAgentId
());
entity
.
setMemberId
(
model
.
getMemberId
());
entity
.
setMemberId
(
model
.
getMemberId
());
entity
.
setContent
(
model
.
getContent
());
entity
.
setContent
(
model
.
getContent
());
entity
.
setImageUrl
(
model
.
getImageUrl
());
entity
.
setDialogsId
(
model
.
getDialogsId
());
entity
.
setDialogsId
(
model
.
getDialogsId
());
entity
.
setTimestamp
(
model
.
getTimestamp
());
entity
.
setTimestamp
(
model
.
getTimestamp
());
entity
.
setIsDeleted
(
model
.
getIsDeleted
());
entity
.
setIsDeleted
(
model
.
getIsDeleted
());
...
@@ -33,6 +34,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
...
@@ -33,6 +34,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
model
.
setMemberId
(
entity
.
getMemberId
());
model
.
setMemberId
(
entity
.
getMemberId
());
model
.
setDialogsId
(
entity
.
getDialogsId
());
model
.
setDialogsId
(
entity
.
getDialogsId
());
model
.
setContent
(
entity
.
getContent
());
model
.
setContent
(
entity
.
getContent
());
model
.
setImageUrl
(
entity
.
getImageUrl
());
model
.
setTimestamp
(
entity
.
getTimestamp
());
model
.
setTimestamp
(
entity
.
getTimestamp
());
model
.
setIsDeleted
(
entity
.
getIsDeleted
());
model
.
setIsDeleted
(
entity
.
getIsDeleted
());
model
.
setCreator
(
entity
.
getCreator
());
model
.
setCreator
(
entity
.
getCreator
());
...
@@ -51,6 +53,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
...
@@ -51,6 +53,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
dto
.
setAgentId
(
entity
.
getAgentId
());
dto
.
setAgentId
(
entity
.
getAgentId
());
dto
.
setMemberId
(
entity
.
getMemberId
());
dto
.
setMemberId
(
entity
.
getMemberId
());
dto
.
setContent
(
entity
.
getContent
());
dto
.
setContent
(
entity
.
getContent
());
dto
.
setImageUrl
(
entity
.
getImageUrl
());
dto
.
setTimestamp
(
entity
.
getTimestamp
());
dto
.
setTimestamp
(
entity
.
getTimestamp
());
dto
.
setIsDeleted
(
entity
.
getIsDeleted
());
dto
.
setIsDeleted
(
entity
.
getIsDeleted
());
dto
.
setCreator
(
entity
.
getCreator
());
dto
.
setCreator
(
entity
.
getCreator
());
...
@@ -69,6 +72,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
...
@@ -69,6 +72,7 @@ public class BizAgentApplicationDialoguesRecordConvert {
entity
.
setDialogsId
(
dto
.
getDialogsId
());
entity
.
setDialogsId
(
dto
.
getDialogsId
());
entity
.
setMemberId
(
dto
.
getMemberId
());
entity
.
setMemberId
(
dto
.
getMemberId
());
entity
.
setContent
(
dto
.
getContent
());
entity
.
setContent
(
dto
.
getContent
());
entity
.
setImageUrl
(
dto
.
getImageUrl
());
entity
.
setTimestamp
(
dto
.
getTimestamp
());
entity
.
setTimestamp
(
dto
.
getTimestamp
());
entity
.
setIsDeleted
(
dto
.
getIsDeleted
());
entity
.
setIsDeleted
(
dto
.
getIsDeleted
());
entity
.
setCreator
(
dto
.
getCreator
());
entity
.
setCreator
(
dto
.
getCreator
());
...
...
src/main/java/cn/com/poc/agent_application/dto/BizAgentApplicationDialoguesRecordDto.java
View file @
dbee3b19
package
cn
.
com
.
poc
.
agent_application
.
dto
;
package
cn
.
com
.
poc
.
agent_application
.
dto
;
public
class
BizAgentApplicationDialoguesRecordDto
{
public
class
BizAgentApplicationDialoguesRecordDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/** id
/**
*主键ID
* id
*/
* 主键ID
*/
private
java
.
lang
.
Long
id
;
private
java
.
lang
.
Long
id
;
public
java
.
lang
.
Long
getId
(){
public
java
.
lang
.
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
public
void
setId
(
java
.
lang
.
Long
id
){
public
void
setId
(
java
.
lang
.
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/** role
*角色 user-用户 assistant-助手
/**
*/
* role
* 角色 user-用户 assistant-助手
*/
private
java
.
lang
.
String
role
;
private
java
.
lang
.
String
role
;
public
java
.
lang
.
String
getRole
(){
public
java
.
lang
.
String
getRole
()
{
return
this
.
role
;
return
this
.
role
;
}
}
public
void
setRole
(
java
.
lang
.
String
role
){
public
void
setRole
(
java
.
lang
.
String
role
)
{
this
.
role
=
role
;
this
.
role
=
role
;
}
}
/** agent_id
*agent应用ID
/**
*/
* agent_id
* agent应用ID
*/
private
java
.
lang
.
String
agentId
;
private
java
.
lang
.
String
agentId
;
public
java
.
lang
.
String
getAgentId
(){
public
java
.
lang
.
String
getAgentId
()
{
return
this
.
agentId
;
return
this
.
agentId
;
}
}
public
void
setAgentId
(
java
.
lang
.
String
agentId
){
public
void
setAgentId
(
java
.
lang
.
String
agentId
)
{
this
.
agentId
=
agentId
;
this
.
agentId
=
agentId
;
}
}
/** member_id
*用户ID
/**
*/
* member_id
* 用户ID
*/
private
java
.
lang
.
Long
memberId
;
private
java
.
lang
.
Long
memberId
;
public
java
.
lang
.
Long
getMemberId
(){
public
java
.
lang
.
Long
getMemberId
()
{
return
this
.
memberId
;
return
this
.
memberId
;
}
}
public
void
setMemberId
(
java
.
lang
.
Long
memberId
){
public
void
setMemberId
(
java
.
lang
.
Long
memberId
)
{
this
.
memberId
=
memberId
;
this
.
memberId
=
memberId
;
}
}
/** dialogsId
/**
*对话ID
* dialogsId
* 对话ID
*/
*/
private
java
.
lang
.
String
dialogsId
;
private
java
.
lang
.
String
dialogsId
;
...
@@ -66,100 +74,130 @@ public class BizAgentApplicationDialoguesRecordDto {
...
@@ -66,100 +74,130 @@ public class BizAgentApplicationDialoguesRecordDto {
this
.
dialogsId
=
dialogsId
;
this
.
dialogsId
=
dialogsId
;
}
}
/** content
/**
*内容
* content
*/
* 内容
*/
private
java
.
lang
.
String
content
;
private
java
.
lang
.
String
content
;
public
java
.
lang
.
String
getContent
(){
public
java
.
lang
.
String
getContent
()
{
return
this
.
content
;
return
this
.
content
;
}
}
public
void
setContent
(
java
.
lang
.
String
content
){
public
void
setContent
(
java
.
lang
.
String
content
)
{
this
.
content
=
content
;
this
.
content
=
content
;
}
}
/** timestamp
*时间戳
*/
/**
* image_url
* 图片链接
*/
private
java
.
lang
.
String
imageUrl
;
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
/**
* timestamp
* 时间戳
*/
private
java
.
lang
.
Long
timestamp
;
private
java
.
lang
.
Long
timestamp
;
public
java
.
lang
.
Long
getTimestamp
(){
public
java
.
lang
.
Long
getTimestamp
()
{
return
this
.
timestamp
;
return
this
.
timestamp
;
}
}
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
){
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
)
{
this
.
timestamp
=
timestamp
;
this
.
timestamp
=
timestamp
;
}
}
/** is_deleted
*是否删除 1、Y 是 2、N 否
/**
*/
* is_deleted
* 是否删除 1、Y 是 2、N 否
*/
private
java
.
lang
.
String
isDeleted
;
private
java
.
lang
.
String
isDeleted
;
public
java
.
lang
.
String
getIsDeleted
(){
public
java
.
lang
.
String
getIsDeleted
()
{
return
this
.
isDeleted
;
return
this
.
isDeleted
;
}
}
public
void
setIsDeleted
(
java
.
lang
.
String
isDeleted
){
public
void
setIsDeleted
(
java
.
lang
.
String
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
this
.
isDeleted
=
isDeleted
;
}
}
/** CREATOR
*创建人
/**
*/
* CREATOR
* 创建人
*/
private
java
.
lang
.
String
creator
;
private
java
.
lang
.
String
creator
;
public
java
.
lang
.
String
getCreator
(){
public
java
.
lang
.
String
getCreator
()
{
return
this
.
creator
;
return
this
.
creator
;
}
}
public
void
setCreator
(
java
.
lang
.
String
creator
){
public
void
setCreator
(
java
.
lang
.
String
creator
)
{
this
.
creator
=
creator
;
this
.
creator
=
creator
;
}
}
/** CREATED_TIME
*创建时间
/**
*/
* CREATED_TIME
* 创建时间
*/
private
java
.
util
.
Date
createdTime
;
private
java
.
util
.
Date
createdTime
;
public
java
.
util
.
Date
getCreatedTime
(){
public
java
.
util
.
Date
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
public
void
setCreatedTime
(
java
.
util
.
Date
createdTime
){
public
void
setCreatedTime
(
java
.
util
.
Date
createdTime
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
}
}
/** MODIFIER
*修改人
/**
*/
* MODIFIER
* 修改人
*/
private
java
.
lang
.
String
modifier
;
private
java
.
lang
.
String
modifier
;
public
java
.
lang
.
String
getModifier
(){
public
java
.
lang
.
String
getModifier
()
{
return
this
.
modifier
;
return
this
.
modifier
;
}
}
public
void
setModifier
(
java
.
lang
.
String
modifier
){
public
void
setModifier
(
java
.
lang
.
String
modifier
)
{
this
.
modifier
=
modifier
;
this
.
modifier
=
modifier
;
}
}
/** MODIFIED_TIME
*修改时间
/**
*/
* MODIFIED_TIME
* 修改时间
*/
private
java
.
util
.
Date
modifiedTime
;
private
java
.
util
.
Date
modifiedTime
;
public
java
.
util
.
Date
getModifiedTime
(){
public
java
.
util
.
Date
getModifiedTime
()
{
return
this
.
modifiedTime
;
return
this
.
modifiedTime
;
}
}
public
void
setModifiedTime
(
java
.
util
.
Date
modifiedTime
){
public
void
setModifiedTime
(
java
.
util
.
Date
modifiedTime
)
{
this
.
modifiedTime
=
modifiedTime
;
this
.
modifiedTime
=
modifiedTime
;
}
}
/** SYS_VERSION
*乐观锁,版本号
/**
*/
* SYS_VERSION
* 乐观锁,版本号
*/
private
java
.
lang
.
Integer
sysVersion
;
private
java
.
lang
.
Integer
sysVersion
;
public
java
.
lang
.
Integer
getSysVersion
(){
public
java
.
lang
.
Integer
getSysVersion
()
{
return
this
.
sysVersion
;
return
this
.
sysVersion
;
}
}
public
void
setSysVersion
(
java
.
lang
.
Integer
sysVersion
){
public
void
setSysVersion
(
java
.
lang
.
Integer
sysVersion
)
{
this
.
sysVersion
=
sysVersion
;
this
.
sysVersion
=
sysVersion
;
}
}
}
}
\ No newline at end of file
src/main/java/cn/com/poc/agent_application/entity/BizAgentApplicationDialoguesRecordEntity.java
View file @
dbee3b19
package
cn
.
com
.
poc
.
agent_application
.
entity
;
package
cn
.
com
.
poc
.
agent_application
.
entity
;
public
class
BizAgentApplicationDialoguesRecordEntity
{
public
class
BizAgentApplicationDialoguesRecordEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/** id
/**
*主键ID
* id
*/
* 主键ID
*/
private
java
.
lang
.
Long
id
;
private
java
.
lang
.
Long
id
;
public
java
.
lang
.
Long
getId
(){
public
java
.
lang
.
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
public
void
setId
(
java
.
lang
.
Long
id
){
public
void
setId
(
java
.
lang
.
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/** role
*角色 user-用户 assistant-助手
/**
*/
* role
* 角色 user-用户 assistant-助手
*/
private
java
.
lang
.
String
role
;
private
java
.
lang
.
String
role
;
public
java
.
lang
.
String
getRole
(){
public
java
.
lang
.
String
getRole
()
{
return
this
.
role
;
return
this
.
role
;
}
}
public
void
setRole
(
java
.
lang
.
String
role
){
public
void
setRole
(
java
.
lang
.
String
role
)
{
this
.
role
=
role
;
this
.
role
=
role
;
}
}
/** agent_id
*agent应用ID
/**
*/
* agent_id
* agent应用ID
*/
private
java
.
lang
.
String
agentId
;
private
java
.
lang
.
String
agentId
;
public
java
.
lang
.
String
getAgentId
(){
public
java
.
lang
.
String
getAgentId
()
{
return
this
.
agentId
;
return
this
.
agentId
;
}
}
public
void
setAgentId
(
java
.
lang
.
String
agentId
){
public
void
setAgentId
(
java
.
lang
.
String
agentId
)
{
this
.
agentId
=
agentId
;
this
.
agentId
=
agentId
;
}
}
/** member_id
*用户ID
/**
*/
* member_id
* 用户ID
*/
private
java
.
lang
.
Long
memberId
;
private
java
.
lang
.
Long
memberId
;
public
java
.
lang
.
Long
getMemberId
(){
public
java
.
lang
.
Long
getMemberId
()
{
return
this
.
memberId
;
return
this
.
memberId
;
}
}
public
void
setMemberId
(
java
.
lang
.
Long
memberId
){
public
void
setMemberId
(
java
.
lang
.
Long
memberId
)
{
this
.
memberId
=
memberId
;
this
.
memberId
=
memberId
;
}
}
/** content
*内容
/**
*/
* content
* 内容
*/
private
java
.
lang
.
String
content
;
private
java
.
lang
.
String
content
;
public
java
.
lang
.
String
getContent
(){
public
java
.
lang
.
String
getContent
()
{
return
this
.
content
;
return
this
.
content
;
}
}
public
void
setContent
(
java
.
lang
.
String
content
){
public
void
setContent
(
java
.
lang
.
String
content
)
{
this
.
content
=
content
;
this
.
content
=
content
;
}
}
/** dialogsId
*对话ID
/**
* image_url
* 图片链接
*/
private
java
.
lang
.
String
imageUrl
;
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
/**
* dialogsId
* 对话ID
*/
*/
private
java
.
lang
.
String
dialogsId
;
private
java
.
lang
.
String
dialogsId
;
public
java
.
lang
.
String
getDialogsId
(){
public
java
.
lang
.
String
getDialogsId
()
{
return
this
.
dialogsId
;
return
this
.
dialogsId
;
}
}
public
void
setDialogsId
(
java
.
lang
.
String
dialogsId
){
public
void
setDialogsId
(
java
.
lang
.
String
dialogsId
)
{
this
.
dialogsId
=
dialogsId
;
this
.
dialogsId
=
dialogsId
;
}
}
/** timestamp
/**
*时间戳
* timestamp
*/
* 时间戳
*/
private
java
.
lang
.
Long
timestamp
;
private
java
.
lang
.
Long
timestamp
;
public
java
.
lang
.
Long
getTimestamp
(){
public
java
.
lang
.
Long
getTimestamp
()
{
return
this
.
timestamp
;
return
this
.
timestamp
;
}
}
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
){
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
)
{
this
.
timestamp
=
timestamp
;
this
.
timestamp
=
timestamp
;
}
}
/** is_deleted
*是否删除 1、Y 是 2、N 否
/**
*/
* is_deleted
* 是否删除 1、Y 是 2、N 否
*/
private
java
.
lang
.
String
isDeleted
;
private
java
.
lang
.
String
isDeleted
;
public
java
.
lang
.
String
getIsDeleted
(){
public
java
.
lang
.
String
getIsDeleted
()
{
return
this
.
isDeleted
;
return
this
.
isDeleted
;
}
}
public
void
setIsDeleted
(
java
.
lang
.
String
isDeleted
){
public
void
setIsDeleted
(
java
.
lang
.
String
isDeleted
)
{
this
.
isDeleted
=
isDeleted
;
this
.
isDeleted
=
isDeleted
;
}
}
/** CREATOR
*创建人
/**
*/
* CREATOR
* 创建人
*/
private
java
.
lang
.
String
creator
;
private
java
.
lang
.
String
creator
;
public
java
.
lang
.
String
getCreator
(){
public
java
.
lang
.
String
getCreator
()
{
return
this
.
creator
;
return
this
.
creator
;
}
}
public
void
setCreator
(
java
.
lang
.
String
creator
){
public
void
setCreator
(
java
.
lang
.
String
creator
)
{
this
.
creator
=
creator
;
this
.
creator
=
creator
;
}
}
/** CREATED_TIME
*创建时间
/**
*/
* CREATED_TIME
* 创建时间
*/
private
java
.
util
.
Date
createdTime
;
private
java
.
util
.
Date
createdTime
;
public
java
.
util
.
Date
getCreatedTime
(){
public
java
.
util
.
Date
getCreatedTime
()
{
return
this
.
createdTime
;
return
this
.
createdTime
;
}
}
public
void
setCreatedTime
(
java
.
util
.
Date
createdTime
){
public
void
setCreatedTime
(
java
.
util
.
Date
createdTime
)
{
this
.
createdTime
=
createdTime
;
this
.
createdTime
=
createdTime
;
}
}
/** MODIFIER
*修改人
/**
*/
* MODIFIER
* 修改人
*/
private
java
.
lang
.
String
modifier
;
private
java
.
lang
.
String
modifier
;
public
java
.
lang
.
String
getModifier
(){
public
java
.
lang
.
String
getModifier
()
{
return
this
.
modifier
;
return
this
.
modifier
;
}
}
public
void
setModifier
(
java
.
lang
.
String
modifier
){
public
void
setModifier
(
java
.
lang
.
String
modifier
)
{
this
.
modifier
=
modifier
;
this
.
modifier
=
modifier
;
}
}
/** MODIFIED_TIME
*修改时间
/**
*/
* MODIFIED_TIME
* 修改时间
*/
private
java
.
util
.
Date
modifiedTime
;
private
java
.
util
.
Date
modifiedTime
;
public
java
.
util
.
Date
getModifiedTime
(){
public
java
.
util
.
Date
getModifiedTime
()
{
return
this
.
modifiedTime
;
return
this
.
modifiedTime
;
}
}
public
void
setModifiedTime
(
java
.
util
.
Date
modifiedTime
){
public
void
setModifiedTime
(
java
.
util
.
Date
modifiedTime
)
{
this
.
modifiedTime
=
modifiedTime
;
this
.
modifiedTime
=
modifiedTime
;
}
}
/** SYS_VERSION
*乐观锁,版本号
/**
*/
* SYS_VERSION
* 乐观锁,版本号
*/
private
java
.
lang
.
Integer
sysVersion
;
private
java
.
lang
.
Integer
sysVersion
;
public
java
.
lang
.
Integer
getSysVersion
(){
public
java
.
lang
.
Integer
getSysVersion
()
{
return
this
.
sysVersion
;
return
this
.
sysVersion
;
}
}
public
void
setSysVersion
(
java
.
lang
.
Integer
sysVersion
){
public
void
setSysVersion
(
java
.
lang
.
Integer
sysVersion
)
{
this
.
sysVersion
=
sysVersion
;
this
.
sysVersion
=
sysVersion
;
}
}
}
}
\ No newline at end of file
src/main/java/cn/com/poc/agent_application/model/BizAgentApplicationDialoguesRecordModel.java
View file @
dbee3b19
...
@@ -130,6 +130,20 @@ public class BizAgentApplicationDialoguesRecordModel extends BaseModelClass impl
...
@@ -130,6 +130,20 @@ public class BizAgentApplicationDialoguesRecordModel extends BaseModelClass impl
super
.
addValidField
(
"content"
);
super
.
addValidField
(
"content"
);
}
}
/**
* image_url
* 图片链接
*/
private
java
.
lang
.
String
imageUrl
;
@Column
(
name
=
"image_url"
,
length
=
120
)
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
/**
/**
* timestamp
* timestamp
...
...
src/main/java/cn/com/poc/agent_application/query/AgentApplicationDialoguesRecordQuery.sql
View file @
dbee3b19
...
@@ -4,10 +4,11 @@ select
...
@@ -4,10 +4,11 @@ select
baadr
.
dialogs_id
,
baadr
.
dialogs_id
,
baadr
.
member_id
,
baadr
.
member_id
,
baadr
.
content
,
baadr
.
content
,
baadr
.
image_url
,
baadr
.
`timestamp`
,
baadr
.
`timestamp`
,
baap
.
agent_avatar
,
baap
.
agent_avatar
,
baap
.
agent_title
baap
.
agent_title
from
from
biz_agent_application_dialogues_record
baadr
biz_agent_application_dialogues_record
baadr
left
join
biz_agent_application_publish
baap
on
baadr
.
agent_id
=
baap
.
agent_id
and
baap
.
is_deleted
=
'N'
left
join
biz_agent_application_publish
baap
on
baadr
.
agent_id
=
baap
.
agent_id
and
baap
.
is_deleted
=
'N'
where
baadr
.
is_deleted
=
'N'
where
baadr
.
is_deleted
=
'N'
...
...
src/main/java/cn/com/poc/agent_application/query/AgentApplicationDialoguesRecordQueryItem.java
View file @
dbee3b19
package
cn
.
com
.
poc
.
agent_application
.
query
;
package
cn
.
com
.
poc
.
agent_application
.
query
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
cn.com.yict.framemax.data.model.BaseItemClass
;
import
cn.com.yict.framemax.data.model.BaseItemClass
;
/**
/**
* Query Item class for AgentApplicationDialoguesRecordQuery
* Query Item class for AgentApplicationDialoguesRecordQuery
*/
*/
@Entity
@Entity
public
class
AgentApplicationDialoguesRecordQueryItem
extends
BaseItemClass
implements
Serializable
{
public
class
AgentApplicationDialoguesRecordQueryItem
extends
BaseItemClass
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/** role
/**
*role
* role
*/
* role
*/
private
java
.
lang
.
String
role
;
private
java
.
lang
.
String
role
;
@Column
(
name
=
"role"
)
@Column
(
name
=
"role"
)
public
java
.
lang
.
String
getRole
(){
public
java
.
lang
.
String
getRole
()
{
return
this
.
role
;
return
this
.
role
;
}
}
public
void
setRole
(
java
.
lang
.
String
role
){
public
void
setRole
(
java
.
lang
.
String
role
)
{
this
.
role
=
role
;
this
.
role
=
role
;
}
}
/** agent_id
/**
*agent_id
* agent_id
*/
* agent_id
*/
private
java
.
lang
.
String
agentId
;
private
java
.
lang
.
String
agentId
;
@Column
(
name
=
"agent_id"
)
@Column
(
name
=
"agent_id"
)
public
java
.
lang
.
String
getAgentId
(){
public
java
.
lang
.
String
getAgentId
()
{
return
this
.
agentId
;
return
this
.
agentId
;
}
}
public
void
setAgentId
(
java
.
lang
.
String
agentId
){
public
void
setAgentId
(
java
.
lang
.
String
agentId
)
{
this
.
agentId
=
agentId
;
this
.
agentId
=
agentId
;
}
}
/** dialogs_id
/**
*dialogs_id
* dialogs_id
*/
* dialogs_id
*/
private
java
.
lang
.
String
dialogsId
;
private
java
.
lang
.
String
dialogsId
;
@Column
(
name
=
"dialogs_id"
)
@Column
(
name
=
"dialogs_id"
)
public
java
.
lang
.
String
getDialogsId
(){
public
java
.
lang
.
String
getDialogsId
()
{
return
this
.
dialogsId
;
return
this
.
dialogsId
;
}
}
public
void
setDialogsId
(
java
.
lang
.
String
dialogsId
){
public
void
setDialogsId
(
java
.
lang
.
String
dialogsId
)
{
this
.
dialogsId
=
dialogsId
;
this
.
dialogsId
=
dialogsId
;
}
}
/** member_id
/**
*member_id
* member_id
*/
* member_id
*/
private
java
.
lang
.
Long
memberId
;
private
java
.
lang
.
Long
memberId
;
@Column
(
name
=
"member_id"
)
@Column
(
name
=
"member_id"
)
public
java
.
lang
.
Long
getMemberId
(){
public
java
.
lang
.
Long
getMemberId
()
{
return
this
.
memberId
;
return
this
.
memberId
;
}
}
public
void
setMemberId
(
java
.
lang
.
Long
memberId
){
public
void
setMemberId
(
java
.
lang
.
Long
memberId
)
{
this
.
memberId
=
memberId
;
this
.
memberId
=
memberId
;
}
}
/** content
/**
*content
* content
*/
* content
*/
private
java
.
lang
.
String
content
;
private
java
.
lang
.
String
content
;
@Column
(
name
=
"content"
)
@Column
(
name
=
"content"
)
public
java
.
lang
.
String
getContent
(){
public
java
.
lang
.
String
getContent
()
{
return
this
.
content
;
return
this
.
content
;
}
}
public
void
setContent
(
java
.
lang
.
String
content
){
public
void
setContent
(
java
.
lang
.
String
content
)
{
this
.
content
=
content
;
this
.
content
=
content
;
}
}
/** timestamp
*timestamp
/**
*/
* image_url
* 图片链接
*/
private
java
.
lang
.
String
imageUrl
;
@Column
(
name
=
"image_url"
)
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
/**
* timestamp
* timestamp
*/
private
java
.
lang
.
Long
timestamp
;
private
java
.
lang
.
Long
timestamp
;
@Column
(
name
=
"timestamp"
)
@Column
(
name
=
"timestamp"
)
public
java
.
lang
.
Long
getTimestamp
(){
public
java
.
lang
.
Long
getTimestamp
()
{
return
this
.
timestamp
;
return
this
.
timestamp
;
}
}
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
){
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
)
{
this
.
timestamp
=
timestamp
;
this
.
timestamp
=
timestamp
;
}
}
/** agent_avatar
/**
*agent_avatar
* agent_avatar
*/
* agent_avatar
*/
private
java
.
lang
.
String
agentAvatar
;
private
java
.
lang
.
String
agentAvatar
;
@Column
(
name
=
"agent_avatar"
)
@Column
(
name
=
"agent_avatar"
)
public
java
.
lang
.
String
getAgentAvatar
(){
public
java
.
lang
.
String
getAgentAvatar
()
{
return
this
.
agentAvatar
;
return
this
.
agentAvatar
;
}
}
public
void
setAgentAvatar
(
java
.
lang
.
String
agentAvatar
){
public
void
setAgentAvatar
(
java
.
lang
.
String
agentAvatar
)
{
this
.
agentAvatar
=
agentAvatar
;
this
.
agentAvatar
=
agentAvatar
;
}
}
/** agent_title
/**
*agent_title
* agent_title
*/
* agent_title
*/
private
java
.
lang
.
String
agentTitle
;
private
java
.
lang
.
String
agentTitle
;
@Column
(
name
=
"agent_title"
)
@Column
(
name
=
"agent_title"
)
public
java
.
lang
.
String
getAgentTitle
(){
public
java
.
lang
.
String
getAgentTitle
()
{
return
this
.
agentTitle
;
return
this
.
agentTitle
;
}
}
public
void
setAgentTitle
(
java
.
lang
.
String
agentTitle
){
public
void
setAgentTitle
(
java
.
lang
.
String
agentTitle
)
{
this
.
agentTitle
=
agentTitle
;
this
.
agentTitle
=
agentTitle
;
}
}
}
}
\ No newline at end of file
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
dbee3b19
...
@@ -144,6 +144,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
...
@@ -144,6 +144,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
inputRecord
.
setAgentId
(
agentId
);
inputRecord
.
setAgentId
(
agentId
);
inputRecord
.
setMemberId
(
userBaseEntity
.
getUserId
());
inputRecord
.
setMemberId
(
userBaseEntity
.
getUserId
());
inputRecord
.
setContent
(
input
);
inputRecord
.
setContent
(
input
);
inputRecord
.
setImageUrl
(
imageUrl
);
inputRecord
.
setDialogsId
(
dialogsId
);
inputRecord
.
setDialogsId
(
dialogsId
);
inputRecord
.
setRole
(
AgentApplicationDialoguesRecordConstants
.
ROLE
.
USER
);
inputRecord
.
setRole
(
AgentApplicationDialoguesRecordConstants
.
ROLE
.
USER
);
inputRecord
.
setTimestamp
(
inputTimestamp
);
inputRecord
.
setTimestamp
(
inputTimestamp
);
...
...
src/main/java/cn/com/poc/expose/dto/DialoguesContextDto.java
View file @
dbee3b19
...
@@ -5,55 +5,60 @@ import java.io.Serializable;
...
@@ -5,55 +5,60 @@ import java.io.Serializable;
public
class
DialoguesContextDto
implements
Serializable
{
public
class
DialoguesContextDto
implements
Serializable
{
/** role
/**
*角色 user-用户 assistant-助手
* role
* 角色 user-用户 assistant-助手
*/
*/
private
java
.
lang
.
String
role
;
private
java
.
lang
.
String
role
;
public
java
.
lang
.
String
getRole
(){
public
java
.
lang
.
String
getRole
()
{
return
this
.
role
;
return
this
.
role
;
}
}
public
void
setRole
(
java
.
lang
.
String
role
){
public
void
setRole
(
java
.
lang
.
String
role
)
{
this
.
role
=
role
;
this
.
role
=
role
;
}
}
/** agent_id
*agent应用ID
/**
* agent_id
* agent应用ID
*/
*/
private
java
.
lang
.
String
agentId
;
private
java
.
lang
.
String
agentId
;
public
java
.
lang
.
String
getAgentId
(){
public
java
.
lang
.
String
getAgentId
()
{
return
this
.
agentId
;
return
this
.
agentId
;
}
}
public
void
setAgentId
(
java
.
lang
.
String
agentId
){
public
void
setAgentId
(
java
.
lang
.
String
agentId
)
{
this
.
agentId
=
agentId
;
this
.
agentId
=
agentId
;
}
}
/** content
/**
*内容
* content
* 内容
*/
*/
private
java
.
lang
.
String
content
;
private
java
.
lang
.
String
content
;
public
java
.
lang
.
String
getContent
(){
public
java
.
lang
.
String
getContent
()
{
return
this
.
content
;
return
this
.
content
;
}
}
public
void
setContent
(
java
.
lang
.
String
content
){
public
void
setContent
(
java
.
lang
.
String
content
)
{
this
.
content
=
content
;
this
.
content
=
content
;
}
}
/** timestamp
/**
*时间戳
* timestamp
* 时间戳
*/
*/
private
java
.
lang
.
Long
timestamp
;
private
java
.
lang
.
Long
timestamp
;
public
java
.
lang
.
Long
getTimestamp
(){
public
java
.
lang
.
Long
getTimestamp
()
{
return
this
.
timestamp
;
return
this
.
timestamp
;
}
}
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
){
public
void
setTimestamp
(
java
.
lang
.
Long
timestamp
)
{
this
.
timestamp
=
timestamp
;
this
.
timestamp
=
timestamp
;
}
}
...
@@ -82,4 +87,17 @@ public class DialoguesContextDto implements Serializable {
...
@@ -82,4 +87,17 @@ public class DialoguesContextDto implements Serializable {
public
void
setAgentAvatar
(
String
agentAvatar
)
{
public
void
setAgentAvatar
(
String
agentAvatar
)
{
this
.
agentAvatar
=
agentAvatar
;
this
.
agentAvatar
=
agentAvatar
;
}
}
/**
* 对话图片
*/
private
String
imageUrl
;
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
}
}
src/main/java/cn/com/poc/expose/rest/impl/AgentApplicationRestImpl.java
View file @
dbee3b19
...
@@ -234,6 +234,7 @@ public class AgentApplicationRestImpl implements AgentApplicationRest {
...
@@ -234,6 +234,7 @@ public class AgentApplicationRestImpl implements AgentApplicationRest {
dto
.
setRole
(
value
.
getRole
());
dto
.
setRole
(
value
.
getRole
());
dto
.
setAgentId
(
value
.
getAgentId
());
dto
.
setAgentId
(
value
.
getAgentId
());
dto
.
setContent
(
value
.
getContent
());
dto
.
setContent
(
value
.
getContent
());
dto
.
setImageUrl
(
value
.
getImageUrl
());
dto
.
setTimestamp
(
value
.
getTimestamp
());
dto
.
setTimestamp
(
value
.
getTimestamp
());
dto
.
setAgentTitle
(
value
.
getAgentTitle
());
dto
.
setAgentTitle
(
value
.
getAgentTitle
());
dto
.
setAgentAvatar
(
value
.
getAgentAvatar
());
dto
.
setAgentAvatar
(
value
.
getAgentAvatar
());
...
...
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