项目初始化

This commit is contained in:
2026-03-19 10:57:24 +08:00
commit ee94d420ad
3822 changed files with 582614 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { BasicModel, Page, TreeDataModel } from '@jeesite/core/api/model/baseModel';
import { Category } from '@jeesite/cms/api/cms/category';
const { adminPath } = useGlobSetting();
export interface Article extends BasicModel<Article> {
title: string; // 内容标题
category: Category; // 归属栏目
source?: string; // 文章来源
moduleType?: string; // 模块类型
color?: string; // 标题颜色
href?: string; // 外部链接
weight?: number; // 权重/排序
weightDate?: string; // 权重期限
description?: string; // 摘要
image?: string; // 内容图片
keywords?: string; // 关键字
copyfrom?: string; // 文章来源出处
hits?: number; // 点击数
hitsPlus?: number; // 支持数
hitsMinus?: number; // 反对数
wordCount?: number; // 字数
customContentView?: string; // 自定义内容视图
viewConfig?: string; // 视图配置
}
export const articleList = (params?: Article | any) =>
defHttp.get<Article>({ url: adminPath + '/cms/article/list', params });
export const articleListData = (params?: Article | any) =>
defHttp.post<Page<Article>>({ url: adminPath + '/cms/article/listData', params });
export const articleForm = (params?: Article | any) =>
defHttp.get<Article>({ url: adminPath + '/cms/article/form', params });
export const articleSave = (params?: any, data?: Article | any) =>
defHttp.postJson<Article>({ url: adminPath + '/cms/article/save', params, data });
export const articleDisable = (params?: Article | any) =>
defHttp.get<Article>({ url: adminPath + '/cms/article/disable', params });
export const articleEnable = (params?: Article | any) =>
defHttp.get<Article>({ url: adminPath + '/cms/article/enable', params });
export const articleDelete = (params?: Article | any) =>
defHttp.get<Article>({ url: adminPath + '/cms/article/delete', params });

View File

@@ -0,0 +1,67 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { TreeDataModel, TreeModel } from '@jeesite/core/api/model/baseModel';
const { adminPath } = useGlobSetting();
export interface Category extends TreeModel<Category> {
categoryCode: string; // 栏目编码
categoryName: string; // 栏目名称
siteCode: string; // 站点编码
moduleType?: string; // 内容模型
image?: string; // 栏目图片
href?: string; // 链接
target?: string; // 目标
keywords?: string; // 关键字
description?: string; // 描述
inMenu?: string; // 导航栏目
inList?: string; // 栏目列表
showModes?: string; // 展现模式
isNeedAudit?: string; // 是否需要审核
isCanComment?: string; // 是否允许评论
customListView?: string; // 自定义列表视图
customContentView?: string; // 自定义内容视图
viewConfig?: string; // 视图配置
extend?: any; // 扩展字段
}
export const categoryIndex = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/index', params });
export const categoryList = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/list', params });
export const categoryListData = (params?: Category | any) =>
defHttp.post<Category[]>({ url: adminPath + '/cms/category/listData', params });
export const categoryForm = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/form', params });
export const categoryCreateNextNode = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/createNextNode', params });
export const categorySave = (params?: any, data?: Category | any) =>
defHttp.postJson<Category>({ url: adminPath + '/cms/category/save', params, data });
export const categoryDisable = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/disable', params });
export const categoryEnable = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/enable', params });
export const categoryDelete = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/delete', params });
export const categoryTreeData = (params?: any) =>
defHttp.get<TreeDataModel[]>({ url: adminPath + '/cms/category/treeData', params });
export const categoryRebuildIndex = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/rebuildIndex', params });
export const categoryRebuildVectorStore = (params?: Category | any) =>
defHttp.get<Category>({ url: adminPath + '/cms/category/rebuildVectorStore', params });

View File

@@ -0,0 +1,38 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { AxiosProgressEvent, GenericAbortSignal } from 'axios';
const { adminPath } = useGlobSetting();
export const cmsChatMessage = (params?: Recordable | any) =>
defHttp.get<Recordable[]>({ url: adminPath + '/cms/chat/message', params });
export const cmsChatList = (params?: Recordable | any) =>
defHttp.get<Recordable[]>({ url: adminPath + '/cms/chat/list', params });
export const cmsChatSave = (params?: Recordable | any) =>
defHttp.post<Recordable>({ url: adminPath + '/cms/chat/save', params });
export const cmsChatDelete = (params?: Recordable | any) =>
defHttp.get<Recordable>({ url: adminPath + '/cms/chat/delete', params });
export const cmsChatStream = (
params?: Recordable | any,
signal?: GenericAbortSignal,
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void,
) =>
defHttp.post<Recordable>({
url: adminPath + '/cms/chat/stream',
params,
signal,
onDownloadProgress,
responseType: 'stream',
headers: {
'x-ajax': 'event-stream',
},
});

View File

@@ -0,0 +1,48 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
const { adminPath } = useGlobSetting();
export interface Site extends BasicModel<Site> {
siteName: string; // 站点名称
siteCode: string; // 站点编码
title: string; // 站点标题
domainName?: string; // 站点域名
siteSort?: number; // 站点排序
logo?: string; // 站点Logo
description?: string; // 描述
keywords?: string; // 关键字
theme?: string; // 主题风格
customIndexView?: string; // 首页视图
copyright?: string; // 版权信息
}
export const siteList = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/list', params });
export const siteListData = (params?: Site | any) =>
defHttp.post<Page<Site>>({ url: adminPath + '/cms/site/listData', params });
export const siteForm = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/form', params });
export const siteSave = (params?: any, data?: Site | any) =>
defHttp.postJson<Site>({ url: adminPath + '/cms/site/save', params, data });
export const siteDisable = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/disable', params });
export const siteEnable = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/enable', params });
export const siteDelete = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/delete', params });
export const siteSelect = (params?: Site | any) => defHttp.get<Site>({ url: adminPath + '/cms/site/select', params });
export const siteRebuildIndex = (params?: Site | any) =>
defHttp.get<Site>({ url: adminPath + '/cms/site/rebuildIndex', params });
export const siteRebuildVectorStore = (params?: Site | any) =>
defHttp.get<Site>({ url: adminPath + '/cms/site/rebuildVectorStore', params });