refactor: 重构用户与商品模块,统一业务模型与服务
1. 新增用户状态枚举UserStatusEnum,统一用户状态定义 2. 重构用户体系:合并WxUser与User实体为Users实体,统一用户管理 3. 新增微信小程序认证相关服务与控制器,实现一键登录功能 4. 新增商品管理完整服务与控制器,修复商品表字段映射问题 5. 删除冗余的WxUser相关服务与控制器代码 6. 新增Newtonsoft.Json依赖用于微信接口响应解析 7. 清理无用的文件夹引用配置
This commit is contained in:
71
QYZH.InteractiveMagazine.Models/Dto/UsersDto.cs
Normal file
71
QYZH.InteractiveMagazine.Models/Dto/UsersDto.cs
Normal file
@ -0,0 +1,71 @@
|
||||
using QYZH.InteractiveMagazine.Models.Dto;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.IService.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// Users查询输入DTO
|
||||
/// </summary>
|
||||
public class UsersQueryInput : PageQueryModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信用户ID
|
||||
/// </summary>
|
||||
public string? WxUserId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Users输出DTO (基本信息)
|
||||
/// </summary>
|
||||
public class UsersOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信用户ID
|
||||
/// </summary>
|
||||
public string WxUserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 头像地址
|
||||
/// </summary>
|
||||
public string? AvatarUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 积分余额
|
||||
/// </summary>
|
||||
public int Points { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户类型
|
||||
/// </summary>
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 当前成长值
|
||||
/// </summary>
|
||||
public int GrowthPoints { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新用户状态输入DTO
|
||||
/// </summary>
|
||||
public class UpdateUserStatusInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户状态: 1-启用, 2-冻结
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user