Files
number_zj/20220330_Vote/Vote.Services/Entities/userscore20250801.cs
路 范 d88e4c0bcf feat(userscore): 新增用户评分功能
- 添加 UserScore20250801 相关实体、DTO 和 API 控制器
- 实现用户评分列表、专家列表和提交评分的功能- 添加前端页面以展示和提交评分数据
- 优化评分计算逻辑,处理最高分和最低分
2025-08-02 23:41:25 +08:00

55 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.ComponentModel;
using Ewide.Core;
using SqlSugar;
namespace Vote.Services.Entities;
[SqlSugar.SugarTable]
[Serializable]
public class userscores20250801 : DEntityBase
{
public userscores20250801()
{
this.No = 0;
this.Title = "";
this.Postion = "";
this.Name = "";
}
/// <summary>
///
/// </summary>
[Description("")]
public int? No { get; set; }
/// <summary>
///
/// </summary>
[Description("")]
public string Title { get; set; }
/// <summary>
///
/// </summary>
[Description("")]
public string Postion { get; set; }
/// <summary>
///
/// </summary>
[Description("")]
public string Name { get; set; }
public string scoresjson { get; set; }
public decimal? finalscore { get; set; }
/// <summary>
/// 创建默认的主键值
/// <para>当构造函数执行时如果Id为空则会自动执行该函数</para>
/// </summary>
public void GenerateDefaultKeyVal()
{
Id = Ulid.NewUlid().ToString(); // Guid.NewGuid().ToString();
}
}