Files
template-10586/app/api/cms/cmsArticle/model/index.ts
gxwebsoft 60c39cfec4 feat(article): 优化文章列表页面功能
- 将标题列改为可点击链接,支持直接跳转到文章详情页
- 新增操作列,添加查看按钮便于访问文章详情
- 修复事件绑定语法错误,将@pressEnter改为@press-enter
- 修复分页组件事件绑定错误,将@showSizeChange改为@show-size-change
- 实现路由参数监听,支持通过URL参数keywords自动搜索文章
- 临时禁用开发者中心的产品选择下拉菜单
- 移除已废弃的开发者中心相关页面和百色中学API接口文件
2026-01-21 15:04:16 +08:00

135 lines
2.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PageParam } from '@/api';
/**
* 文章
*/
export interface CmsArticle {
// 文章ID
articleId?: number;
// 文章标题
title?: string;
// 文章类型 0常规 1视频
type?: number;
// 文章模型
model?: string;
// 文章编号
code?: string;
// 文章详情
detail?: string;
// 列表显示方式(10小图展示 20大图展示)
showType?: number;
// 话题
topic?: string;
// 标签
tags?: any;
// 父级ID
parentId?: number;
parentName?: string;
// 栏目ID
categoryId?: number;
// 栏目名称
categoryName?: string;
// 封面图
image?: string;
// 来源
source?: string;
// 摘要
overview?: string;
// 虚拟阅读量(仅用作展示)
virtualViews?: number;
// 实际阅读量
actualViews?: number;
// 浏览权限(0公开 1会员 2密码)
permission?: number;
// 访问密码
password?: string;
// 确认密码
password2?: string;
// 发布来源客户端 (APP、H5、小程序等)
platform?: string;
// 文章附件
files?: string;
// 视频地址
video?: string;
// 接受的文件类型
accept?: string;
// 经度
longitude?: string;
// 纬度
latitude?: string;
// 所在省份
province?: string;
// 所在城市
city?: string;
// 所在辖区
region?: string;
// 街道地址
address?: string;
// 点赞数
likes?: number;
// 评论数
commentNumbers?: number;
// 提醒谁看
toUsers?: string;
// 文章内容
content?: string;
// 编辑器类型
editor?: number;
// PDF地址
pdfUrl?: string;
// 用户ID
userId?: number;
// 商户ID
merchantId?: number;
// 作者
author?: string;
// 语言
lang?: string;
// 是否推荐
recommend?: number;
// 是否同步翻译其他语言版本
translation?: boolean;
// 排序(数字越小越靠前)
sortNumber?: number;
// 备注
comments?: string;
// 状态, 0已发布, 1待审核 2已驳回 3违规内容
status?: number;
// 状态描述
statusText?: string;
// 是否删除, 0否, 1是
deleted?: number;
// 租户id
tenantId?: number;
// 创建时间
createTime?: string;
// 修改时间
updateTime?: string;
// 是否移动端
isMobile?: boolean;
// 二维码
qrcode?: string;
// 文章路径
url?: string;
}
/**
* 文章搜索条件
*/
export interface CmsArticleParam extends PageParam {
articleId?: number;
// 栏目/导航ID前台常用
categoryId?: number;
navigationId?: number;
model?: string;
status?: number;
keywords?: string;
}
export interface CmsArticleCount {
totalNum?: number;
totalNum2?: number;
totalNum3?: number;
totalNum4?: number;
}