- 添加 .editorconfig、.eslintrc 和 .gitignore 配置文件 - 添加管理员文章管理页面配置和实现 - 添加医生申请、银行卡、客户管理页面配置和实现 - 添加用户地址和聊天消息页面配置 - 实现文章新增编辑功能,包括表单验证和图片上传 - 实现医生注册功能,包含头像上传和手机号获取 - 实现银行卡管理功能,支持默认地址设置 - 实现客户报备功能,包含7天保护期逻辑 - 实现在线开方页面配置 - 修复页面标题和样式配置问题
133 lines
2.6 KiB
TypeScript
133 lines
2.6 KiB
TypeScript
import type { PageParam } from '@/api/index';
|
|
|
|
/**
|
|
* 文章
|
|
*/
|
|
export interface CmsArticle {
|
|
// 文章ID
|
|
articleId?: number;
|
|
// 文章标题
|
|
title?: string;
|
|
// 文章类型 0常规 1视频
|
|
type?: number;
|
|
// 文章模型
|
|
model?: string;
|
|
// 文章详情页模板
|
|
detail?: string;
|
|
// banner图片
|
|
banner?: string;
|
|
// 列表显示方式(10小图展示 20大图展示)
|
|
showType?: number;
|
|
// 话题
|
|
topic?: string;
|
|
// 标签
|
|
tags?: any;
|
|
// 栏目ID
|
|
categoryId?: number;
|
|
// 栏目名称
|
|
categoryName?: string;
|
|
// 封面图
|
|
image?: string;
|
|
// 价格
|
|
price?: number;
|
|
startTime?: any;
|
|
endTime?: any;
|
|
// 缩列图
|
|
thumbnail?: string;
|
|
// 来源
|
|
source?: string;
|
|
// 产品概述
|
|
overview?: string;
|
|
// 虚拟阅读量(仅用作展示)
|
|
virtualViews?: number;
|
|
// 实际阅读量
|
|
actualViews?: number;
|
|
// 购买人数
|
|
bmUsers?: 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;
|
|
// pdf地址
|
|
pdfUrl?: string;
|
|
// 评论数
|
|
commentNumbers?: number;
|
|
// 提醒谁看
|
|
toUsers?: string;
|
|
// 文章内容
|
|
content?: string;
|
|
// 是否推荐
|
|
recommend?: number;
|
|
// 用户ID
|
|
userId?: number;
|
|
// 排序(数字越小越靠前)
|
|
sortNumber?: number;
|
|
// 备注
|
|
comments?: string;
|
|
// 状态, 0已发布, 1待审核 2已驳回 3违规内容
|
|
status?: number;
|
|
// 是否删除, 0否, 1是
|
|
deleted?: number;
|
|
// 租户id
|
|
tenantId?: number;
|
|
// 创建时间
|
|
createTime?: string;
|
|
// 修改时间
|
|
updateTime?: string;
|
|
// 父级id
|
|
parentId?: number;
|
|
nickname?: string;
|
|
username?: string;
|
|
author?: string;
|
|
shopId?: number;
|
|
tenantName?: string;
|
|
logo?: string;
|
|
fileList?: any;
|
|
// 编辑器类型
|
|
editor?: number;
|
|
}
|
|
|
|
/**
|
|
* 文章搜索条件
|
|
*/
|
|
export interface CmsArticleParam extends PageParam {
|
|
articleId?: number;
|
|
articleIds?: string;
|
|
categoryId?: number;
|
|
parentId?: number;
|
|
status?: number;
|
|
// 是否推荐
|
|
recommend?: number;
|
|
keywords?: string;
|
|
// 验证密码
|
|
password?: string;
|
|
password2?: string;
|
|
tags?: string;
|
|
detail?: string;
|
|
sceneType?: string;
|
|
}
|