代理商管理

This commit is contained in:
“wanyongkang”
2021-02-21 18:23:10 +08:00
parent b8c93a5fd5
commit c96637bec9
9 changed files with 252 additions and 1 deletions

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@@ -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);
}
}