- 新增文章详情页面组件,用于显示文章内容 - 优化购物车页面样式,增加空购物车状态的透明背景 - 添加多个购物相关 API 接口,包括优惠券、订单等 - 更新环境配置,修改 API 基础 URL - 调整发现页面布局,增加文章详情入口
126 lines
2.5 KiB
TypeScript
126 lines
2.5 KiB
TypeScript
import type { PageParam } from '@/api/index';
|
|
|
|
/**
|
|
* 商品文章
|
|
*/
|
|
export interface ShopArticle {
|
|
// 文章ID
|
|
articleId?: number;
|
|
// 文章标题
|
|
title?: string;
|
|
// 文章类型 0常规 1视频
|
|
type?: number;
|
|
// 模型
|
|
model?: string;
|
|
// 详情页模板
|
|
detail?: string;
|
|
// 文章分类ID
|
|
categoryId?: number;
|
|
// 上级id, 0是顶级
|
|
parentId?: number;
|
|
// 话题
|
|
topic?: string;
|
|
// 标签
|
|
tags?: string;
|
|
// 封面图
|
|
image?: string;
|
|
// 封面图宽
|
|
imageWidth?: number;
|
|
// 封面图高
|
|
imageHeight?: number;
|
|
// 付费金额
|
|
price?: string;
|
|
// 开始时间
|
|
startTime?: string;
|
|
// 结束时间
|
|
endTime?: string;
|
|
// 来源
|
|
source?: string;
|
|
// 产品概述
|
|
overview?: string;
|
|
// 虚拟阅读量(仅用作展示)
|
|
virtualViews?: number;
|
|
// 实际阅读量
|
|
actualViews?: number;
|
|
// 评分
|
|
rate?: string;
|
|
// 列表显示方式(10小图展示 20大图展示)
|
|
showType?: number;
|
|
// 访问密码
|
|
password?: string;
|
|
// 可见类型 0所有人 1登录可见 2密码可见
|
|
permission?: number;
|
|
// 发布来源客户端 (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;
|
|
// 作者
|
|
author?: string;
|
|
// 推荐
|
|
recommend?: number;
|
|
// 报名人数
|
|
bmUsers?: number;
|
|
// 用户ID
|
|
userId?: number;
|
|
// 商户ID
|
|
merchantId?: number;
|
|
// 项目ID
|
|
projectId?: number;
|
|
// 语言
|
|
lang?: string;
|
|
// 关联默认语言的文章ID
|
|
langArticleId?: number;
|
|
// 是否自动翻译
|
|
translation?: string;
|
|
// 编辑器类型 0 Markdown编辑器 1 富文本编辑器
|
|
editor?: string;
|
|
// pdf文件地址
|
|
pdfUrl?: string;
|
|
// 版本号
|
|
version?: number;
|
|
// 排序(数字越小越靠前)
|
|
sortNumber?: number;
|
|
// 备注
|
|
comments?: string;
|
|
// 状态, 0已发布, 1待审核 2已驳回 3违规内容
|
|
status?: number;
|
|
// 是否删除, 0否, 1是
|
|
deleted?: number;
|
|
// 租户id
|
|
tenantId?: number;
|
|
// 创建时间
|
|
createTime?: string;
|
|
// 修改时间
|
|
updateTime?: string;
|
|
}
|
|
|
|
/**
|
|
* 商品文章搜索条件
|
|
*/
|
|
export interface ShopArticleParam extends PageParam {
|
|
articleId?: number;
|
|
keywords?: string;
|
|
}
|