mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 12:18:10 +00:00
update modules/kbase: mod 1 del 1 files
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-08-27 20:49:41
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2024-09-20 13:46: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.
|
||||
* Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE
|
||||
* contact: 270580156@qq.com
|
||||
* 联系:270580156@qq.com
|
||||
* Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
|
||||
*/
|
||||
package com.bytedesk.kbase.quick_reply;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
// 客服端加载
|
||||
@Data
|
||||
@Builder
|
||||
public class QuickReplyResponseAgent {
|
||||
|
||||
private String key;
|
||||
|
||||
private String title;
|
||||
|
||||
private String content;
|
||||
|
||||
private String type;
|
||||
|
||||
private String level;
|
||||
|
||||
private String platform;
|
||||
|
||||
@Builder.Default
|
||||
private List<QuickReplyResponseAgent> children = new ArrayList<>();
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 22:59:18
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-06-12 11:53:37
|
||||
* @LastEditTime: 2025-06-12 14:05:49
|
||||
* @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.
|
||||
@@ -136,6 +136,7 @@ public class QuickReplyRestService extends BaseRestServiceWithExcel<QuickReplyEn
|
||||
entity.setTitle(request.getTitle());
|
||||
entity.setContent(request.getContent());
|
||||
entity.setType(MessageTypeEnum.fromValue(request.getType()).name());
|
||||
entity.setShortCut(request.getShortCut());
|
||||
|
||||
return convertToResponse(save(entity));
|
||||
} else {
|
||||
@@ -143,15 +144,6 @@ public class QuickReplyRestService extends BaseRestServiceWithExcel<QuickReplyEn
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public QuickReplyEntity save(QuickReplyEntity entity) {
|
||||
try {
|
||||
return doSave(entity);
|
||||
} catch (ObjectOptimisticLockingFailureException e) {
|
||||
return handleOptimisticLockingFailureException(e, entity);
|
||||
}
|
||||
}
|
||||
|
||||
@CachePut(value = "quickreply", key = "#entity.uid")
|
||||
protected QuickReplyEntity doSave(QuickReplyEntity entity) {
|
||||
return quickReplyRepository.save(entity);
|
||||
|
||||
Reference in New Issue
Block a user