- 添加 UserScore20250801 相关实体、DTO 和 API 控制器 - 实现用户评分列表、专家列表和提交评分的功能- 添加前端页面以展示和提交评分数据 - 优化评分计算逻辑,处理最高分和最低分
55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
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();
|
||
}
|
||
} |