Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0a0983e
[app-platform] 新增AppBuilderGuestController
Aug 27, 2025
7154e0e
[frontend] 新增游客模式开关
Aug 28, 2025
71a0e71
[frontend] 公共访问页面增加兼容两套接口逻辑
Aug 29, 2025
acc2764
[frontend] 游客模式接口传递随机用户名
Aug 29, 2025
5c2e0ae
[frontend] 游客模式显示随机用户名
Aug 29, 2025
8984687
[frontend] 新增游客模式提示
Aug 30, 2025
7f3ea03
[frontend] 增加对用户清理浏览器缓存的处理
Aug 30, 2025
723bec9
[frontend] 针对sse接口修改游客模式传参方式
Aug 30, 2025
0b66ac0
[app-builder] feat: guest visit mode
desAweis Aug 29, 2025
33e7d26
[frontend] 修改游客模式接口传用户名逻辑
Sep 1, 2025
957a878
[frontend] 游客模式不显示用户名
Sep 1, 2025
6ca2dac
[frontend] 更新应用游客模式配置
Sep 1, 2025
3ed2f8c
[aipp-plugin] add update guest mode interface
desAweis Sep 1, 2025
1c4a52a
[aipp-plugin] add genericableId and fitableId
desAweis Sep 1, 2025
e3bb841
[aipp-plugin] fix pgsql bug
desAweis Sep 1, 2025
8493a43
[frontend] 修改游客模式随机用户名生成方法
Sep 1, 2025
0fc3f54
[frontend] 联调问题修改
Sep 1, 2025
c3396ed
[frontend] 样式修改
Sep 1, 2025
d727342
[frontend] 公共访问页面获取用户信息逻辑修改
Sep 2, 2025
f12b7be
[frontend] 修复latest_published接口游客模式调用问题
Sep 2, 2025
d6de267
[frontend] 游客模式访问地址与原地址区分
Sep 3, 2025
d913008
[frontend] 新增游客模式地址访问错误组件
Sep 3, 2025
8aae0fb
[frontend] 修改公共访问url地址前缀
Sep 3, 2025
076cdfb
[frontend] 修改公共访问url地址
Sep 4, 2025
b82e171
[frontend] 独立环境不需要校验访问地址
Sep 4, 2025
71ff840
[app-builder] fix recommend guest api url bug
desAweis Sep 4, 2025
e62eeec
[frontend] 修改校验公共访问地址逻辑
Sep 4, 2025
261fa8b
[app-platform] 修改游客模式继续会话接口参数
Sep 5, 2025
404640e
[app-builder] optimize code style
desAweis Sep 9, 2025
627bbcc
[app-builder] optimize code
desAweis Sep 9, 2025
9010bdd
[app-builder] change feedback api from usr to user
desAweis Sep 9, 2025
84e5e81
[frontend] 修改收藏接口url
Sep 10, 2025
81451d1
[app-platform] 对于游客模式,调用猜你想问接口,增加原应用所属人信息
Sep 10, 2025
d74e3e5
[app-platform] 检视意见修改
Sep 11, 2025
ad6255c
[app-platform] 检视意见修改
Sep 11, 2025
fe76216
[app-builder] correct comments style
desAweis Sep 12, 2025
59820c9
[app-builder] correct comments style 2
desAweis Sep 12, 2025
6321daa
[frontend] 修改反馈接口相关usr为user
Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import modelengine.fit.jane.common.response.Rsp;
import modelengine.fit.jane.task.gateway.Authenticator;
import modelengine.fitframework.annotation.Component;
import modelengine.jade.app.engine.base.dto.UsrFeedbackDto;
import modelengine.jade.app.engine.base.service.UsrFeedbackService;
import modelengine.jade.app.engine.base.dto.UserFeedbackDto;
import modelengine.jade.app.engine.base.service.UserFeedbackService;

/**
* 用户反馈北向接口。
Expand All @@ -28,54 +28,54 @@
@Component
@RequestMapping(path = "/api/app/v1/aipp/user")
public class UserFeedbackController extends AbstractController {
private final UsrFeedbackService usrFeedbackService;
private final UserFeedbackService userFeedbackService;

/**
* 用身份校验器 {@link Authenticator} 和 Aipp 用户反馈功能接口 {@link UsrFeedbackService} 构造 {@link UserFeedbackController}。
* 用身份校验器 {@link Authenticator} 和 Aipp 用户反馈功能接口 {@link UserFeedbackService} 构造 {@link UserFeedbackController}。
*
* @param authenticator 表示身份校验器的 {@link Authenticator}。
* @param usrFeedbackService 表示 Aipp 用户反馈功能接口的 {@link UsrFeedbackService}。
* @param userFeedbackService 表示 Aipp 用户反馈功能接口的 {@link UserFeedbackService}。
*/
public UserFeedbackController(Authenticator authenticator, UsrFeedbackService usrFeedbackService) {
public UserFeedbackController(Authenticator authenticator, UserFeedbackService userFeedbackService) {
super(authenticator);
this.usrFeedbackService = usrFeedbackService;
this.userFeedbackService = userFeedbackService;
}

/**
* 创建用户反馈记录。
*
* @param usrFeedbackDto 表示用户反馈消息体的 {@link UsrFeedbackDto}。
* @param userFeedbackDto 表示用户反馈消息体的 {@link UserFeedbackDto}。
*/
@PostMapping(path = "/feedback", summary = "创建用户反馈记录",
description = "该接口用于创建用户对一个对话实例的反馈记录。")
public Rsp<Void> createUsrFeedback(@RequestBody UsrFeedbackDto usrFeedbackDto) {
this.usrFeedbackService.create(usrFeedbackDto);
public Rsp<Void> createUsrFeedback(@RequestBody UserFeedbackDto userFeedbackDto) {
this.userFeedbackService.create(userFeedbackDto);
return Rsp.ok();
}

/**
* 更新用户反馈信息。
*
* @param usrFeedbackDto 表示用户反馈消息体的 {@link UsrFeedbackDto}。
* @param userFeedbackDto 表示用户反馈消息体的 {@link UserFeedbackDto}。
* @param instanceId 表示对话实例 Id 的 {@link String}。
*/
@PatchMapping(path = "/feedback/{instanceId}", summary = "更新用户反馈记录",
description = "该接口用于更新用户对一个对话实例反馈记录。")
public Rsp<Void> updateUsrFeedback(@PathVariable("instanceId") String instanceId,
@RequestBody UsrFeedbackDto usrFeedbackDto) {
this.usrFeedbackService.updateOne(instanceId, usrFeedbackDto);
@RequestBody UserFeedbackDto userFeedbackDto) {
this.userFeedbackService.updateOne(instanceId, userFeedbackDto);
return Rsp.ok();
}

/**
* 通过 logId 查询用户反馈记录
*
* @param instanceId 表示对话实例 Id 的 {@link String}。
* @return 表示反馈记录的 {@link UsrFeedbackDto}。
* @return 表示反馈记录的 {@link UserFeedbackDto}。
*/
@GetMapping(path = "/feedback/{instanceId}", summary = "查询用户反馈记录",
description = "该接口可以通过待查询实例的唯一标识符来查询实例的反馈记录。")
public Rsp<UsrFeedbackDto> getAllAnswerByInstanceId(@PathVariable("instanceId") String instanceId) {
return Rsp.ok(this.usrFeedbackService.getUsrFeedbackByInstanceId(instanceId));
public Rsp<UserFeedbackDto> getAllAnswerByInstanceId(@PathVariable("instanceId") String instanceId) {
return Rsp.ok(this.userFeedbackService.getUserFeedbackByInstanceId(instanceId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,21 @@ public Rsp<AppBuilderAppDto> recoverApp(HttpClassicServerRequest httpRequest,
return Rsp.ok(this.appService.recoverApp(appId, recoverAppId, contextOf(httpRequest, tenantId)));
}

/**
* 更新访客模式状态。
*
* @param path 表示应用的短标识的 {@link String}。
* @param isGuest 表示访客状态的 {@link Boolean}。
* @return 表示是否打开游客模式的 {@link Rsp}{@code <}{@link Void}{@code >}。
*/
@CarverSpan(value = "operation.appBuilderApp.updateGuestMode")
@PutMapping(value = "/guest/{path}", description = "更新访客模式状态")
public Rsp<Void> updateGuestMode(@PathVariable("path") String path,
@RequestParam(value = "allow_guest", defaultValue = "false") Boolean isGuest) {
this.appService.updateGuestMode(path, isGuest);
return Rsp.ok();
}

private AppQueryCondition buildAppQueryCondition(AppQueryCondition cond, String type) {
cond.setType(type);
if (cond.getExcludeNames() == null) {
Expand Down
Loading