import { HttpService } from '@spark100/teaching-base'; import { Subject } from "rxjs"; export declare enum KnowBasicInfoType { SECTION = 1, SUBJECT = 2, PUBLISHVERSION = 3, BOOKVERSION = 4 } export declare enum KnowType { SPECIAL = 3, SYNC = 4 } /** * 不包含复习树的服务类 * @author: xiaole * @date: 2019/2/21 */ export declare class KnowledgeService { private httpService; /** 不替换 默认的学段、学科等等信息*/ notReplaceBasicInfo: boolean; /** 知识点筛选项递归调用的类型*/ sectionList: Section[]; subjectList: ESubject[]; publishVersionList: PublishVersion[]; bookVersionList: BookVersion[]; currentSectionId: number; currentSubjectId: number; currentPublishVersionId: number; currentBookVersionId: number; /** 知识点类型*/ knowType: { code: number; codeValue: string; }[]; isSync: number; /** 知识点筛选项接口回调*/ knowCallBack: Subject; constructor(httpService: HttpService); /** * 查询知识点筛选项 * @param isStorage 是否入库的知识点 * @param isSync 类型是否为同步知识点 * @param notReplaceBasicInfo 不替换 默认的学段、学科等等信息 * @Title : * @author: xiaole * @desc : * @date: 2018/5/7 * @return : obj */ getKnows(isSync: any, isStorage?: number, notReplaceBasicInfo?: boolean): void; /** * 获取专题知识点筛选项 * @author: xiaole * @date: 2018/5/7 */ _getKnowRange(isStorage: any): void; /** * 专题知识点筛选项递归 * @author: xiaole */ _knowRecursion(isStorage: any, type: KnowBasicInfoType): void; /** * 获取同步知识点筛选项 * @Title : * @author: xiaole * @desc : * @date: 2018/5/7 * @return : obj */ _getSyncKnowRange(isStorage: any): void; /** * 同步知识点筛选项递归 * @Title : * @author: xiaole * @desc : * @date: 2018/5/7 * @return : obj */ _syncKnowRecursion(isStorage: number, type: KnowBasicInfoType): void; /** * 学段、学科、版本、书本、 选中接口返回的第一个元素 * @author: xiaole * @date: 2018/10/12 * @time: 下午5:25 * @desc: */ private defaultBasicInfo; /** * 切换学段学科 * @params type == this.knowApiType * @author: xiaole * @date: 2018/10/12 * @time: 上午11:55 * @desc: */ changeKnowBasicInfo(type?: any, isStorage?: number): void; /** * 将缓存的 同步类型、学段、学科、版本、书本取回 * @author: xiaole * @date: 2018/10/12 * @time: 下午4:31 * @desc: */ getStorageProp(key: any): void; /** * 获取知识点基础属性 * @author: xiaole * @date: 2018/10/12 * @time: 上午10:55 * @desc: */ getProps(): { isSync: number; sectionList: any; subjectList: any; publishVersionList: any; bookVersionList: any; sectionId: number; subjectId: number; publishVersionId: number; publishVersion: number; bookVersionId: number; bookVersion: number; }; } export declare class Section { sectionId: number; sectionName: string; } export declare class ESubject { subjectId: number; subjectName: number; } export declare class PublishVersion { publishVersionId: number; publishVersionName: string; } export declare class BookVersion { bookVersionId: number; bookVersionName: string; }