This commit is contained in:
jack ning
2025-03-28 17:15:08 +08:00
parent cafa25718e
commit cfde013ac1
37 changed files with 2158 additions and 2145 deletions

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-11-22 16:07:49
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-11-22 16:20:52
* @LastEditTime: 2025-03-28 16:22:47
* @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.
@@ -16,9 +16,9 @@ package com.bytedesk.kbase.faq;
public class FaqConsts {
private FaqConsts() {}
public static final String FAQ_CATEGORY_DEMO_UID_1 = "faq_category_demo_uid_1";
public static final String FAQ_CATEGORY_DEMO_UID_2 = "faq_category_demo_uid_2";
//
public static final String FAQ_DEMO_UID_1 = "faq_demo_uid_1";
public static final String FAQ_DEMO_UID_2 = "faq_demo_uid_2";
// public static final String FAQ_CATEGORY_DEMO_UID_1 = "faq_category_demo_uid_1";
// public static final String FAQ_CATEGORY_DEMO_UID_2 = "faq_category_demo_uid_2";
// //
// public static final String FAQ_DEMO_UID_1 = "faq_demo_uid_1";
// public static final String FAQ_DEMO_UID_2 = "faq_demo_uid_2";
}

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-03-22 22:59:18
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-03-18 15:37:05
* @LastEditTime: 2025-03-28 17:03:24
* @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.
@@ -348,10 +348,12 @@ public class FaqRestService extends BaseRestService<FaqEntity, FaqRequest, FaqRe
// create category
CategoryRequest categoryRequest = CategoryRequest.builder()
.name(excel.getCategory())
.type(CategoryTypeEnum.FAQ.name())
.kbUid(kbUid)
.orgUid(orgUid)
.build();
categoryRequest.setType(CategoryTypeEnum.LLM.name());
categoryRequest.setOrgUid(orgUid);
// categoryRequest.setType(CategoryTypeEnum.FAQ.name());
// categoryRequest.setOrgUid(orgUid);
//
CategoryResponse categoryResponse = categoryService.create(categoryRequest);
faq.setCategoryUid(categoryResponse.getUid());