zmq hace 1 año
padre
commit
49a0023d5d

+ 15 - 0
src/platform/ZhonTai.Admin/Domain/ProjectLink/IProjectLinkRepository.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ZhonTai.Admin.Core.Repositories;
+using ZhonTai.Admin.Domain.Project;
+
+namespace ZhonTai.Admin.Domain.ProjectLink
+{   
+    public interface IProjectLinkRepository : IRepositoryBase<ProjectLinkEntity>
+    {
+
+    }
+}

+ 77 - 0
src/platform/ZhonTai.Admin/Domain/ProjectLink/ProjectLinkEntity.cs

@@ -0,0 +1,77 @@
+using FreeSql.DataAnnotations;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Linq;
+using ZhonTai.Admin.Core.Entities;
+
+namespace ZhonTai.Admin.Domain.ProjectLink
+{
+    /// <summary>
+    /// 推广码
+    /// </summary>
+    [Table(Name = "duitui_project_link")]
+    [Index("idx_{tablename}_01", nameof(Num), true)]
+    public partial class ProjectLinkEntity : EntityTenant
+    {
+        /// <summary>
+        /// 项目Id
+        /// </summary>
+        public long ProjectId { get; set; }
+        /// <summary>
+        /// 公司
+        /// </summary>
+        public string Company { get; set; }
+        /// <summary>
+        /// 二维码类型
+        /// </summary>
+        public string QrcodeType { get; set; }
+        /// <summary>
+        /// 编号
+        /// </summary>
+        public string Num { get; set; }
+        /// <summary>
+        /// 短链
+        /// </summary>
+        public string ShortUrl { get; set; }
+        /// <summary>
+        /// 二维码链接
+        /// </summary>
+        public string QrcodeUrl { get; set; }
+        /// <summary>
+        /// 推广口令
+        /// </summary>
+        public string ShareCommand { get; set; }
+        /// <summary>
+        /// 是否使用 1使用
+        /// </summary>
+        public int IsUse { get; set; }
+        /// <summary>
+        /// 使用时间
+        /// </summary>
+        public DateTime UseTime { get; set; }
+        /// <summary>
+        /// 业务员姓名
+        /// </summary>
+        public string Salesman { get; set; }
+        /// <summary>
+        /// 业务员手机号
+        /// </summary>
+        public string SalesmanPhone { get; set; }
+        /// <summary>
+        /// 业务员省
+        /// </summary>
+        public string SalesmanProvince { get; set; }
+        /// <summary>
+        /// 业务员市
+        /// </summary>
+        public string SalesmanCity { get; set; }
+        /// <summary>
+        /// 业务员备注
+        /// </summary>
+        public string SalesmanRemark { get; set; }
+
+    }
+}

+ 20 - 0
src/platform/ZhonTai.Admin/Repositories/ProjectLink/ProjectLinkRepository.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ZhonTai.Admin.Core.Db.Transaction;
+using ZhonTai.Admin.Domain.Project;
+using ZhonTai.Admin.Domain.ProjectLink;
+
+namespace ZhonTai.Admin.Repositories.ProjectLink
+{
+    public class ProjectLinkRepository : AdminRepositoryBase<ProjectLinkEntity>, IProjectLinkRepository
+    {
+        public ProjectLinkRepository(UnitOfWorkManagerCloud muowm) : base(muowm)
+        {
+
+        }
+    }
+}
+

+ 12 - 0
src/platform/ZhonTai.Admin/Services/ProjectLink/IProjectLinkService.cs

@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ZhonTai.Admin.Services.ProjectLink
+{
+    public interface IProjectLinkService
+    {
+    }
+}

+ 14 - 0
src/platform/ZhonTai.Admin/Services/ProjectLink/ProjectLinkService.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ZhonTai.Admin.Services.Project;
+using ZhonTai.DynamicApi;
+
+namespace ZhonTai.Admin.Services.ProjectLink
+{
+    public class ProjectLinkService : BaseService, IProjectLinkService, IDynamicApi
+    {
+    }
+}