1. 重构用户、宠物模板、勋章、管理员状态更新接口,移除冗余参数改为自动切换状态 2. 重命名宠物背景枚举为宠物皮肤,调整商品状态字段为枚举类型 3. 新增商品上下架状态管理接口与对应逻辑 4. 新增勋章规则配置系统,支持动态加载可用表和字段 5. 优化商品查询与展示逻辑,适配新的状态字段
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using QYZH.InteractiveMagazine.Models.Dto;
|
|
using QYZH.InteractiveMagazine.Models.Dto.Points;
|
|
using QYZH.InteractiveMagazine.Models.Entity;
|
|
|
|
namespace QYZH.InteractiveMagazine.IService;
|
|
|
|
public interface IUsersService : IBaseService<Users>
|
|
{
|
|
/// <summary>
|
|
/// 分页查询用户列表
|
|
/// </summary>
|
|
Task<BaseResponse<PageListModel<UsersOutput>>> GetListAsync(UsersQueryInput input);
|
|
|
|
/// <summary>
|
|
/// 获取用户详情(包含积分记录、签到记录、补偿任务、期刊列表)
|
|
/// </summary>
|
|
Task<BaseResponse<UserDetailOutput>> GetDetailAsync(long id);
|
|
|
|
/// <summary>
|
|
/// 更新用户状态
|
|
/// </summary>
|
|
Task<BaseResponse> UpdateStatusAsync(long id);
|
|
|
|
/// <summary>
|
|
/// 手动增加用户积分
|
|
/// </summary>
|
|
Task<ManualPointsOutput> ManualAddPointsAsync(long userId, ManualAddPointsInput input, long operatorId, string operatorName, string? ipAddress = null);
|
|
|
|
/// <summary>
|
|
/// 手动扣除用户积分
|
|
/// </summary>
|
|
Task<ManualPointsOutput> ManualDeductPointsAsync(long userId, ManualDeductPointsInput input, long operatorId, string operatorName, string? ipAddress = null);
|
|
}
|