🚚 Rename GeoIP service

This commit is contained in:
2025-12-14 03:19:08 +08:00
parent 4ba7d38d78
commit c9530ac8b5
33 changed files with 44 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
namespace DysonNetwork.Shared.GeoIp;
namespace DysonNetwork.Shared.Geometry;
public class GeoPoint
{

View File

@@ -1,14 +1,14 @@
using MaxMind.GeoIP2;
using Microsoft.Extensions.Options;
namespace DysonNetwork.Shared.GeoIp;
namespace DysonNetwork.Shared.Geometry;
public class GeoIpOptions
public class GeoOptions
{
public string DatabasePath { get; set; } = null!;
}
public class GeoIpService(IOptions<GeoIpOptions> options)
public class GeoService(IOptions<GeoOptions> options)
{
private readonly string _databasePath = options.Value.DatabasePath;

View File

@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DysonNetwork.Shared.GeoIp;
using DysonNetwork.Shared.Geometry;
using DysonNetwork.Shared.Proto;
using NodaTime.Serialization.Protobuf;

View File

@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using DysonNetwork.Shared.GeoIp;
using DysonNetwork.Shared.Geometry;
using DysonNetwork.Shared.Proto;
using NodaTime;
using NodaTime.Serialization.Protobuf;