feat(interaction): 支持游客互动与登录合并

This commit is contained in:
Zhou Weidong committed 2026-10-26 22:34:14 +08:00
1 parent 2fe24b9db7
commit 4b0fbd73d3
41 files changed
+1207 -90

No files matched your search

@@ -37,7 +37,9 @@ public enum ErrorCode {
*/
CREATOR_NOT_BOUND(200004, "当前账号未绑定创作者主体"),
CREATOR_TARGET_REQUIRED(200005, "请先选择要代看的创作者"),
CREATOR_IMPERSONATE_READONLY(200006, "代看模式下只读,不能修改创作者数据");
CREATOR_IMPERSONATE_READONLY(200006, "代看模式下只读,不能修改创作者数据"),
INTERACTION_IDENTITY_REQUIRED(200007, "缺少登录身份或设备标识,请重新登录");
private final int code;
private final String message;
@@ -0,0 +1,11 @@
// Author: fruit.com.cn
package com.fruitshorts.common.interaction;
/** 非付费互动的归属身份:登录用户优先,否则使用稳定设备号。 */
public record InteractionIdentity(Long userId, String deviceId) {
public boolean authenticated() {
return userId != null;
}
}