| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- import request from "@utils/request";
- // 获取知识库
- export function getAllDict(params) {
- return request({
- url: `/api/sys/knowledge/base/getKnowledgeBasePage`,
- method: "post",
- data:{
- pageNum:1,
- pageSize:9999
- }
- });
- }
- //新增知识库
- export function addDict(params) {
- return request({
- url: `/api/sys/knowledge/base/insertSysKnowledgeBaseEntity`,
- method: "POST",
- data: params,
- headers: {
- "Content-type": "application/json",
- },
- });
- }
- // 删除知识库
- export function deleteSysDict(params) {
- return request({
- url: `/api/sys/knowledge/base/deleteById/${params.knowledgeId}`,
- method: "DELETE",
- headers: {
- "Content-type": "application/json",
- },
- });
- }
- // 更新系统知识库api
- export function updateSysDictParam(params) {
- return request({
- url: `/api/sys/knowledge/base/updateSysKnowledgeBaseEntity`,
- method: "POST",
- headers: {
- "Content-type": "application/json",
- },
- data: params,
- });
- }
- // 详细
- // 新增系统知识库数据api
- export function addDictValue(params) {
- return request({
- url: `/api/sys/dict/value/addDictValue`,
- method: "POST",
- headers: {
- "Content-type": "application/json",
- },
- data: params,
- });
- }
- // 删除知识库值
- export function deleteSysDictValue(params) {
- return request({
- url: `/api/sys/dict/value/deleteSysDictValue/${params.dictValueId}`,
- method: "DELETE",
- headers: {
- "Content-type": "application/json",
- },
- });
- }
- // 根据知识库id获取知识库数据
- export function getValueByDictId(params) {
- return request({
- url: `/api/sys/dict/value/getValueByDictId/${params.dictId}`,
- method: "GET",
- });
- }
- // 更新系统知识库值api
- export function updateSysDictValueParam(params) {
- return request({
- url: `/api/sys/dict/value/updateSysDictValueParam`,
- method: "POST",
- headers: {
- "Content-type": "application/json",
- },
- data: params,
- });
- }
- // 根据知识库id获取知识库数据
- export async function getValueByDictCode(params) {
- return request({
- url: `/api/sys/dict/value/getValueByDictCode/${params.dictCode}`,
- method: "GET",
- });
- }
- export async function getDmpAccessUrl(params) {
- return request({
- url: `/api/sys/sso/getDmpAccessUrl`,
- method: "GET",
- data: params,
- });
- }
- // 根据知识库id获取知识库数据
- export async function getFineReportType(params) {
- return request({
- url: `/api/other/fineReport/getFineReportType`,
- method: "GET",
- data: params,
- });
- }
|