feat: 新增轮播图和资料管理模块
此提交完整实现了小程序端和管理后台的轮播图、资料管理功能: 1. 新增3个枚举类型:轮播图展示位置、跳转类型、资料文件类型 2. 新增数据库表结构SQL脚本,包含Banner、Material、MaterialFile表 3. 新增实体类定义,适配SqlSugar ORM 4. 新增服务接口与实现,包含CRUD、状态切换、列表查询等完整业务逻辑 5. 新增管理后台API控制器和小程序端API控制器 6. 新增数据传输对象,包含输入、输出、查询参数等类型 7. 实现了OSS临时文件迁移、参数校验、分页查询、软删除等基础功能
This commit is contained in:
15
QYZH.InteractiveMagazine.Models/Enum/BannerPositionEnum.cs
Normal file
15
QYZH.InteractiveMagazine.Models/Enum/BannerPositionEnum.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Enum;
|
||||
|
||||
/// <summary>
|
||||
/// 轮播图展示位置枚举
|
||||
/// </summary>
|
||||
public enum BannerPositionEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 首页
|
||||
/// </summary>
|
||||
[Description("首页")]
|
||||
Home = 1
|
||||
}
|
||||
33
QYZH.InteractiveMagazine.Models/Enum/BannerTargetTypeEnum.cs
Normal file
33
QYZH.InteractiveMagazine.Models/Enum/BannerTargetTypeEnum.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Enum;
|
||||
|
||||
/// <summary>
|
||||
/// 轮播图跳转类型枚举
|
||||
/// </summary>
|
||||
public enum BannerTargetTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 无跳转
|
||||
/// </summary>
|
||||
[Description("无跳转")]
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 链接
|
||||
/// </summary>
|
||||
[Description("链接")]
|
||||
Url = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 期刊
|
||||
/// </summary>
|
||||
[Description("期刊")]
|
||||
Journal = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 商品
|
||||
/// </summary>
|
||||
[Description("商品")]
|
||||
Product = 3
|
||||
}
|
||||
27
QYZH.InteractiveMagazine.Models/Enum/MaterialFileTypeEnum.cs
Normal file
27
QYZH.InteractiveMagazine.Models/Enum/MaterialFileTypeEnum.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.Models.Enum;
|
||||
|
||||
/// <summary>
|
||||
/// 资料文件类型枚举
|
||||
/// </summary>
|
||||
public enum MaterialFileTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 视频
|
||||
/// </summary>
|
||||
[Description("视频")]
|
||||
Video = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
/// </summary>
|
||||
[Description("图片")]
|
||||
Image = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 音频
|
||||
/// </summary>
|
||||
[Description("音频")]
|
||||
Audio = 3
|
||||
}
|
||||
Reference in New Issue
Block a user