代理商管理
This commit is contained in:
23
Services/Hncore.Pass.Vpn/Domain/AgentPriceEntity.cs
Normal file
23
Services/Hncore.Pass.Vpn/Domain/AgentPriceEntity.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
|
||||
namespace Hncore.Pass.Vpn.Domain
|
||||
{
|
||||
public partial class AgentPriceEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// <summary>
|
||||
public int id { get; set; }
|
||||
|
||||
public int product_id { get; set; }
|
||||
public int package_id { get; set; }
|
||||
|
||||
public int agent_id { get; set; }
|
||||
|
||||
public decimal price { get; set; }
|
||||
|
||||
public decimal refund { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
32
Services/Hncore.Pass.Vpn/Domain/AgentScoreEntity.cs
Normal file
32
Services/Hncore.Pass.Vpn/Domain/AgentScoreEntity.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
|
||||
namespace Hncore.Pass.Vpn.Domain
|
||||
{
|
||||
public partial class AgentScoreEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// <summary>
|
||||
public int id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 代理id
|
||||
/// </summary>
|
||||
public int agent_id { get; set; }
|
||||
public int order_id { get; set; }
|
||||
|
||||
public int score_type { get; set; }
|
||||
|
||||
public decimal score_value { get; set; }
|
||||
|
||||
public string remark { get; set; }
|
||||
|
||||
public string agent_name { get; set; }
|
||||
public string op_user { get; set; }
|
||||
|
||||
public decimal rest_amount1 { get; set; }
|
||||
public decimal rest_amount2 { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
25
Services/Hncore.Pass.Vpn/Domain/AgentUserEntity.cs
Normal file
25
Services/Hncore.Pass.Vpn/Domain/AgentUserEntity.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
|
||||
namespace Hncore.Pass.Vpn.Domain
|
||||
{
|
||||
public partial class AgentUserEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// <summary>
|
||||
public int id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 代理id
|
||||
/// </summary>
|
||||
public string username { get; set; }
|
||||
|
||||
public string realname { get; set; }
|
||||
|
||||
public string phone { get; set; }
|
||||
|
||||
public decimal account { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -126,6 +126,28 @@ namespace Hncore.Pass.Vpn.Domain
|
||||
entity.HasKey(p => p.Id);
|
||||
entity.Property(e => e.Id).ValueGeneratedOnAdd();
|
||||
});
|
||||
//代理
|
||||
modelBuilder.Entity<AgentUserEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("agent_user");
|
||||
|
||||
entity.HasKey(p => p.id);
|
||||
entity.Property(e => e.id).ValueGeneratedOnAdd();
|
||||
});
|
||||
modelBuilder.Entity<AgentScoreEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("agent_score");
|
||||
|
||||
entity.HasKey(p => p.id);
|
||||
entity.Property(e => e.id).ValueGeneratedOnAdd();
|
||||
});
|
||||
modelBuilder.Entity<AgentPriceEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("agent_price");
|
||||
|
||||
entity.HasKey(p => p.id);
|
||||
entity.Property(e => e.id).ValueGeneratedOnAdd();
|
||||
});
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user