我滴个乖乖

This commit is contained in:
zel
2025-02-20 15:20:28 +08:00
parent 4b54cca70b
commit 485cfcd6f2
2343 changed files with 495732 additions and 1022 deletions

View File

@@ -0,0 +1,22 @@
namespace ZelWiki.Models.DataModels
{
public class PageToken
{
public int PageId { get; set; }
public string Token { get; set; } = string.Empty;
public string DoubleMetaphone { get; set; } = string.Empty;
public double Weight { get; set; }
public override bool Equals(object? obj)
{
return obj is PageToken other
&& PageId == other.PageId
&& string.Equals(Token, other.Token, StringComparison.OrdinalIgnoreCase);
}
public override int GetHashCode()
{
return HashCode.Combine(PageId, Token.ToLower());
}
}
}