update knowledge_kb (#34)

* update typescript

* add chunk api

* remove useless code
This commit is contained in:
yqj123
2024-01-18 18:27:38 +08:00
committed by GitHub
parent 9bf75d4511
commit fad2ec7cf3
59 changed files with 1018 additions and 1848 deletions

View File

@ -1,8 +1,27 @@
import { Effect, Reducer, Subscription } from 'umi'
import { message } from 'antd';
import { addParam } from '@/utils';
import kbService from '@/services/kbService';
export interface kAModelState {
isShowPSwModal: boolean;
isShowTntModal: boolean;
loading: boolean;
tenantIfo: any;
activeKey: string;
id: string;
doc_id: string
}
export interface kAModelType {
namespace: 'kAModel';
state: kAModelState;
effects: {
const Model = {
};
reducers: {
updateState: Reducer<kAModelState>;
};
subscriptions: { setup: Subscription };
}
const Model: kAModelType = {
namespace: 'kAModel',
state: {
isShowPSwModal: false,
@ -10,7 +29,8 @@ const Model = {
loading: false,
tenantIfo: {},
activeKey: 'setting',
id: ''
id: '',
doc_id: ''
},
subscriptions: {