You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace DSWeb.Common.DB
{
[Table("sys_MpConfig")]
public class MpConfigInfo
{
public MpConfigInfo()
{
this.AppId = string.Empty;
this.AppSecret = string.Empty;
this.LastUpdate = DateTime.Now;
this.Token = string.Empty;
}
[Key]
public string AppId { get; set; }
public string AppSecret { get; set; }
public DateTime? LastUpdate { get; set; }
public DateTime? ExpireTime { get; set; }
public string Token { get; set; }
public string MpName { get; set; }
public string CompId { get; set; }
public string CompName { get; set; }
public DateTime CreateTime { get; set; }
public string CreateUser { get; set; }
public DateTime? ModifyTime { get; set; }
public string ModifyUser { get; set; }
public string Remark { get; set; }
}
[Table("sys_MpConfig_Template")]
public class MpConfigTemplate
{
//
[MaxLength(40), Key]
public string GID { get; set; }
//公众号AppId
[MaxLength(40)]
public string AppId { get; set; }
//模块代码
[MaxLength(30)]
public string ModuleCode { get; set; }
//模块名称
[MaxLength(60)]
public string ModuleName { get; set; }
//模板代码
[MaxLength(30)]
public string TemplateCode { get; set; }
//模板名称
[MaxLength(60)]
public string TemplateName { get; set; }
//模板id
[MaxLength(128)]
public string TemplateId { get; set; }
public DateTime CreateTime { get; set; }
public string CreateUser { get; set; }
public DateTime? ModifyTime { get; set; }
public string ModifyUser { get; set; }
//备注
[MaxLength(200)]
public string Remark { get; set; }
}
[Table("sys_MpConfig_User")]
public class MpConfigUser
{
//AppId
[MaxLength(128), Key, Column(Order = 0)]
public string AppId { get; set; }
//OpendId
[MaxLength(128), Key, Column(Order = 1)]
public string OpenId { get; set; }
//用户的昵称(公众号维护的备注)
[MaxLength(100)]
public string NickName { get; set; }
//最后更新时间
public DateTime LastUpdate { get; set; }
}
}