mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 12:48:08 +00:00
update
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user