You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.4 KiB
78 lines
1.4 KiB
import type { PageParam } from '@/api';
|
|
|
|
/**
|
|
* 文章分类
|
|
*/
|
|
export interface ArticleCategory {
|
|
// 文章分类id
|
|
categoryId?: number;
|
|
// 分类类型 0列表 1页面 2链接
|
|
type?: number;
|
|
// 文章分类
|
|
title?: string;
|
|
// 文章分类图片
|
|
image?: string;
|
|
// 路由/链接
|
|
path?: string;
|
|
// 组件路径
|
|
component?: string;
|
|
// 页面ID
|
|
pageId?: number;
|
|
// 页面名称
|
|
pageName?: string;
|
|
// 上级分类
|
|
parentId?: number;
|
|
// 封面图
|
|
avatar?: string;
|
|
// 用户ID
|
|
userId?: string;
|
|
// 所属门店ID
|
|
shopId?: string;
|
|
// 排序
|
|
sortNumber?: number;
|
|
// 备注
|
|
comments?: string;
|
|
// 状态
|
|
status?: number;
|
|
// 是否显示在首页
|
|
showIndex?: number;
|
|
// 是否推荐
|
|
recommend?: number;
|
|
// 创建时间
|
|
createTime?: string;
|
|
// 更新时间
|
|
updateTime?: string;
|
|
key?: number;
|
|
value?: number;
|
|
// 子菜单
|
|
children?: ArticleCategory[];
|
|
tempPath?: string;
|
|
disabled?: boolean;
|
|
tenantId?: number;
|
|
}
|
|
|
|
/**
|
|
* 整理分类用于网站导航栏
|
|
*/
|
|
export interface ArrangeCategory {
|
|
categoryId?: number;
|
|
type?: number;
|
|
title?: string;
|
|
parentId?: number;
|
|
avatar?: string;
|
|
path?: string;
|
|
component?: string;
|
|
pageId?: number;
|
|
sortNumber?: number;
|
|
comments?: string;
|
|
status?: number;
|
|
children?: ArrangeCategory[];
|
|
}
|
|
|
|
/**
|
|
* 文章分类搜索条件
|
|
*/
|
|
export interface ArticleCategoryParam extends PageParam {
|
|
title?: string;
|
|
categoryId?: number;
|
|
}
|