auto commit: 2025-02-08 11:05:03

This commit is contained in:
jack ning
2025-02-08 11:05:04 +08:00
parent 5a09f0e188
commit 6c195535a1
22 changed files with 58 additions and 58 deletions

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-11-05 13:43:02
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-02-08 09:24:30
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:36:42
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -49,7 +49,7 @@ public class AssistantInitializer implements SmartInitializingSingleton {
AssistantRequest fileAssistantRequest = AssistantRequest.builder()
.topic(TopicUtils.TOPIC_FILE_ASSISTANT)
.nickname(I18Consts.I18N_FILE_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_FILE_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultFileAssistantAvatarUrl())
.description(I18Consts.I18N_FILE_ASSISTANT_DESCRIPTION)
.build();
fileAssistantRequest.setUid(BytedeskConsts.DEFAULT_FILE_ASSISTANT_UID);
@@ -60,7 +60,7 @@ public class AssistantInitializer implements SmartInitializingSingleton {
AssistantRequest clipboardAssistantRequest = AssistantRequest.builder()
.topic(TopicUtils.TOPIC_CLIPBOARD_ASSISTANT)
.nickname(I18Consts.I18N_CLIPBOARD_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_CLIPBOARD_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultClipboardAssistantAvatarUrl())
.description(I18Consts.I18N_CLIPBOARD_ASSISTANT_DESCRIPTION)
.build();
clipboardAssistantRequest.setUid(BytedeskConsts.DEFAULT_CLIPBOARD_ASSISTANT_UID);
@@ -72,7 +72,7 @@ public class AssistantInitializer implements SmartInitializingSingleton {
AssistantRequest intentRewriteAssistantRequest = AssistantRequest.builder()
.topic(TopicUtils.TOPIC_INTENT_REWRITE_ASSISTANT)
.nickname(I18Consts.I18N_INTENT_REWRITE_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_INTENT_REWRITE_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultIntentRewriteAssistantAvatarUrl())
.description(I18Consts.I18N_INTENT_REWRITE_ASSISTANT_DESCRIPTION)
.build();
intentRewriteAssistantRequest.setUid(BytedeskConsts.DEFAULT_INTENT_REWRITE_ASSISTANT_UID);
@@ -83,7 +83,7 @@ public class AssistantInitializer implements SmartInitializingSingleton {
AssistantRequest intentClassificationAssistantRequest = AssistantRequest.builder()
.topic(TopicUtils.TOPIC_INTENT_CLASSIFICATION_ASSISTANT)
.nickname(I18Consts.I18N_INTENT_CLASSIFICATION_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_INTENT_CLASSIFICATION_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultIntentClassificationAssistantAvatarUrl())
.description(I18Consts.I18N_INTENT_CLASSIFICATION_ASSISTANT_DESCRIPTION)
.build();
intentClassificationAssistantRequest.setUid(BytedeskConsts.DEFAULT_INTENT_CLASSIFICATION_ASSISTANT_UID);
@@ -94,7 +94,7 @@ public class AssistantInitializer implements SmartInitializingSingleton {
AssistantRequest emotionAssistantRequest = AssistantRequest.builder()
.topic(TopicUtils.TOPIC_EMOTION_ASSISTANT)
.nickname(I18Consts.I18N_EMOTION_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_EMOTION_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultEmotionAssistantAvatarUrl())
.description(I18Consts.I18N_EMOTION_ASSISTANT_DESCRIPTION)
.build();
emotionAssistantRequest.setUid(BytedeskConsts.DEFAULT_EMOTION_ASSISTANT_UID);

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-04-26 20:34:52
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-10-21 17:12:53
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:36:56
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -52,7 +52,7 @@ public class ChannelEntity extends BaseEntityNoOrg {
private String nickname;
@Builder.Default
private String avatar = AvatarConsts.DEFAULT_AVATAR_URL;
private String avatar = AvatarConsts.getDefaultAvatarUrl();
@Builder.Default
private String description = I18Consts.I18N_USER_DESCRIPTION;

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-11-05 13:43:02
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-11-06 10:21:17
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:00
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -50,7 +50,7 @@ public class ChannelInitializer implements SmartInitializingSingleton {
ChannelRequest channelRequest = ChannelRequest.builder()
.topic(TopicUtils.TOPIC_SYSTEM_NOTIFICATION)
.nickname(I18Consts.I18N_SYSTEM_NOTIFICATION_NAME)
.avatar(AvatarConsts.DEFAULT_SYSTEM_NOTIFICATION_AVATAR_URL)
.avatar(AvatarConsts.getDefaultSystemNotificationAvatarUrl())
.description(I18Consts.I18N_SYSTEM_NOTIFICATION_DESCRIPTION)
.build();
channelRequest.setUid(BytedeskConsts.DEFAULT_CHANNEL_UID);

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2025-02-07 21:24:22
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-02-08 08:28:41
* @LastEditTime: 2025-02-08 11:04:20
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:20:17
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-01-09 23:10:58
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:08
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -51,7 +51,7 @@ public class OrganizationEntity extends BaseEntityNoOrg {
// logo
@Builder.Default
private String logo = AvatarConsts.DEFAULT_AVATAR_URL;
private String logo = AvatarConsts.getDefaultAvatarUrl();
// organization code, 可读性强,供用户搜索
@Column(unique = true)

View File

@@ -86,7 +86,7 @@ public class UserEntity extends BaseEntityNoOrg {
private String mobile;
@Builder.Default
private String avatar = AvatarConsts.DEFAULT_AVATAR_URL;
private String avatar = AvatarConsts.getDefaultAvatarUrl();
@Builder.Default
private String description = I18Consts.I18N_USER_DESCRIPTION;

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-11-05 13:43:02
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-12-17 10:45:25
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:23
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -52,7 +52,7 @@ public class UserInitializer {
.username(bytedeskProperties.getEmail())
.password(new BCryptPasswordEncoder().encode(bytedeskProperties.getPassword()))
.nickname(bytedeskProperties.getNickname())
.avatar(AvatarConsts.DEFAULT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultAvatarUrl())
.mobile(bytedeskProperties.getMobile())
.num(bytedeskProperties.getMobile())
.superUser(true)

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:21:24
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-12-28 10:37:15
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:29
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -61,7 +61,7 @@ public class UserRequest extends BaseRequest {
private String code;
@Builder.Default
private String avatar = AvatarConsts.DEFAULT_AVATAR_URL;
private String avatar = AvatarConsts.getDefaultAvatarUrl();
@Builder.Default
private String description = I18Consts.I18N_USER_DESCRIPTION;

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-01-29 16:21:24
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-01-09 22:54:26
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:35
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -106,7 +106,7 @@ public class UserService {
if (StringUtils.hasText(request.getAvatar())) {
user.setAvatar(request.getAvatar());
} else {
user.setAvatar(AvatarConsts.DEFAULT_AVATAR_URL);
user.setAvatar(AvatarConsts.getDefaultAvatarUrl());
}
//
if (StringUtils.hasText(request.getPassword())) {

View File

@@ -1,8 +1,8 @@
/*
* @Author: jackning 270580156@qq.com
* @Date: 2024-08-31 16:20:44
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-12-22 17:44:21
* @LastEditors: jack ning github@bytedesk.com
* @LastEditTime: 2025-02-08 10:37:40
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -22,7 +22,7 @@ public class UserUtils {
public static UserProtobuf getFileAssistantUser() {
UserProtobuf user = UserProtobuf.builder()
.nickname(I18Consts.I18N_FILE_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_FILE_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultFileAssistantAvatarUrl())
.build();
user.setUid(BytedeskConsts.DEFAULT_FILE_ASSISTANT_UID);
return user;
@@ -31,7 +31,7 @@ public class UserUtils {
public static UserProtobuf getClipboardAssistantUser() {
UserProtobuf user = UserProtobuf.builder()
.nickname(I18Consts.I18N_CLIPBOARD_ASSISTANT_NAME)
.avatar(AvatarConsts.DEFAULT_CLIPBOARD_ASSISTANT_AVATAR_URL)
.avatar(AvatarConsts.getDefaultClipboardAssistantAvatarUrl())
.build();
user.setUid(BytedeskConsts.DEFAULT_CLIPBOARD_ASSISTANT_UID);
return user;
@@ -40,7 +40,7 @@ public class UserUtils {
public static UserProtobuf getSystemChannelUser() {
UserProtobuf user = UserProtobuf.builder()
.nickname(I18Consts.I18N_SYSTEM_NOTIFICATION_NAME)
.avatar(AvatarConsts.DEFAULT_SYSTEM_NOTIFICATION_AVATAR_URL)
.avatar(AvatarConsts.getDefaultSystemNotificationAvatarUrl())
.build();
user.setUid(BytedeskConsts.DEFAULT_SYSTEM_UID);
return user;