lcl 1 yıl önce
işleme
7df1547ca8
100 değiştirilmiş dosya ile 5153 ekleme ve 0 silme
  1. BIN
      .DS_Store
  2. 4 0
      .gitignore
  3. 1 0
      .vscode/api.code-snippets
  4. 896 0
      .vscode/db.code-snippets
  5. 33 0
      .vscode/launch.json
  6. 55 0
      .vscode/public.code-snippets
  7. 42 0
      .vscode/tasks.json
  8. BIN
      AppStart/.DS_Store
  9. 20 0
      AppStart/StartHelper.cs
  10. 28 0
      AppStart/TemplateViewLocationExpander.cs
  11. BIN
      Areas/.DS_Store
  12. BIN
      Areas/Api/.DS_Store
  13. BIN
      Areas/Api/Controllers/.DS_Store
  14. 27 0
      Areas/Api/Controllers/BaseController.cs
  15. 250 0
      Areas/Api/Controllers/PublicMethodController.cs
  16. 114 0
      Areas/Api/Controllers/SysAdminController.cs
  17. 18 0
      Config/Base.cs
  18. 15 0
      Config/JwtConfig.cs
  19. 22 0
      Config/Oss.cs
  20. 27 0
      Controllers/HomeController.cs
  21. BIN
      DLL/Aliyun.OSS.dll
  22. BIN
      DLL/LitJSON.dll
  23. BIN
      DLL/MySystemLib.dll
  24. BIN
      DLL/Newtonsoft.Json.dll
  25. BIN
      DLL/ThoughtWorks.QRCode.dll
  26. BIN
      DLL/aliyun-net-sdk-core.dll
  27. 20 0
      Entity/AdminRightListItem.cs
  28. 12 0
      Entity/AppResultJson.cs
  29. 41 0
      Entity/DbScheme.cs
  30. 12 0
      Entity/RedisTables/AccountTable.cs
  31. 9 0
      Entity/RedisTables/AdminIpList.cs
  32. 18 0
      Entity/RedisTables/UData.cs
  33. 18 0
      Entity/Setting.cs
  34. 25 0
      Filter/AuthorizeFilter.cs
  35. 19 0
      Filter/GlobalActionFilter.cs
  36. 16 0
      Filter/GlobalExceptionsFilter.cs
  37. 19 0
      Filter/ResourceFilter.cs
  38. 19 0
      Filter/ResultFilter.cs
  39. BIN
      Models/.DS_Store
  40. 26 0
      Models/Bs/Advertisment.cs
  41. 30 0
      Models/Bs/Col.cs
  42. 11 0
      Models/Bs/MenuRight.cs
  43. 28 0
      Models/Bs/MsgBlackList.cs
  44. 34 0
      Models/Bs/MsgPersonal.cs
  45. 37 0
      Models/Bs/MsgPlacard.cs
  46. 25 0
      Models/Bs/MsgPlacardRead.cs
  47. 31 0
      Models/Bs/MsgPush.cs
  48. 38 0
      Models/Bs/MsgSms.cs
  49. 27 0
      Models/Bs/MsgSmsSet.cs
  50. 29 0
      Models/Bs/MsgTemplate.cs
  51. 26 0
      Models/Bs/OperateLog.cs
  52. 23 0
      Models/Bs/OperateRightList.cs
  53. 24 0
      Models/Bs/PageInfo.cs
  54. 45 0
      Models/Bs/PublicAccountSet.cs
  55. 12 0
      Models/Bs/RefreshTokens.cs
  56. 20 0
      Models/Bs/RightDic.cs
  57. 26 0
      Models/Bs/SysAdmin.cs
  58. 24 0
      Models/Bs/SysAdminRole.cs
  59. 13 0
      Models/Bs/SysLog.cs
  60. 41 0
      Models/Bs/SystemSet.cs
  61. 26 0
      Models/Bs/UploadParams.cs
  62. 1634 0
      Models/Bs/WebCMSEntities.cs
  63. 49 0
      Models/Main/ActiveReward.cs
  64. 26 0
      Models/Main/ActivityEnrolRecord.cs
  65. 37 0
      Models/Main/ActivityInfo.cs
  66. 32 0
      Models/Main/ActivityPrizeDetail.cs
  67. 24 0
      Models/Main/ActivityRedPackageJoins.cs
  68. 24 0
      Models/Main/ActivityRedPackageStock.cs
  69. 25 0
      Models/Main/ActivityRedPackageTop10.cs
  70. 26 0
      Models/Main/Advertisment.cs
  71. 25 0
      Models/Main/AgentLevelSet.cs
  72. 32 0
      Models/Main/AppBottomNavs.cs
  73. 28 0
      Models/Main/AppVersion.cs
  74. 24 0
      Models/Main/AppVideo.cs
  75. 26 0
      Models/Main/AppVideoList.cs
  76. 28 0
      Models/Main/BackEndOpRecord.cs
  77. 26 0
      Models/Main/BankInfo.cs
  78. 47 0
      Models/Main/BrokenMachineChange.cs
  79. 34 0
      Models/Main/BrokenMachineChangeDetail.cs
  80. 28 0
      Models/Main/BusinessActSummary.cs
  81. 26 0
      Models/Main/BusinessPartner.cs
  82. 25 0
      Models/Main/BusinessPartnerMerchant.cs
  83. 25 0
      Models/Main/BusinessPartnerPos.cs
  84. 67 0
      Models/Main/BusinessTradeSummary.cs
  85. 37 0
      Models/Main/Col.cs
  86. 11 0
      Models/Main/ConsumerOpenIds.cs
  87. 11 0
      Models/Main/ConsumerOrderForNo.cs
  88. 31 0
      Models/Main/ConsumerOrders.cs
  89. 25 0
      Models/Main/ConsumerProfit.cs
  90. 36 0
      Models/Main/Consumers.cs
  91. 33 0
      Models/Main/CouponAssignRecords.cs
  92. 48 0
      Models/Main/Coupons.cs
  93. 26 0
      Models/Main/CouponsForUser.cs
  94. 24 0
      Models/Main/CustomTagSet.cs
  95. 24 0
      Models/Main/ErpCompanys.cs
  96. 24 0
      Models/Main/FileUpdateInfo.cs
  97. 43 0
      Models/Main/FluxProfitDetail.cs
  98. 30 0
      Models/Main/FluxProfitSummary.cs
  99. 33 0
      Models/Main/HelpProfitAccountRecord.cs
  100. 23 0
      Models/Main/HelpProfitAmountSummary.cs

BIN
.DS_Store


+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+/bin
+/publish
+/obj
+/appsettings.json

+ 1 - 0
.vscode/api.code-snippets

@@ -0,0 +1 @@
+{}

+ 896 - 0
.vscode/db.code-snippets

@@ -0,0 +1,896 @@
+{"查询广告位列表": {
+"prefix": "ym-db-Advertisment-Find",
+"body": [
+"List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (Advertisment $3 in $1)",
+"{",
+"}"
+]
+},
+"查询广告位列表,并取值": {
+"prefix": "ym-db-Advertisment-FindWithData",
+"body": [
+"List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (Advertisment $3 in $1)",
+"{",
+"	string Title = $3.Title; //标题",
+"	string ColId = $3.ColId; //分类",
+"	string PicPath = $3.PicPath; //图片",
+"	string Contents = $3.Contents; //内容",
+"	string Url = $3.Url; //链接地址",
+"}"
+]
+},
+"查询广告位": {
+"prefix": "ym-db-Advertisment-Exist",
+"body": [
+"bool $1 = db.Advertisment.Any(m => m.Id == $2);",
+]
+},
+"查询某个广告位,并取值": {
+"prefix": "ym-db-Advertisment-FindByPrimaryKey",
+"body": [
+"Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string Title = $1.Title; //标题",
+"	string ColId = $1.ColId; //分类",
+"	string PicPath = $1.PicPath; //图片",
+"	string Contents = $1.Contents; //内容",
+"	string Url = $1.Url; //链接地址",
+"}"
+]
+},
+"查询某个广告位,并赋值": {
+"prefix": "ym-db-Advertisment-Update",
+"body": [
+"Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.Title = $2; //标题",
+"	$1.ColId = $3; //分类",
+"	$1.PicPath = $4; //图片",
+"	$1.Contents = $5; //内容",
+"	$1.Url = $6; //链接地址",
+"}"
+]
+},
+"获取广告位数量": {
+"prefix": "ym-db-Advertisment-FindAndCount",
+"body": [
+"int $1 = db.Advertisment.Count(m => $2);",
+]
+},
+"添加广告位": {
+"prefix": "ym-db-Advertisment-Create",
+"body": [
+"db.Advertisment.Add(new Advertisment()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	Title = $1, //标题",
+"	ColId = $2, //分类",
+"	PicPath = $3, //图片",
+"	Contents = $4, //内容",
+"	Url = $5, //链接地址",
+"});"
+]
+},"删除某个广告位": {
+"prefix": "ym-db-Advertisment-Delete",
+"body": [
+"Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.Advertisment.Remove($1);",
+"}"
+]
+},
+"查询企业入驻审核记录列表": {
+"prefix": "ym-db-BussinessAuditRecord-Find",
+"body": [
+"List<BussinessAuditRecord> $1 = db.BussinessAuditRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (BussinessAuditRecord $3 in $1)",
+"{",
+"}"
+]
+},
+"查询企业入驻审核记录列表,并取值": {
+"prefix": "ym-db-BussinessAuditRecord-FindWithData",
+"body": [
+"List<BussinessAuditRecord> $1 = db.BussinessAuditRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (BussinessAuditRecord $3 in $1)",
+"{",
+"	int UserId = $3.UserId; //会员",
+"	int AuditId = $3.AuditId; //审核人",
+"	string AuditNote = $3.AuditNote; //审核意见",
+"	string UserRealName = $3.UserRealName; //会员姓名",
+"	string UserCode = $3.UserCode; //会员编号",
+"	string UserMobile = $3.UserMobile; //会员手机号",
+"	string SysAdminName = $3.SysAdminName; //审核人名称",
+"}"
+]
+},
+"查询企业入驻审核记录": {
+"prefix": "ym-db-BussinessAuditRecord-Exist",
+"body": [
+"bool $1 = db.BussinessAuditRecord.Any(m => m.Id == $2);",
+]
+},
+"查询某个企业入驻审核记录,并取值": {
+"prefix": "ym-db-BussinessAuditRecord-FindByPrimaryKey",
+"body": [
+"BussinessAuditRecord $1 = db.BussinessAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	int UserId = $1.UserId; //会员",
+"	int AuditId = $1.AuditId; //审核人",
+"	string AuditNote = $1.AuditNote; //审核意见",
+"	string UserRealName = $1.UserRealName; //会员姓名",
+"	string UserCode = $1.UserCode; //会员编号",
+"	string UserMobile = $1.UserMobile; //会员手机号",
+"	string SysAdminName = $1.SysAdminName; //审核人名称",
+"}"
+]
+},
+"查询某个企业入驻审核记录,并赋值": {
+"prefix": "ym-db-BussinessAuditRecord-Update",
+"body": [
+"BussinessAuditRecord $1 = db.BussinessAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.UserId = $2; //会员",
+"	$1.AuditId = $3; //审核人",
+"	$1.AuditNote = $4; //审核意见",
+"	$1.UserRealName = $5; //会员姓名",
+"	$1.UserCode = $6; //会员编号",
+"	$1.UserMobile = $7; //会员手机号",
+"	$1.SysAdminName = $8; //审核人名称",
+"}"
+]
+},
+"获取企业入驻审核记录数量": {
+"prefix": "ym-db-BussinessAuditRecord-FindAndCount",
+"body": [
+"int $1 = db.BussinessAuditRecord.Count(m => $2);",
+]
+},
+"添加企业入驻审核记录": {
+"prefix": "ym-db-BussinessAuditRecord-Create",
+"body": [
+"db.BussinessAuditRecord.Add(new BussinessAuditRecord()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	UserId = $1, //会员",
+"	AuditId = $2, //审核人",
+"	AuditNote = $3, //审核意见",
+"	UserRealName = $4, //会员姓名",
+"	UserCode = $5, //会员编号",
+"	UserMobile = $6, //会员手机号",
+"	SysAdminName = $7, //审核人名称",
+"});"
+]
+},"删除某个企业入驻审核记录": {
+"prefix": "ym-db-BussinessAuditRecord-Delete",
+"body": [
+"BussinessAuditRecord $1 = db.BussinessAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.BussinessAuditRecord.Remove($1);",
+"}"
+]
+},
+"查询分类设置列表": {
+"prefix": "ym-db-Col-Find",
+"body": [
+"List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (Col $3 in $1)",
+"{",
+"}"
+]
+},
+"查询分类设置列表,并取值": {
+"prefix": "ym-db-Col-FindWithData",
+"body": [
+"List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (Col $3 in $1)",
+"{",
+"	string ColId = $3.ColId; //编号",
+"	string ColName = $3.ColName; //名称",
+"	string ColPicPath = $3.ColPicPath; //图标",
+"	string ColDetail = $3.ColDetail; //简介",
+"	ulong Recommend = $3.Recommend; //推荐",
+"	string ColEnName = $3.ColEnName; //英文名",
+"	string Contents = $3.Contents; //详细内容",
+"	string Url = $3.Url; //第三方链接",
+"}"
+]
+},
+"查询分类设置": {
+"prefix": "ym-db-Col-Exist",
+"body": [
+"bool $1 = db.Col.Any(m => m.Id == $2);",
+]
+},
+"查询某个分类设置,并取值": {
+"prefix": "ym-db-Col-FindByPrimaryKey",
+"body": [
+"Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string ColId = $1.ColId; //编号",
+"	string ColName = $1.ColName; //名称",
+"	string ColPicPath = $1.ColPicPath; //图标",
+"	string ColDetail = $1.ColDetail; //简介",
+"	ulong Recommend = $1.Recommend; //推荐",
+"	string ColEnName = $1.ColEnName; //英文名",
+"	string Contents = $1.Contents; //详细内容",
+"	string Url = $1.Url; //第三方链接",
+"}"
+]
+},
+"查询某个分类设置,并赋值": {
+"prefix": "ym-db-Col-Update",
+"body": [
+"Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.ColId = $2; //编号",
+"	$1.ColName = $3; //名称",
+"	$1.ColPicPath = $4; //图标",
+"	$1.ColDetail = $5; //简介",
+"	$1.Recommend = $6; //推荐",
+"	$1.ColEnName = $7; //英文名",
+"	$1.Contents = $8; //详细内容",
+"	$1.Url = $9; //第三方链接",
+"}"
+]
+},
+"获取分类设置数量": {
+"prefix": "ym-db-Col-FindAndCount",
+"body": [
+"int $1 = db.Col.Count(m => $2);",
+]
+},
+"添加分类设置": {
+"prefix": "ym-db-Col-Create",
+"body": [
+"db.Col.Add(new Col()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	ColId = $1, //编号",
+"	ColName = $2, //名称",
+"	ColPicPath = $3, //图标",
+"	ColDetail = $4, //简介",
+"	Recommend = $5, //推荐",
+"	ColEnName = $6, //英文名",
+"	Contents = $7, //详细内容",
+"	Url = $8, //第三方链接",
+"});"
+]
+},"删除某个分类设置": {
+"prefix": "ym-db-Col-Delete",
+"body": [
+"Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.Col.Remove($1);",
+"}"
+]
+},
+"查询小程序版本库列表": {
+"prefix": "ym-db-MiniProgramVersions-Find",
+"body": [
+"List<MiniProgramVersions> $1 = db.MiniProgramVersions.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (MiniProgramVersions $3 in $1)",
+"{",
+"}"
+]
+},
+"查询小程序版本库列表,并取值": {
+"prefix": "ym-db-MiniProgramVersions-FindWithData",
+"body": [
+"List<MiniProgramVersions> $1 = db.MiniProgramVersions.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (MiniProgramVersions $3 in $1)",
+"{",
+"	int UserId = $3.UserId; //会员",
+"	int AuditId = $3.AuditId; //审核人",
+"	string AuditNote = $3.AuditNote; //审核意见",
+"	string UserRealName = $3.UserRealName; //会员姓名",
+"	string UserCode = $3.UserCode; //会员编号",
+"	string UserMobile = $3.UserMobile; //会员手机号",
+"	string SysAdminName = $3.SysAdminName; //审核人名称",
+"	int ProjectId = $3.ProjectId; //项目",
+"	string ProjectName = $3.ProjectName; //项目名称",
+"	string VerNum = $3.VerNum; //版本号",
+"	int UpdateKind = $3.UpdateKind; //更新类型",
+"	string UpdateNote = $3.UpdateNote; //更新备注",
+"	int VerType = $3.VerType; //版本类型",
+"	DateTime AuditDate = $3.AuditDate; //审核时间",
+"	DateTime PublishDate = $3.PublishDate; //发布时间",
+"	string SourceFilePath = $3.SourceFilePath; //资源文件路径",
+"}"
+]
+},
+"查询小程序版本库": {
+"prefix": "ym-db-MiniProgramVersions-Exist",
+"body": [
+"bool $1 = db.MiniProgramVersions.Any(m => m.Id == $2);",
+]
+},
+"查询某个小程序版本库,并取值": {
+"prefix": "ym-db-MiniProgramVersions-FindByPrimaryKey",
+"body": [
+"MiniProgramVersions $1 = db.MiniProgramVersions.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	int UserId = $1.UserId; //会员",
+"	int AuditId = $1.AuditId; //审核人",
+"	string AuditNote = $1.AuditNote; //审核意见",
+"	string UserRealName = $1.UserRealName; //会员姓名",
+"	string UserCode = $1.UserCode; //会员编号",
+"	string UserMobile = $1.UserMobile; //会员手机号",
+"	string SysAdminName = $1.SysAdminName; //审核人名称",
+"	int ProjectId = $1.ProjectId; //项目",
+"	string ProjectName = $1.ProjectName; //项目名称",
+"	string VerNum = $1.VerNum; //版本号",
+"	int UpdateKind = $1.UpdateKind; //更新类型",
+"	string UpdateNote = $1.UpdateNote; //更新备注",
+"	int VerType = $1.VerType; //版本类型",
+"	DateTime AuditDate = $1.AuditDate; //审核时间",
+"	DateTime PublishDate = $1.PublishDate; //发布时间",
+"	string SourceFilePath = $1.SourceFilePath; //资源文件路径",
+"}"
+]
+},
+"查询某个小程序版本库,并赋值": {
+"prefix": "ym-db-MiniProgramVersions-Update",
+"body": [
+"MiniProgramVersions $1 = db.MiniProgramVersions.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.UserId = $2; //会员",
+"	$1.AuditId = $3; //审核人",
+"	$1.AuditNote = $4; //审核意见",
+"	$1.UserRealName = $5; //会员姓名",
+"	$1.UserCode = $6; //会员编号",
+"	$1.UserMobile = $7; //会员手机号",
+"	$1.SysAdminName = $8; //审核人名称",
+"	$1.ProjectId = $9; //项目",
+"	$1.ProjectName = $10; //项目名称",
+"	$1.VerNum = $11; //版本号",
+"	$1.UpdateKind = $12; //更新类型",
+"	$1.UpdateNote = $13; //更新备注",
+"	$1.VerType = $14; //版本类型",
+"	$1.AuditDate = $15; //审核时间",
+"	$1.PublishDate = $16; //发布时间",
+"	$1.SourceFilePath = $17; //资源文件路径",
+"}"
+]
+},
+"获取小程序版本库数量": {
+"prefix": "ym-db-MiniProgramVersions-FindAndCount",
+"body": [
+"int $1 = db.MiniProgramVersions.Count(m => $2);",
+]
+},
+"添加小程序版本库": {
+"prefix": "ym-db-MiniProgramVersions-Create",
+"body": [
+"db.MiniProgramVersions.Add(new MiniProgramVersions()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	UserId = $1, //会员",
+"	AuditId = $2, //审核人",
+"	AuditNote = $3, //审核意见",
+"	UserRealName = $4, //会员姓名",
+"	UserCode = $5, //会员编号",
+"	UserMobile = $6, //会员手机号",
+"	SysAdminName = $7, //审核人名称",
+"	ProjectId = $8, //项目",
+"	ProjectName = $9, //项目名称",
+"	VerNum = $10, //版本号",
+"	UpdateKind = $11, //更新类型",
+"	UpdateNote = $12, //更新备注",
+"	VerType = $13, //版本类型",
+"	AuditDate = $14, //审核时间",
+"	PublishDate = $15, //发布时间",
+"	SourceFilePath = $16, //资源文件路径",
+"});"
+]
+},"删除某个小程序版本库": {
+"prefix": "ym-db-MiniProgramVersions-Delete",
+"body": [
+"MiniProgramVersions $1 = db.MiniProgramVersions.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.MiniProgramVersions.Remove($1);",
+"}"
+]
+},
+"查询单页内容列表": {
+"prefix": "ym-db-PageInfo-Find",
+"body": [
+"List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (PageInfo $3 in $1)",
+"{",
+"}"
+]
+},
+"查询单页内容列表,并取值": {
+"prefix": "ym-db-PageInfo-FindWithData",
+"body": [
+"List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (PageInfo $3 in $1)",
+"{",
+"	string Title = $3.Title; //标题",
+"	string ColId = $3.ColId; //分类",
+"	string Contents = $3.Contents; //内容",
+"}"
+]
+},
+"查询单页内容": {
+"prefix": "ym-db-PageInfo-Exist",
+"body": [
+"bool $1 = db.PageInfo.Any(m => m.Id == $2);",
+]
+},
+"查询某个单页内容,并取值": {
+"prefix": "ym-db-PageInfo-FindByPrimaryKey",
+"body": [
+"PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string Title = $1.Title; //标题",
+"	string ColId = $1.ColId; //分类",
+"	string Contents = $1.Contents; //内容",
+"}"
+]
+},
+"查询某个单页内容,并赋值": {
+"prefix": "ym-db-PageInfo-Update",
+"body": [
+"PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.Title = $2; //标题",
+"	$1.ColId = $3; //分类",
+"	$1.Contents = $4; //内容",
+"}"
+]
+},
+"获取单页内容数量": {
+"prefix": "ym-db-PageInfo-FindAndCount",
+"body": [
+"int $1 = db.PageInfo.Count(m => $2);",
+]
+},
+"添加单页内容": {
+"prefix": "ym-db-PageInfo-Create",
+"body": [
+"db.PageInfo.Add(new PageInfo()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	Title = $1, //标题",
+"	ColId = $2, //分类",
+"	Contents = $3, //内容",
+"});"
+]
+},"删除某个单页内容": {
+"prefix": "ym-db-PageInfo-Delete",
+"body": [
+"PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.PageInfo.Remove($1);",
+"}"
+]
+},
+"查询项目审核记录列表": {
+"prefix": "ym-db-ProjectAuditRecord-Find",
+"body": [
+"List<ProjectAuditRecord> $1 = db.ProjectAuditRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (ProjectAuditRecord $3 in $1)",
+"{",
+"}"
+]
+},
+"查询项目审核记录列表,并取值": {
+"prefix": "ym-db-ProjectAuditRecord-FindWithData",
+"body": [
+"List<ProjectAuditRecord> $1 = db.ProjectAuditRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (ProjectAuditRecord $3 in $1)",
+"{",
+"	int UserId = $3.UserId; //会员",
+"	int AuditId = $3.AuditId; //审核人",
+"	string AuditNote = $3.AuditNote; //审核意见",
+"	string UserRealName = $3.UserRealName; //会员姓名",
+"	string UserCode = $3.UserCode; //会员编号",
+"	string UserMobile = $3.UserMobile; //会员手机号",
+"	string SysAdminName = $3.SysAdminName; //审核人名称",
+"	int ProjectId = $3.ProjectId; //项目",
+"	string ProjectName = $3.ProjectName; //项目名称",
+"}"
+]
+},
+"查询项目审核记录": {
+"prefix": "ym-db-ProjectAuditRecord-Exist",
+"body": [
+"bool $1 = db.ProjectAuditRecord.Any(m => m.Id == $2);",
+]
+},
+"查询某个项目审核记录,并取值": {
+"prefix": "ym-db-ProjectAuditRecord-FindByPrimaryKey",
+"body": [
+"ProjectAuditRecord $1 = db.ProjectAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	int UserId = $1.UserId; //会员",
+"	int AuditId = $1.AuditId; //审核人",
+"	string AuditNote = $1.AuditNote; //审核意见",
+"	string UserRealName = $1.UserRealName; //会员姓名",
+"	string UserCode = $1.UserCode; //会员编号",
+"	string UserMobile = $1.UserMobile; //会员手机号",
+"	string SysAdminName = $1.SysAdminName; //审核人名称",
+"	int ProjectId = $1.ProjectId; //项目",
+"	string ProjectName = $1.ProjectName; //项目名称",
+"}"
+]
+},
+"查询某个项目审核记录,并赋值": {
+"prefix": "ym-db-ProjectAuditRecord-Update",
+"body": [
+"ProjectAuditRecord $1 = db.ProjectAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.UserId = $2; //会员",
+"	$1.AuditId = $3; //审核人",
+"	$1.AuditNote = $4; //审核意见",
+"	$1.UserRealName = $5; //会员姓名",
+"	$1.UserCode = $6; //会员编号",
+"	$1.UserMobile = $7; //会员手机号",
+"	$1.SysAdminName = $8; //审核人名称",
+"	$1.ProjectId = $9; //项目",
+"	$1.ProjectName = $10; //项目名称",
+"}"
+]
+},
+"获取项目审核记录数量": {
+"prefix": "ym-db-ProjectAuditRecord-FindAndCount",
+"body": [
+"int $1 = db.ProjectAuditRecord.Count(m => $2);",
+]
+},
+"添加项目审核记录": {
+"prefix": "ym-db-ProjectAuditRecord-Create",
+"body": [
+"db.ProjectAuditRecord.Add(new ProjectAuditRecord()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	UserId = $1, //会员",
+"	AuditId = $2, //审核人",
+"	AuditNote = $3, //审核意见",
+"	UserRealName = $4, //会员姓名",
+"	UserCode = $5, //会员编号",
+"	UserMobile = $6, //会员手机号",
+"	SysAdminName = $7, //审核人名称",
+"	ProjectId = $8, //项目",
+"	ProjectName = $9, //项目名称",
+"});"
+]
+},"删除某个项目审核记录": {
+"prefix": "ym-db-ProjectAuditRecord-Delete",
+"body": [
+"ProjectAuditRecord $1 = db.ProjectAuditRecord.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.ProjectAuditRecord.Remove($1);",
+"}"
+]
+},
+"查询后台管理员列表": {
+"prefix": "ym-db-SysAdmin-Find",
+"body": [
+"List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SysAdmin $3 in $1)",
+"{",
+"}"
+]
+},
+"查询后台管理员列表,并取值": {
+"prefix": "ym-db-SysAdmin-FindWithData",
+"body": [
+"List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SysAdmin $3 in $1)",
+"{",
+"	string AdminName = $3.AdminName; //用户名",
+"	string Password = $3.Password; //密码",
+"	string RealName = $3.RealName; //名称",
+"	string Role = $3.Role; //角色",
+"	DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
+"}"
+]
+},
+"查询后台管理员": {
+"prefix": "ym-db-SysAdmin-Exist",
+"body": [
+"bool $1 = db.SysAdmin.Any(m => m.Id == $2);",
+]
+},
+"查询某个后台管理员,并取值": {
+"prefix": "ym-db-SysAdmin-FindByPrimaryKey",
+"body": [
+"SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string AdminName = $1.AdminName; //用户名",
+"	string Password = $1.Password; //密码",
+"	string RealName = $1.RealName; //名称",
+"	string Role = $1.Role; //角色",
+"	DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
+"}"
+]
+},
+"查询某个后台管理员,并赋值": {
+"prefix": "ym-db-SysAdmin-Update",
+"body": [
+"SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.AdminName = $2; //用户名",
+"	$1.Password = $3; //密码",
+"	$1.RealName = $4; //名称",
+"	$1.Role = $5; //角色",
+"	$1.LastLoginDate = $6; //最后登录时间",
+"}"
+]
+},
+"获取后台管理员数量": {
+"prefix": "ym-db-SysAdmin-FindAndCount",
+"body": [
+"int $1 = db.SysAdmin.Count(m => $2);",
+]
+},
+"添加后台管理员": {
+"prefix": "ym-db-SysAdmin-Create",
+"body": [
+"db.SysAdmin.Add(new SysAdmin()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	AdminName = $1, //用户名",
+"	Password = $2, //密码",
+"	RealName = $3, //名称",
+"	Role = $4, //角色",
+"	LastLoginDate = $5, //最后登录时间",
+"});"
+]
+},"删除某个后台管理员": {
+"prefix": "ym-db-SysAdmin-Delete",
+"body": [
+"SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.SysAdmin.Remove($1);",
+"}"
+]
+},
+"查询后台管理员角色列表": {
+"prefix": "ym-db-SysAdminRole-Find",
+"body": [
+"List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SysAdminRole $3 in $1)",
+"{",
+"}"
+]
+},
+"查询后台管理员角色列表,并取值": {
+"prefix": "ym-db-SysAdminRole-FindWithData",
+"body": [
+"List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SysAdminRole $3 in $1)",
+"{",
+"	string Name = $3.Name; //名称",
+"	string Details = $3.Details; //描述",
+"	string RightInfo = $3.RightInfo; //权限设置",
+"}"
+]
+},
+"查询后台管理员角色": {
+"prefix": "ym-db-SysAdminRole-Exist",
+"body": [
+"bool $1 = db.SysAdminRole.Any(m => m.Id == $2);",
+]
+},
+"查询某个后台管理员角色,并取值": {
+"prefix": "ym-db-SysAdminRole-FindByPrimaryKey",
+"body": [
+"SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string Name = $1.Name; //名称",
+"	string Details = $1.Details; //描述",
+"	string RightInfo = $1.RightInfo; //权限设置",
+"}"
+]
+},
+"查询某个后台管理员角色,并赋值": {
+"prefix": "ym-db-SysAdminRole-Update",
+"body": [
+"SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.Name = $2; //名称",
+"	$1.Details = $3; //描述",
+"	$1.RightInfo = $4; //权限设置",
+"}"
+]
+},
+"获取后台管理员角色数量": {
+"prefix": "ym-db-SysAdminRole-FindAndCount",
+"body": [
+"int $1 = db.SysAdminRole.Count(m => $2);",
+]
+},
+"添加后台管理员角色": {
+"prefix": "ym-db-SysAdminRole-Create",
+"body": [
+"db.SysAdminRole.Add(new SysAdminRole()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	Name = $1, //名称",
+"	Details = $2, //描述",
+"	RightInfo = $3, //权限设置",
+"});"
+]
+},"删除某个后台管理员角色": {
+"prefix": "ym-db-SysAdminRole-Delete",
+"body": [
+"SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.SysAdminRole.Remove($1);",
+"}"
+]
+},
+"查询系统设置列表": {
+"prefix": "ym-db-SystemSet-Find",
+"body": [
+"List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SystemSet $3 in $1)",
+"{",
+"}"
+]
+},
+"查询系统设置列表,并取值": {
+"prefix": "ym-db-SystemSet-FindWithData",
+"body": [
+"List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
+"foreach (SystemSet $3 in $1)",
+"{",
+"	string WebUrl = $3.WebUrl; //网站地址",
+"	string WebName = $3.WebName; //网站名称",
+"	string IndexKeyword = $3.IndexKeyword; //首页关键词",
+"	string IndexDescription = $3.IndexDescription; //首页简介",
+"	string UploadExt = $3.UploadExt; //允许上传类型",
+"	int UploadMaxSize = $3.UploadMaxSize; //允许最大上传",
+"	ulong UploadAutoZoom = $3.UploadAutoZoom; //自动缩略图",
+"	int UploadAutoZoomWidth = $3.UploadAutoZoomWidth; //自动缩略图宽",
+"	int UploadAutoZoomHeight = $3.UploadAutoZoomHeight; //自动缩略图高",
+"	ulong UploadAutoWater = $3.UploadAutoWater; //自动水印",
+"	string UploadWaterPosition = $3.UploadWaterPosition; //水印位置",
+"	string UploadWaterPath = $3.UploadWaterPath; //水印图片",
+"	string RightInfo = $3.RightInfo; //版权信息",
+"	string Address = $3.Address; //企业地址",
+"	string Phone = $3.Phone; //联系电话",
+"	string WebStatCode = $3.WebStatCode; //网站统计代码",
+"	string Logo = $3.Logo; //Logo图片",
+"}"
+]
+},
+"查询系统设置": {
+"prefix": "ym-db-SystemSet-Exist",
+"body": [
+"bool $1 = db.SystemSet.Any(m => m.Id == $2);",
+]
+},
+"查询某个系统设置,并取值": {
+"prefix": "ym-db-SystemSet-FindByPrimaryKey",
+"body": [
+"SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	string WebUrl = $1.WebUrl; //网站地址",
+"	string WebName = $1.WebName; //网站名称",
+"	string IndexKeyword = $1.IndexKeyword; //首页关键词",
+"	string IndexDescription = $1.IndexDescription; //首页简介",
+"	string UploadExt = $1.UploadExt; //允许上传类型",
+"	int UploadMaxSize = $1.UploadMaxSize; //允许最大上传",
+"	ulong UploadAutoZoom = $1.UploadAutoZoom; //自动缩略图",
+"	int UploadAutoZoomWidth = $1.UploadAutoZoomWidth; //自动缩略图宽",
+"	int UploadAutoZoomHeight = $1.UploadAutoZoomHeight; //自动缩略图高",
+"	ulong UploadAutoWater = $1.UploadAutoWater; //自动水印",
+"	string UploadWaterPosition = $1.UploadWaterPosition; //水印位置",
+"	string UploadWaterPath = $1.UploadWaterPath; //水印图片",
+"	string RightInfo = $1.RightInfo; //版权信息",
+"	string Address = $1.Address; //企业地址",
+"	string Phone = $1.Phone; //联系电话",
+"	string WebStatCode = $1.WebStatCode; //网站统计代码",
+"	string Logo = $1.Logo; //Logo图片",
+"}"
+]
+},
+"查询某个系统设置,并赋值": {
+"prefix": "ym-db-SystemSet-Update",
+"body": [
+"SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	$1.WebUrl = $2; //网站地址",
+"	$1.WebName = $3; //网站名称",
+"	$1.IndexKeyword = $4; //首页关键词",
+"	$1.IndexDescription = $5; //首页简介",
+"	$1.UploadExt = $6; //允许上传类型",
+"	$1.UploadMaxSize = $7; //允许最大上传",
+"	$1.UploadAutoZoom = $8; //自动缩略图",
+"	$1.UploadAutoZoomWidth = $9; //自动缩略图宽",
+"	$1.UploadAutoZoomHeight = $10; //自动缩略图高",
+"	$1.UploadAutoWater = $11; //自动水印",
+"	$1.UploadWaterPosition = $12; //水印位置",
+"	$1.UploadWaterPath = $13; //水印图片",
+"	$1.RightInfo = $14; //版权信息",
+"	$1.Address = $15; //企业地址",
+"	$1.Phone = $16; //联系电话",
+"	$1.WebStatCode = $17; //网站统计代码",
+"	$1.Logo = $18; //Logo图片",
+"}"
+]
+},
+"获取系统设置数量": {
+"prefix": "ym-db-SystemSet-FindAndCount",
+"body": [
+"int $1 = db.SystemSet.Count(m => $2);",
+]
+},
+"添加系统设置": {
+"prefix": "ym-db-SystemSet-Create",
+"body": [
+"db.SystemSet.Add(new SystemSet()",
+"{",
+"	CreateDate = DateTime.Now,",
+"	UpdateDate = DateTime.Now,",
+"	WebUrl = $1, //网站地址",
+"	WebName = $2, //网站名称",
+"	IndexKeyword = $3, //首页关键词",
+"	IndexDescription = $4, //首页简介",
+"	UploadExt = $5, //允许上传类型",
+"	UploadMaxSize = $6, //允许最大上传",
+"	UploadAutoZoom = $7, //自动缩略图",
+"	UploadAutoZoomWidth = $8, //自动缩略图宽",
+"	UploadAutoZoomHeight = $9, //自动缩略图高",
+"	UploadAutoWater = $10, //自动水印",
+"	UploadWaterPosition = $11, //水印位置",
+"	UploadWaterPath = $12, //水印图片",
+"	RightInfo = $13, //版权信息",
+"	Address = $14, //企业地址",
+"	Phone = $15, //联系电话",
+"	WebStatCode = $16, //网站统计代码",
+"	Logo = $17, //Logo图片",
+"});"
+]
+},"删除某个系统设置": {
+"prefix": "ym-db-SystemSet-Delete",
+"body": [
+"SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
+"if ($1 != null)",
+"{",
+"	db.SystemSet.Remove($1);",
+"}"
+]
+},
+}

+ 33 - 0
.vscode/launch.json

@@ -0,0 +1,33 @@
+{
+    // 使用 IntelliSense 了解相关属性。 
+    // 悬停以查看现有属性的描述。
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [{
+            "name": ".NET Core Launch (web)",
+            "type": "coreclr",
+            "request": "launch",
+            "preLaunchTask": "build",
+            "program": "${workspaceFolder}/bin/Debug/netcoreapp3.0/MySystem.dll",
+            "args": [],
+            "cwd": "${workspaceFolder}",
+            "stopAtEntry": false,
+            "serverReadyAction": {
+                "action": "openExternally",
+                "pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
+            },
+            "env": {
+                "ASPNETCORE_ENVIRONMENT": "Development"
+            },
+            "sourceFileMap": {
+                "/Views": "${workspaceFolder}/Views"
+            }
+        },
+        {
+            "name": ".NET Core Attach",
+            "type": "coreclr",
+            "request": "attach",
+            "processId": "${command:pickProcess}"
+        }
+    ]
+}

+ 55 - 0
.vscode/public.code-snippets

@@ -0,0 +1,55 @@
+{
+	// Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and 
+	// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope 
+	// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is 
+	// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: 
+	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. 
+	// Placeholders with the same ids are connected.
+	// Example:
+	// "Print to console": {
+	// 	"scope": "javascript,typescript",
+	// 	"prefix": "log",
+	// 	"body": [
+	// 		"console.log('$1');",
+	// 		"$2"
+	// 	],
+	// 	"description": "Log output to console"
+	// }
+
+	"定义字符字典变量": {
+		"prefix": "dic-string",
+		"body": [
+			"Dictionary<string, string> $1 = new Dictionary<string, string>();",
+		]
+	},
+	"定义对象字典变量": {
+		"prefix": "dic-object",
+		"body": [
+			"Dictionary<string, object> $1 = new Dictionary<string, object>();",
+		]
+	},
+	"定义字符数组": {
+		"prefix": "list-string",
+		"body": [
+			"List<string> $1 = new List<string>();",
+		]
+	},
+	"定义整形数组": {
+		"prefix": "list-int",
+		"body": [
+			"List<int> $1 = new List<int>();",
+		]
+	},
+	"定义字符字典数组": {
+		"prefix": "ld-string",
+		"body": [
+			"List<Dictionary<string, string>> $1 = new List<Dictionary<string, string>>();",
+		]
+	},
+	"定义对象字典数组": {
+		"prefix": "ld-object",
+		"body": [
+			"List<Dictionary<string, object>> $1 = new List<Dictionary<string, object>>();",
+		]
+	}
+}

+ 42 - 0
.vscode/tasks.json

@@ -0,0 +1,42 @@
+{
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "build",
+            "command": "dotnet",
+            "type": "process",
+            "args": [
+                "build",
+                "${workspaceFolder}/MySystem.csproj",
+                "/property:GenerateFullPaths=true",
+                "/consoleloggerparameters:NoSummary"
+            ],
+            "problemMatcher": "$msCompile"
+        },
+        {
+            "label": "publish",
+            "command": "dotnet",
+            "type": "process",
+            "args": [
+                "publish",
+                "${workspaceFolder}/MySystem.csproj",
+                "/property:GenerateFullPaths=true",
+                "/consoleloggerparameters:NoSummary"
+            ],
+            "problemMatcher": "$msCompile"
+        },
+        {
+            "label": "watch",
+            "command": "dotnet",
+            "type": "process",
+            "args": [
+                "watch",
+                "run",
+                "${workspaceFolder}/MySystem.csproj",
+                "/property:GenerateFullPaths=true",
+                "/consoleloggerparameters:NoSummary"
+            ],
+            "problemMatcher": "$msCompile"
+        }
+    ]
+}

BIN
AppStart/.DS_Store


+ 20 - 0
AppStart/StartHelper.cs

@@ -0,0 +1,20 @@
+namespace MySystem
+{
+    public class StartHelper
+    {
+        public readonly static StartHelper Instance = new StartHelper();
+        private StartHelper()
+        {
+        }
+
+        public void Start()//启动
+        {
+            int Environment = Library.ConfigurationManager.EnvironmentFlag; //运行环境(1-开发环境,2-生产环境)
+            if(Environment == 2)
+            {
+                // DefaultHelper.Instance.Start(); //队列程序
+                // ......其他队列程序
+            }
+        }
+    }
+}

+ 28 - 0
AppStart/TemplateViewLocationExpander.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Microsoft.AspNetCore.Mvc.Razor;
+
+namespace MySystem
+{
+    public class TemplateViewLocationExpander : IViewLocationExpander
+    {
+        public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
+        {
+            /// <summary>
+            /// view文件路径
+            /// </summary>
+            /// <value></value>
+            string[] locations = {
+                "/Areas/Admin/Views/Admin/{1}/{0}.cshtml",
+                "/Areas/Admin/Views/Base/{1}/{0}.cshtml",
+            };
+            return locations.Union(viewLocations);
+        }
+
+        public void PopulateValues(ViewLocationExpanderContext context)
+        {
+            context.Values["template"] = context.ActionContext.RouteData.Values["Template"]?.ToString() ?? "Default";
+        }
+    }
+}

BIN
Areas/.DS_Store


BIN
Areas/Api/.DS_Store


BIN
Areas/Api/Controllers/.DS_Store


+ 27 - 0
Areas/Api/Controllers/BaseController.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Linq;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Web;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Http;
+using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Options;
+using Library;
+
+namespace MySystem.Areas.Api.Controllers
+{
+    public class BaseController : Controller
+    {
+        public IHttpContextAccessor _accessor;
+
+        public BaseController(IHttpContextAccessor accessor)
+        {
+            _accessor = accessor;
+        }
+
+    
+    }
+}

+ 250 - 0
Areas/Api/Controllers/PublicMethodController.cs

@@ -0,0 +1,250 @@
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Http;
+using System.DrawingCore.Imaging;
+using System.IO;
+using Library;
+using System.Collections;
+using LitJson;
+using System.Globalization;
+using System.Web;
+
+namespace MySystem.Areas.Api.Controllers
+{
+    [Area("Api")]
+    [Route("Api/[controller]/[action]")]
+    public class PublicMethodController : BaseController
+    {
+        public PublicMethodController(IHttpContextAccessor accessor) : base(accessor)
+        {
+        }
+        #region 图片验证码
+        public FileContentResult CheckCode()
+        {
+            string code = function.get_Random(4);
+            var bitmap = VerifyCodeHelper.GetSingleObj().CreateBitmapByImgVerifyCode(code, 120, 40);
+            MemoryStream stream = new MemoryStream();
+            bitmap.Save(stream, ImageFormat.Gif);
+            function.WriteCookie(_accessor.HttpContext, "checkcode", code);
+            return File(stream.ToArray(), "image/gif");
+        }
+        #endregion
+        
+        #region 图片验证码
+        public FileContentResult PictureCode(string Tag = "")
+        {
+            string code = function.get_Random(4);
+            var bitmap = VerifyCodeHelper.GetSingleObj().CreateBitmapByImgVerifyCode(code, 120, 40);
+            MemoryStream stream = new MemoryStream();
+            bitmap.Save(stream, ImageFormat.Gif);
+            RedisDbconn.Instance.Set(Tag, code);
+            RedisDbconn.Instance.SetExpire(Tag, 600);
+            return File(stream.ToArray(), "image/jpg");
+        }
+        #endregion
+
+
+
+        #region 编辑器上传图片
+
+        public object EditorUpload([FromForm] IFormCollection rf)
+        {
+            //文件保存目录路径
+            String savePath = "/up/v2/";
+
+            //文件保存目录URL
+            String saveUrl = "/up/v2/";
+
+            //定义允许上传的文件扩展名
+            Hashtable extTable = new Hashtable();
+            extTable.Add("image", "gif,jpg,jpeg,png,bmp");
+            extTable.Add("flash", "swf,flv");
+            extTable.Add("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb,mp4");
+            extTable.Add("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2");
+
+            //最大文件大小
+            long maxSize = 1073741824000;
+
+            IFormFile imgFile = rf.Files["imgFile"];
+            if (imgFile == null)
+            {
+                showError("请选择文件。");
+            }
+
+            String dirPath = function.getPath(AppConfig.Oss.PathName + savePath);
+            if (!Directory.Exists(dirPath))
+            {
+                //showError("上传目录不存在。");
+                Directory.CreateDirectory(dirPath);
+            }
+
+            String fileName = imgFile.FileName;
+            String dirName = "";
+            if (String.IsNullOrEmpty(dirName))
+            {
+                if (fileName.ToLower().EndsWith(".mp4") || fileName.ToLower().EndsWith(".mp3"))
+                {
+                    dirName = "media";
+                }
+                else
+                {
+                    dirName = "image";
+                }
+            }
+            if (!extTable.ContainsKey(dirName))
+            {
+                showError("目录名不正确。");
+            }
+
+            String fileExt = Path.GetExtension(fileName).ToLower();
+
+            if (imgFile.Length > maxSize)
+            {
+                showError("上传文件大小超过限制。");
+            }
+
+            if (String.IsNullOrEmpty(fileExt) || Array.IndexOf(((String)extTable[dirName]).Split(','), fileExt.Substring(1).ToLower()) == -1)
+            {
+                showError("上传文件扩展名是不允许的扩展名。\n只允许" + ((String)extTable[dirName]) + "格式。");
+            }
+
+            //创建文件夹
+            dirPath += dirName + "/";
+            saveUrl += dirName + "/";
+            if (!Directory.Exists(dirPath))
+            {
+                Directory.CreateDirectory(dirPath);
+            }
+            String ymd = DateTime.Now.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo);
+            dirPath += ymd + "/";
+            saveUrl += ymd + "/";
+            if (!Directory.Exists(dirPath))
+            {
+                Directory.CreateDirectory(dirPath);
+            }
+            String newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt;
+            String filePath = dirPath + newFileName;
+            using var fs = new FileStream(filePath, FileMode.Create);
+            imgFile.CopyTo(fs);
+            String fileUrl = saveUrl + newFileName;
+            if (dirName != "media")
+            {
+                if (!function.check_pic(filePath))
+                {
+                    System.IO.File.Delete(filePath);
+                    return null;
+                }
+                if (function.getImgRule(filePath)["width"] > 2000)
+                {
+                    String newFileName_sl = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + "_sl" + fileExt;
+                    function.imgcut(2000, filePath, dirPath + newFileName_sl);
+                    System.IO.File.Delete(filePath);
+                    fileUrl = saveUrl + newFileName_sl;
+                }
+            }
+
+            Hashtable hash = new Hashtable();
+            hash["error"] = 0;
+            hash["url"] = AppConfig.Oss.SourceHost + "/" + AppConfig.Oss.PathName + fileUrl;
+            OssHelper.Instance.ScanQueue(fileUrl, "");
+            return JsonMapper.ToJson(hash);
+        }
+
+        private object showError(string message)
+        {
+            Hashtable hash = new Hashtable();
+            hash["error"] = 1;
+            hash["message"] = message;
+            return JsonMapper.ToJson(hash);
+        }
+
+        public bool IsReusable
+        {
+            get
+            {
+                return false;
+            }
+        }
+
+
+
+        #endregion
+
+        #region 系统-上传文件
+
+        public JsonResult UploadFile([FromForm] IFormCollection rf)
+        {
+            IFormFile imgFile = rf.Files["file"];
+            string path = MySystemLib.SystemPublicFuction.GetFilePath(imgFile, AppConfig.Oss.PathName + "/uploadfile/" + DateTime.Now.Year + "/" + DateTime.Now.Month + "/" + DateTime.Now.Day + "/");
+            OssHelper.Instance.ScanQueue(path, "");
+            Dictionary<string, string> obj = new Dictionary<string, string>();
+            obj.Add("FileName", path);
+            return Json(obj);
+        }
+
+        #endregion
+
+        #region 系统-上传图片
+        public JsonResult UploadPhoto([FromForm] IFormCollection rf)
+        {
+            IFormFile imgFile = rf.Files["Icon"];
+            string Icon = MySystemLib.SystemPublicFuction.GetPicPath(imgFile, AppConfig.Oss.PathName + "/upload/" + DateTime.Now.Year + "/" + DateTime.Now.Month + "/" + DateTime.Now.Day + "/");
+            OssHelper.Instance.ScanQueue(Icon, "");
+            return Json(new AppResultJson() { Status = "1", Info = "", Data = Icon });
+        }
+
+        #endregion
+
+        #region 系统-上传图片
+        public JsonResult UploadPhotoByBase64(string value)
+        {
+            value = value.Replace("data:image/png;base64,", "");
+            string base64str = HttpUtility.UrlDecode(value).Replace(" ", "+");
+            string dummyData = base64str.Replace("%", "").Replace(",", "").Replace(" ", "+");
+            if (dummyData.Length % 4 > 0)
+            {
+                dummyData = dummyData.PadRight(dummyData.Length + 4 - dummyData.Length % 4, '=');
+            }
+            string Icon = function.base64StringToImage(dummyData, "/" + AppConfig.Oss.PathName + "/upload/" + DateTime.Now.Year + "/" + DateTime.Now.Month + "/" + DateTime.Now.Day + "/", "MT" + function.MD5_16(Guid.NewGuid().ToString()) + ".png");
+            // OssHelper.Instance.ScanQueue(Icon, "");
+            return Json(new AppResultJson() { Status = "1", Info = "", Data = Icon });
+        }
+        #endregion
+
+        #region 系统-layui上传文件
+        public JsonResult LayUIUpload([FromForm] IFormCollection rf, string Path = "", string Resize = "")
+        {
+            IFormFile imgFile = rf.Files[0];
+            string Icon = MySystemLib.SystemPublicFuction.GetFilePath(imgFile, Path + "/" + DateTime.Now.Year + "/" + DateTime.Now.Month + "/" + DateTime.Now.Day + "/",false);
+            string piccut = "";
+            if (!string.IsNullOrEmpty(Resize) && (imgFile.FileName.ToLower().EndsWith(".png") || imgFile.FileName.EndsWith(".jpg")))
+            {
+                JsonData data = JsonMapper.ToObject(Resize);
+                int width = int.Parse(data["width"].ToString());
+                int height = int.Parse(data["height"].ToString());
+                int quality = int.Parse(data["quality"].ToString());
+                piccut = Icon.Replace(".", "s.");
+                function.imgcut2(width, height, function.getPath(Icon), function.getPath(piccut));
+                System.IO.File.Delete(function.getPath(Icon));
+            }
+            else
+            { 
+                piccut = Icon;
+            }
+            return Json(new AppResultJson() { Status = "1", Info = "", Data = piccut });
+        }
+
+        #endregion
+
+        #region 图片转base64
+
+        public string ImgToBase64(string path)
+        {
+            path = HttpUtility.UrlDecode(path);
+            return function.imageToBase64String(function.getPath(path));
+        }
+
+        #endregion
+    }
+}

+ 114 - 0
Areas/Api/Controllers/SysAdminController.cs

@@ -0,0 +1,114 @@
+/*
+ * 后台管理员
+ */
+
+using System;
+using System.Web;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Http;
+using MySystem.Models.Bs;
+using Library;
+using LitJson;
+using Microsoft.AspNetCore.Authorization;
+using MySystem.Service.Bs;
+
+namespace MySystem.Areas.Api.Controllers.v1
+{
+    [Area("Api")]
+    [Route("Api/v1/[controller]/[action]")]
+    public class SysAdminController : BaseController
+    {
+        public SysAdminController(IHttpContextAccessor accessor) : base(accessor)
+        {
+        }
+
+        #region 登录
+
+        public JsonResult Login(string value)
+        {
+            value = PublicFunction.DesDecrypt(value);
+            JsonData jsonObj = JsonMapper.ToObject(value);
+            string userName = jsonObj["userName"].ToString(); //账号
+            string pwd = jsonObj["pwd"].ToString(); //密码
+            SysAdmin sys = new SysAdminService().Query(userName, function.MD5_32(pwd));
+            if(sys.Id == 0)
+            {
+                return Json(new AppResultJson() { Status = "-1", Info = "账号或密码不正确" });
+            }
+            int RoleId = int.Parse(function.CheckInt(sys.Role));
+            SysAdminRole Role = new SysAdminRoleService().Query(RoleId);
+            string RightInfo = function.CheckNull(Role.RightInfo);
+            Dictionary<string, object> obj = new Dictionary<string, object>(); //返回字段
+            obj.Add("rightList", new AdminRightList().GetRight(sys.Role, RightInfo)); //权限列表
+            obj.Add("apiToken", PublicFunction.AppToken(sys.AdminName)); //后台所有接口API所需的token
+            obj.Add("apiTokenExpiredDate", DateTime.Now.AddDays(10));
+            string token = dbconn.Encrypt3DES(sys.Id.ToString() + "-" + function.ConvertDateTimeInt(DateTime.Now));
+            RefreshTokens check = new RefreshTokensService().Query(sys.Id);
+            if(check.UserId == 0)
+            {
+                Dictionary<string, object> Fields = new Dictionary<string, object>();
+                Fields.Add("UserId", sys.Id);
+                Fields.Add("ExpiredDate", DateTime.Now.AddDays(10));
+                Fields.Add("RefreshToken", token);
+                new RefreshTokensService().Add(Fields);
+            }
+            else
+            {
+                Dictionary<string, object> Fields = new Dictionary<string, object>();
+                Fields.Add("ExpiredDate", DateTime.Now.AddDays(10));
+                Fields.Add("RefreshToken", token);
+                new RefreshTokensService().Edit(Fields, sys.Id);
+            }
+            List<string> roles = new List<string>();
+            roles.Add(sys.Role);
+            obj.Add("roles", roles);
+            obj.Add("realName", sys.RealName);
+            obj.Add("refreshToken", token); //主token,用于刷新apiToken
+            return Json(new AppResultJson() { Status = "1", Info = "", Data = obj });
+        }
+
+        #endregion
+
+        #region 刷新token
+
+        public JsonResult RefreshToken(string value)
+        {
+            value = PublicFunction.DesDecrypt(value);
+            JsonData jsonObj = JsonMapper.ToObject(value);
+            string refreshToken = jsonObj["refreshToken"].ToString(); //账号        
+            Dictionary<string, object> obj = new Dictionary<string, object>(); //返回字段
+            string[] data = dbconn.Decrypt3DES(refreshToken).Split('-');
+            int Id = int.Parse(data[0]);
+            SysAdmin sys = new SysAdminService().Query(Id);
+            if(sys.Id == 0)
+            {
+                return Json(new AppResultJson() { Status = "-1", Info = "刷新失败" });
+            }
+            obj.Add("apiToken", PublicFunction.AppToken(sys.AdminName)); //后台所有接口API所需的token
+            obj.Add("apiTokenExpiredDate", DateTime.Now.AddDays(10));
+            string token = dbconn.Encrypt3DES(sys.Id.ToString() + "-" + function.ConvertDateTimeInt(DateTime.Now));
+            RefreshTokens check = new RefreshTokensService().Query(sys.Id);
+            if(check.UserId == 0)
+            {
+                Dictionary<string, object> Fields = new Dictionary<string, object>();
+                Fields.Add("UserId", sys.Id);
+                Fields.Add("ExpiredDate", DateTime.Now.AddDays(10));
+                Fields.Add("RefreshToken", token);
+                new RefreshTokensService().Add(Fields);
+            }
+            else
+            {
+                Dictionary<string, object> Fields = new Dictionary<string, object>();
+                Fields.Add("ExpiredDate", DateTime.Now.AddDays(10));
+                Fields.Add("RefreshToken", token);
+                new RefreshTokensService().Edit(Fields, sys.Id);
+            }
+            obj.Add("refreshToken", token); //主token,用于刷新apiToken
+            return Json(new AppResultJson() { Status = "1", Info = "", Data = obj });
+        }
+
+        #endregion
+
+    }
+}

+ 18 - 0
Config/Base.cs

@@ -0,0 +1,18 @@
+using System.Collections.Generic;
+using Library;
+
+namespace AppConfig
+{
+    public class Base
+    {
+        public static string ApiKey = "G6H7@J8%";
+        public static string Host = Library.ConfigurationManager.AppSettings["Host"].ToString();
+        public static string Database = Library.ConfigurationManager.AppSettings["Database"].ToString();
+        public static string defaultImage = Library.ConfigurationManager.AppSettings["Host"].ToString() + "/skin/app/default/static/images/default.jpg";
+        #region 数据库结构
+        public static Dictionary<string, Dictionary<string, string>> dbTables = new Dictionary<string, Dictionary<string, string>>();
+        public static Dictionary<string, Dictionary<string, string>> mainTables = new Dictionary<string, Dictionary<string, string>>();
+
+        #endregion
+    }
+}

+ 15 - 0
Config/JwtConfig.cs

@@ -0,0 +1,15 @@
+using Library;
+
+/// <summary>
+/// MySql链接
+/// </summary>
+namespace MySystem
+{
+    public class JwtConfig
+    {
+        public static string JwtSecret = ConfigurationManager.AppSettings["JwtSecret"].ToString();
+        public static string JwtIss = ConfigurationManager.AppSettings["JwtIss"].ToString();
+        public static string JwtAud = ConfigurationManager.AppSettings["JwtAud"].ToString();
+
+    }
+}

+ 22 - 0
Config/Oss.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Threading;
+using System.Linq;
+using System.IO;
+using Aliyun.OSS;
+using Aliyun.OSS.Common;
+using Library;
+using System.Text.RegularExpressions;
+
+namespace AppConfig
+{
+    public class Oss
+    {
+        public static string key = ConfigurationManager.AppSettings["OSSKey"].ToString(); //阿里云AccessKey ID
+        public static string secret = ConfigurationManager.AppSettings["OSSSecret"].ToString();  //阿里云Access Key Secret
+        public static string PathName = ConfigurationManager.AppSettings["Database"].ToString();
+        public static string endpoint = ConfigurationManager.AppSettings["OSSEndpoint"].ToString();  //endpoint
+        public static string bucketName = ConfigurationManager.AppSettings["OSSBucketName"].ToString();
+        public static string SourceHost = "";
+        public static bool OssStatus = true;
+    }
+}

+ 27 - 0
Controllers/HomeController.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.Extensions.Logging;
+using Library;
+using LitJson;
+
+namespace MySystem.Controllers
+{
+    public class HomeController : Controller
+    {
+        private readonly ILogger<HomeController> _logger;
+
+        public HomeController(ILogger<HomeController> logger)
+        {
+            _logger = logger;
+        }
+
+        public IActionResult Index()
+        {
+            return View();
+        }
+    }
+}

BIN
DLL/Aliyun.OSS.dll


BIN
DLL/LitJSON.dll


BIN
DLL/MySystemLib.dll


BIN
DLL/Newtonsoft.Json.dll


BIN
DLL/ThoughtWorks.QRCode.dll


BIN
DLL/aliyun-net-sdk-core.dll


+ 20 - 0
Entity/AdminRightListItem.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+namespace MySystem
+{
+    public class AdminRightListItem
+    {
+        public string path { get; set; }
+        public string name { get; set; }
+        public AdminRightListItemMeta meta { get; set; }
+        public List<AdminRightListItem> children { get; set; }
+    }
+
+    public class AdminRightListItemMeta
+    {
+        public string title { get; set; }
+        public string icon { get; set; }
+        public List<string> roles { get; set; }
+        public List<string> auths { get; set; }
+    }
+}

+ 12 - 0
Entity/AppResultJson.cs

@@ -0,0 +1,12 @@
+using System;
+namespace MySystem
+{
+    public class AppResultJson
+    {
+        public string Info { get; set; }
+        public object Data { get; set; }
+        public object Other { get; set; }
+        public string Status { get; set; }
+        public int Timestamp { get; set; }
+    }
+}

+ 41 - 0
Entity/DbScheme.cs

@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+namespace MySystem
+{
+    public class DbScheme
+    {
+        public int TableId { get; set; }
+        public string TableEnName { get; set; }
+        public string TableName { get; set; }
+        public ulong IsTask { get; set; }
+        public List<DbColumn> Columns { get; set; }
+    }
+
+    public class DbColumn
+    {
+        public int Id { get; set; }
+        public int DatabaseId { get; set; }
+        public int TableId { get; set; }
+        public string ColumnName { get; set; }
+        public string ColumnEnName { get; set; }
+        public string ColumnType { get; set; }
+        public string ColumnLength { get; set; }
+        public string Control { get; set; }
+        public string Col { get; set; }
+        public string ColList { get; set; }
+        public ulong ShowTitle { get; set; }
+        public ulong ShowQuery { get; set; }
+        public ulong ShowEdit { get; set; }
+        public string DataRule { get; set; }
+        public string TabName { get; set; }
+        public string PicRuleNote { get; set; }
+        public ulong IsPrimaryKey { get; set; }
+        public ulong IsExcel { get; set; }
+        public ulong CheckRepeat { get; set; }
+        public string RelationData { get; set; }
+        public int Status { get; set; }
+        public int LinkTableId { get; set; }
+        public int LinkColumnId { get; set; }
+        public ulong IsTask { get; set; }
+    }
+}

+ 12 - 0
Entity/RedisTables/AccountTable.cs

@@ -0,0 +1,12 @@
+using System;
+namespace MySystem
+{
+    public class AccountTable
+    {
+        public int Id { get; set; }
+        public string Detail { get; set; }
+        public DateTime CreateDate { get; set; }
+        public decimal DoMoney { get; set; }
+        public int BrandKind { get; set; }
+    }
+}

+ 9 - 0
Entity/RedisTables/AdminIpList.cs

@@ -0,0 +1,9 @@
+using System;
+namespace MySystem
+{
+    public class AdminIpList
+    {
+        public string Province { get; set; } //省份
+        public int IpCount { get; set; } //ip数
+    }
+}

+ 18 - 0
Entity/RedisTables/UData.cs

@@ -0,0 +1,18 @@
+using System;
+namespace MySystem
+{
+    public class UData
+    {
+        public int TeamActiveCount { get; set; } //团队激活数
+        public int TeamTransactionCount { get; set; } //团队交易笔数
+        public decimal TeamTransactionMoney { get; set; } //团队交易额
+
+
+
+
+        public decimal ProfitMoney { get; set; } //交易分润/分润
+        public decimal ReturnMoney { get; set; } //激活奖励/返现
+        public decimal OtherMoney { get; set; } //活动奖励/其他
+        public decimal TotalMoney { get; set; } //累计分润/累计
+    }
+}

+ 18 - 0
Entity/Setting.cs

@@ -0,0 +1,18 @@
+using System;
+namespace MySystem
+{
+    public class Setting
+    {
+        public string AppKey { get; set; }
+        public string AppId { get; set; }
+        public string CheckUrl { get; set; }
+        public string WebServiceUrl { get; set; }
+        public string ConnectionStrings { get; set; }
+        public string Host { get; set; }
+        public string Database { get; set; }
+        public string OSSKey { get; set; }
+        public string OSSSecret { get; set; }
+        public string OSSEndpoint { get; set; }
+        public string OSSBucketName { get; set; }
+    }
+}

+ 25 - 0
Filter/AuthorizeFilter.cs

@@ -0,0 +1,25 @@
+using System;
+using Library;
+using Microsoft.AspNetCore.Mvc.Filters;
+
+namespace MySystem
+{
+    public class AuthorizeFilter : IAuthorizationFilter
+    {
+        /// <summary>
+        /// 请求验证,当前验证部分不要抛出异常,ExceptionFilter不会处理
+        /// </summary>
+        /// <param name="context"></param>
+        public void OnAuthorization(AuthorizationFilterContext context)
+        {
+        //这里可以做复杂的权限控制操作
+        //if (context.HttpContext.User.Identity.Name != "1") //简单的做一个示范
+        //{
+        // //未通过验证则跳转到无权限提示页
+        // RedirectToActionResult content = new RedirectToActionResult("NoAuth", "Exception", null);
+        // context.Result = content;
+        //
+
+        }
+    }
+}

+ 19 - 0
Filter/GlobalActionFilter.cs

@@ -0,0 +1,19 @@
+using System;
+using Library;
+using Microsoft.AspNetCore.Mvc.Filters;
+
+namespace MySystem
+{
+    public class GlobalActionFilter : IActionFilter
+    {
+        public void OnActionExecuted(ActionExecutedContext context)
+        {
+            //执行方法后执行这
+        }
+
+        public void OnActionExecuting(ActionExecutingContext context)
+        {
+            //执行方法前先执行这
+        }
+    }
+}

+ 16 - 0
Filter/GlobalExceptionsFilter.cs

@@ -0,0 +1,16 @@
+using System;
+using Library;
+using Microsoft.AspNetCore.Mvc.Filters;
+
+namespace MySystem
+{
+    public class GlobalExceptionsFilter : IExceptionFilter
+    {
+        public void OnException(ExceptionContext context)
+        {
+            string Message = context.Exception.Message;
+            string StackTrace = context.Exception.StackTrace;
+            function.WriteLog(DateTime.Now.ToString() + "\r\n" + Message + "\r\n" + StackTrace, "Global全局异常处理日志");
+        }
+    }
+}

+ 19 - 0
Filter/ResourceFilter.cs

@@ -0,0 +1,19 @@
+using System;
+using Library;
+using Microsoft.AspNetCore.Mvc.Filters;
+
+namespace MySystem
+{
+    public class ResourceFilter : Attribute,IResourceFilter
+    {
+        public void OnResourceExecuted(ResourceExecutedContext context)
+        {
+            // 执行完后的操作
+        }
+
+        public void OnResourceExecuting(ResourceExecutingContext context)
+        {
+            // 执行中的过滤器管道
+        }
+    }
+}

+ 19 - 0
Filter/ResultFilter.cs

@@ -0,0 +1,19 @@
+using System;
+using Library;
+using Microsoft.AspNetCore.Mvc.Filters;
+
+namespace MySystem
+{
+    public class ResultFilter : Attribute, IResultFilter
+    {
+        public void OnResultExecuted(ResultExecutedContext context)
+        { 
+            // 在结果执行之后调用的操作...
+        }
+
+        public void OnResultExecuting(ResultExecutingContext context)
+        {
+            // 在结果执行之前调用的一系列操作
+        }
+    }
+}

BIN
Models/.DS_Store


+ 26 - 0
Models/Bs/Advertisment.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class Advertisment
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Url { get; set; }
+        public string Contents { get; set; }
+        public string PicPath { get; set; }
+        public string ColId { get; set; }
+        public string Title { get; set; }
+    }
+}

+ 30 - 0
Models/Bs/Col.cs

@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class Col
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int ParentId { get; set; }
+        public string Url { get; set; }
+        public string Contents { get; set; }
+        public string ColEnName { get; set; }
+        public ulong Recommend { get; set; }
+        public string ColDetail { get; set; }
+        public string ColPicPath { get; set; }
+        public string ColName { get; set; }
+        public string ColId { get; set; }
+    }
+}

+ 11 - 0
Models/Bs/MenuRight.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MenuRight
+    {
+        public string MenuId { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 28 - 0
Models/Bs/MsgBlackList.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgBlackList
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Extend { get; set; }
+        public string Remark { get; set; }
+        public string Reason { get; set; }
+        public string Ip { get; set; }
+        public string Mobile { get; set; }
+        public int TemplateId { get; set; }
+        public string ColId { get; set; }
+    }
+}

+ 34 - 0
Models/Bs/MsgPersonal.cs

@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgPersonal
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Remark { get; set; }
+        public string ExtendColumn { get; set; }
+        public string PushParam { get; set; }
+        public ulong ReadFlag { get; set; }
+        public int PushFlag { get; set; }
+        public string Summary { get; set; }
+        public string Url { get; set; }
+        public string Content { get; set; }
+        public string Title { get; set; }
+        public string BgPic { get; set; }
+        public int MsgType { get; set; }
+        public int UserId { get; set; }
+        public int TemplateId { get; set; }
+    }
+}

+ 37 - 0
Models/Bs/MsgPlacard.cs

@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgPlacard
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Url { get; set; }
+        public string Remark { get; set; }
+        public string ExtendColumn { get; set; }
+        public DateTime? PushTime { get; set; }
+        public string PushParam { get; set; }
+        public int PushFlag { get; set; }
+        public int PushType { get; set; }
+        public string BgPic { get; set; }
+        public DateTime? EffectEndDate { get; set; }
+        public DateTime? EffectStartDate { get; set; }
+        public int ShowType { get; set; }
+        public ulong IsTop { get; set; }
+        public string Content { get; set; }
+        public string Summary { get; set; }
+        public string Title { get; set; }
+        public int MsgType { get; set; }
+    }
+}

+ 25 - 0
Models/Bs/MsgPlacardRead.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgPlacardRead
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Remark { get; set; }
+        public ulong ReadFlag { get; set; }
+        public string UserId { get; set; }
+        public int PlacardId { get; set; }
+    }
+}

+ 31 - 0
Models/Bs/MsgPush.cs

@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgPush
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Mobiles { get; set; }
+        public string MessageId { get; set; }
+        public DateTime? AutoPushDate { get; set; }
+        public int TemplateId { get; set; }
+        public string Devices { get; set; }
+        public ulong IsSilent { get; set; }
+        public string Details { get; set; }
+        public string Title { get; set; }
+        public string Url { get; set; }
+        public string ClientType { get; set; }
+    }
+}

+ 38 - 0
Models/Bs/MsgSms.cs

@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgSms
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int SendStatus { get; set; }
+        public string Kind { get; set; }
+        public int Code { get; set; }
+        public int VerifyStatus { get; set; }
+        public int ErrorNum { get; set; }
+        public string VerifyCode { get; set; }
+        public string RespCode { get; set; }
+        public string RespContent { get; set; }
+        public DateTime? SendTime { get; set; }
+        public string SignName { get; set; }
+        public string Content { get; set; }
+        public int SmsType { get; set; }
+        public int SendType { get; set; }
+        public string Ip { get; set; }
+        public string Mobile { get; set; }
+        public int TemplateId { get; set; }
+        public string ColId { get; set; }
+    }
+}

+ 27 - 0
Models/Bs/MsgSmsSet.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgSmsSet
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Params { get; set; }
+        public string ReqUrl { get; set; }
+        public int SmsType { get; set; }
+        public string AuthPwd { get; set; }
+        public string UserName { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 29 - 0
Models/Bs/MsgTemplate.cs

@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class MsgTemplate
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string SignName { get; set; }
+        public string Extend { get; set; }
+        public string Remark { get; set; }
+        public int MsgType { get; set; }
+        public int TemplateType { get; set; }
+        public string ColId { get; set; }
+        public string Content { get; set; }
+        public string Title { get; set; }
+    }
+}

+ 26 - 0
Models/Bs/OperateLog.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class OperateLog
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string OpMode { get; set; }
+        public string AfterOperate { get; set; }
+        public string BeforeOperate { get; set; }
+        public string OperateMan { get; set; }
+        public string TableEnName { get; set; }
+    }
+}

+ 23 - 0
Models/Bs/OperateRightList.cs

@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class OperateRightList
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string EnName { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 24 - 0
Models/Bs/PageInfo.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class PageInfo
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Contents { get; set; }
+        public string ColId { get; set; }
+        public string Title { get; set; }
+    }
+}

+ 45 - 0
Models/Bs/PublicAccountSet.cs

@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class PublicAccountSet
+    {
+        public int Id { get; set; }
+        public string AliyunAndroidActivity { get; set; }
+        public string AliyunAndroidNotifyTitle { get; set; }
+        public string AliyunRegionId { get; set; }
+        public string SmsApiDefaultTemplate { get; set; }
+        public string SmsApiUserId { get; set; }
+        public string SmsApiSign { get; set; }
+        public string SmsApiPwd { get; set; }
+        public string ErpAppCode { get; set; }
+        public string ErpApiUrl { get; set; }
+        public string MeiQiaAppKey { get; set; }
+        public string MobAppSecret { get; set; }
+        public string MobAppKey { get; set; }
+        public string AliyunPushIosAppSecret { get; set; }
+        public string AliyunPushIosAppId { get; set; }
+        public string AliyunPushAndroidAppSecret { get; set; }
+        public string AliyunPushAndroidAppId { get; set; }
+        public string AliyunAccessKeySecret { get; set; }
+        public string AliyunAccessKeyId { get; set; }
+        public string QqIosAppKey { get; set; }
+        public string QqIosAppId { get; set; }
+        public string QqAndroidAppKey { get; set; }
+        public string QqAndroidAppId { get; set; }
+        public string WeChatMiniAppSecret { get; set; }
+        public string WeChatMiniAppId { get; set; }
+        public string ServerIp { get; set; }
+        public string WeChatOpenAppSecret { get; set; }
+        public string WeChatOpenAppId { get; set; }
+        public string WeChatPayKey { get; set; }
+        public string WeChatMchId { get; set; }
+        public string WeChatAppSecret { get; set; }
+        public string WeChatAppId { get; set; }
+        public string AlipayPublicKey { get; set; }
+        public string AlipayPrivateKey { get; set; }
+        public string AlipayPartnerId { get; set; }
+        public string AlipayAppId { get; set; }
+    }
+}

+ 12 - 0
Models/Bs/RefreshTokens.cs

@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class RefreshTokens
+    {
+        public int UserId { get; set; }
+        public DateTime? ExpiredDate { get; set; }
+        public string RefreshToken { get; set; }
+    }
+}

+ 20 - 0
Models/Bs/RightDic.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class RightDic
+    {
+        public string Id { get; set; }
+        public string Icon { get; set; }
+        public string Name { get; set; }
+        public string Url { get; set; }
+        public int RightLevel { get; set; }
+        public int Sort { get; set; }
+        public ulong MainMenu { get; set; }
+        public ulong MainStat { get; set; }
+        public ulong MainDataList { get; set; }
+        public string OtherRight { get; set; }
+        public string Path { get; set; }
+    }
+}

+ 26 - 0
Models/Bs/SysAdmin.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class SysAdmin
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public DateTime? LastLoginDate { get; set; }
+        public string Role { get; set; }
+        public string RealName { get; set; }
+        public string Password { get; set; }
+        public string AdminName { get; set; }
+    }
+}

+ 24 - 0
Models/Bs/SysAdminRole.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class SysAdminRole
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string RightInfo { get; set; }
+        public string Details { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 13 - 0
Models/Bs/SysLog.cs

@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class SysLog
+    {
+        public int Id { get; set; }
+        public string Contents { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public string CreateMan { get; set; }
+    }
+}

+ 41 - 0
Models/Bs/SystemSet.cs

@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class SystemSet
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string StartAdPhoto { get; set; }
+        public int UploadAutoZoomQuality { get; set; }
+        public ulong UploadOss { get; set; }
+        public string Logo { get; set; }
+        public string WebStatCode { get; set; }
+        public string Phone { get; set; }
+        public string Address { get; set; }
+        public string RightInfo { get; set; }
+        public string UploadWaterPath { get; set; }
+        public string UploadWaterPosition { get; set; }
+        public ulong UploadAutoWater { get; set; }
+        public int UploadAutoZoomHeight { get; set; }
+        public int UploadAutoZoomWidth { get; set; }
+        public ulong UploadAutoZoom { get; set; }
+        public int UploadMaxSize { get; set; }
+        public string UploadExt { get; set; }
+        public string IndexDescription { get; set; }
+        public string IndexKeyword { get; set; }
+        public string WebName { get; set; }
+        public string WebUrl { get; set; }
+    }
+}

+ 26 - 0
Models/Bs/UploadParams.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Bs
+{
+    public partial class UploadParams
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string TableEnName { get; set; }
+        public string ParamString { get; set; }
+        public string ColumnEnName { get; set; }
+        public string ColumnName { get; set; }
+        public string TableName { get; set; }
+    }
+}

+ 1634 - 0
Models/Bs/WebCMSEntities.cs

@@ -0,0 +1,1634 @@
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Metadata;
+
+namespace MySystem.Models.Bs
+{
+    public partial class WebCMSEntities : DbContext
+    {
+        public WebCMSEntities()
+        {
+        }
+
+        public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
+            : base(options)
+        {
+        }
+
+        public virtual DbSet<Advertisment> Advertisment { get; set; }
+        public virtual DbSet<Col> Col { get; set; }
+        public virtual DbSet<MenuRight> MenuRight { get; set; }
+        public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
+        public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
+        public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
+        public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
+        public virtual DbSet<MsgPush> MsgPush { get; set; }
+        public virtual DbSet<MsgSms> MsgSms { get; set; }
+        public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
+        public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
+        public virtual DbSet<OperateLog> OperateLog { get; set; }
+        public virtual DbSet<OperateRightList> OperateRightList { get; set; }
+        public virtual DbSet<PageInfo> PageInfo { get; set; }
+        public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
+        public virtual DbSet<RefreshTokens> RefreshTokens { get; set; }
+        public virtual DbSet<RightDic> RightDic { get; set; }
+        public virtual DbSet<SysAdmin> SysAdmin { get; set; }
+        public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
+        public virtual DbSet<SysLog> SysLog { get; set; }
+        public virtual DbSet<SystemSet> SystemSet { get; set; }
+        public virtual DbSet<UploadParams> UploadParams { get; set; }
+
+        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+        {
+            if (!optionsBuilder.IsConfigured)
+            {
+                optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["BsSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
+            }
+        }
+
+        protected override void OnModelCreating(ModelBuilder modelBuilder)
+        {
+            modelBuilder.Entity<Advertisment>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Contents)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.PicPath)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<Col>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColDetail)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ColEnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ColName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ColPicPath)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Contents)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ParentId).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Recommend)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MenuRight>(entity =>
+            {
+                entity.HasKey(e => e.MenuId)
+                    .HasName("PRIMARY");
+
+                entity.Property(e => e.MenuId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Name)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<MsgBlackList>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Extend)
+                    .HasColumnType("varchar(2000)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Ip)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Mobile)
+                    .HasColumnType("varchar(11)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Reason)
+                    .HasColumnType("varchar(512)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TemplateId).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgPersonal>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.BgPic)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Content)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ExtendColumn)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MsgType).HasColumnType("int(11)");
+
+                entity.Property(e => e.PushFlag).HasColumnType("int(11)");
+
+                entity.Property(e => e.PushParam)
+                    .HasColumnType("varchar(255)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.ReadFlag)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(255)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.Summary)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TemplateId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgPlacard>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.BgPic)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Content)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
+
+                entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
+
+                entity.Property(e => e.ExtendColumn)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IsTop)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.MsgType).HasColumnType("int(11)");
+
+                entity.Property(e => e.PushFlag).HasColumnType("int(11)");
+
+                entity.Property(e => e.PushParam)
+                    .HasColumnType("varchar(255)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.PushTime).HasColumnType("datetime");
+
+                entity.Property(e => e.PushType).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(255)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ShowType).HasColumnType("int(11)");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.Summary)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgPlacardRead>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.PlacardId).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.ReadFlag)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(255)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UserId)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgPush>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
+
+                entity.Property(e => e.ClientType)
+                    .HasColumnType("varchar(20)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Details)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Devices)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IsSilent)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.MessageId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Mobiles)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TemplateId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgSms>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.Code).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Content)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
+
+                entity.Property(e => e.Ip)
+                    .HasColumnType("varchar(15)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Kind)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Mobile)
+                    .HasColumnType("varchar(11)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RespCode)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.RespContent)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SendStatus).HasColumnType("int(11)");
+
+                entity.Property(e => e.SendTime).HasColumnType("datetime");
+
+                entity.Property(e => e.SendType).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SignName)
+                    .HasColumnType("varchar(10)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsType).HasColumnType("int(11)");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TemplateId).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.VerifyCode)
+                    .HasColumnType("varchar(6)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgSmsSet>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AuthPwd)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Name)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Params)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.ReqUrl)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsType).HasColumnType("int(11)");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UserName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<MsgTemplate>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Content)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Extend)
+                    .HasColumnType("varchar(2000)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MsgType).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SignName)
+                    .HasColumnType("varchar(10)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TemplateType).HasColumnType("int(11)");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<OperateLog>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AfterOperate)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BeforeOperate)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.OpMode)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.OperateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TableEnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<OperateRightList>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.EnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Name)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<PageInfo>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Contents)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.Title)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<PublicAccountSet>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AlipayAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AlipayPartnerId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AlipayPrivateKey)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AlipayPublicKey)
+                    .HasColumnType("mediumtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunAccessKeyId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunAccessKeySecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunAndroidActivity)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunAndroidNotifyTitle)
+                    .HasColumnType("varchar(20)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunPushAndroidAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunPushAndroidAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunPushIosAppId)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunPushIosAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AliyunRegionId)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ErpApiUrl)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ErpAppCode)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MeiQiaAppKey)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MobAppKey)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MobAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QqAndroidAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QqAndroidAppKey)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QqIosAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QqIosAppKey)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ServerIp)
+                    .HasColumnType("varchar(15)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsApiDefaultTemplate)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsApiPwd)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsApiSign)
+                    .HasColumnType("varchar(10)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SmsApiUserId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatMchId)
+                    .HasColumnType("varchar(20)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatMiniAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatMiniAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatOpenAppId)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatOpenAppSecret)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WeChatPayKey)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<RefreshTokens>(entity =>
+            {
+                entity.HasKey(e => e.UserId)
+                    .HasName("PRIMARY");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
+
+                entity.Property(e => e.RefreshToken)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<RightDic>(entity =>
+            {
+                entity.Property(e => e.Id)
+                    .HasColumnName("ID")
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Icon)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MainDataList)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.MainMenu)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.MainStat)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.Name)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.OtherRight)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Path)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.RightLevel).HasColumnType("int(11)");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Url)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<SysAdmin>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AdminName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
+
+                entity.Property(e => e.Password)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RealName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Role)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<SysAdminRole>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Details)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Name)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RightInfo)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<SysLog>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.Contents)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<SystemSet>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.Address)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IndexDescription)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IndexKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Logo)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Phone)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RightInfo)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.StartAdPhoto)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UploadAutoWater)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.UploadAutoZoom)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
+
+                entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
+
+                entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
+
+                entity.Property(e => e.UploadExt)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
+
+                entity.Property(e => e.UploadOss)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.UploadWaterPath)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UploadWaterPosition)
+                    .HasColumnType("varchar(15)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+
+                entity.Property(e => e.WebName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WebStatCode)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.WebUrl)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
+            modelBuilder.Entity<UploadParams>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ColumnEnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ColumnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ParamString)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TableEnName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TableName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateMan)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Version).HasColumnType("int(11)");
+            });
+
+            OnModelCreatingPartial(modelBuilder);
+        }
+
+        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
+    }
+}

+ 49 - 0
Models/Main/ActiveReward.cs

@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActiveReward
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int ParentParentUserId { get; set; }
+        public int ParentUserId { get; set; }
+        public int MerUserId { get; set; }
+        public int TopUserId { get; set; }
+        public DateTime? ActDate { get; set; }
+        public string Remark { get; set; }
+        public string City { get; set; }
+        public string Province { get; set; }
+        public string RewardTips { get; set; }
+        public int RewardRef { get; set; }
+        public int SnStoreId { get; set; }
+        public string ActTypeDesc { get; set; }
+        public int ActType { get; set; }
+        public int SnApplyUserId { get; set; }
+        public int SnType { get; set; }
+        public string KqSnNo { get; set; }
+        public string KqMerNo { get; set; }
+        public string MerUserNav { get; set; }
+        public int DirectBuddyNo { get; set; }
+        public string UserNav { get; set; }
+        public int BrandId { get; set; }
+        public decimal RuleRewardAmount { get; set; }
+        public decimal DivideAmount { get; set; }
+        public decimal RewardAmount { get; set; }
+        public int RewardSourceUserId { get; set; }
+        public DateTime? StandardDate { get; set; }
+        public int MerchantId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 26 - 0
Models/Main/ActivityEnrolRecord.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityEnrolRecord
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string EffectEndTime { get; set; }
+        public string EffectStartTime { get; set; }
+        public string EnrolMonth { get; set; }
+        public int UserId { get; set; }
+        public int ActId { get; set; }
+    }
+}

+ 37 - 0
Models/Main/ActivityInfo.cs

@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityInfo
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Remark { get; set; }
+        public string ActContent { get; set; }
+        public string ActBanner { get; set; }
+        public string ActReferUrl { get; set; }
+        public string EnrolEndTime { get; set; }
+        public string EnrolStartTime { get; set; }
+        public DateTime? EnrolEndDate { get; set; }
+        public DateTime? EnrolStartDate { get; set; }
+        public DateTime? EffectEndDate { get; set; }
+        public DateTime? EffectStartDate { get; set; }
+        public int IsTop { get; set; }
+        public string LimitTopBuddy { get; set; }
+        public string BrandId { get; set; }
+        public string ActName { get; set; }
+        public int ActType { get; set; }
+        public string ActCode { get; set; }
+    }
+}

+ 32 - 0
Models/Main/ActivityPrizeDetail.cs

@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityPrizeDetail
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int TopUserId { get; set; }
+        public decimal ProfitRate { get; set; }
+        public decimal ActRewardAmt { get; set; }
+        public decimal CreditTradeAmt { get; set; }
+        public decimal OtherProdCreditTradeAmt { get; set; }
+        public string TradeMonth { get; set; }
+        public int CheckStatus { get; set; }
+        public decimal TradeAmt { get; set; }
+        public int BrandId { get; set; }
+        public int UserId { get; set; }
+        public int ActivityId { get; set; }
+    }
+}

+ 24 - 0
Models/Main/ActivityRedPackageJoins.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityRedPackageJoins
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public decimal PrizeAmt { get; set; }
+        public string ActivityDate { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 24 - 0
Models/Main/ActivityRedPackageStock.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityRedPackageStock
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string ActivityDate { get; set; }
+        public decimal PrizeAmt { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 25 - 0
Models/Main/ActivityRedPackageTop10.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ActivityRedPackageTop10
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int Kind { get; set; }
+        public int TimeNum { get; set; }
+        public decimal PrizeAmt { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 26 - 0
Models/Main/Advertisment.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class Advertisment
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Url { get; set; }
+        public string Contents { get; set; }
+        public string PicPath { get; set; }
+        public string ColId { get; set; }
+        public string Title { get; set; }
+    }
+}

+ 25 - 0
Models/Main/AgentLevelSet.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class AgentLevelSet
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public decimal AreasProfitPercent { get; set; }
+        public ulong LevelDiff { get; set; }
+        public decimal ProfitPercent { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 32 - 0
Models/Main/AppBottomNavs.cs

@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class AppBottomNavs
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string BgColor { get; set; }
+        public string NoPageHint { get; set; }
+        public string PageName { get; set; }
+        public string NormalTextColor { get; set; }
+        public string SelectTextColor { get; set; }
+        public string NormalIcon { get; set; }
+        public string SelectIcon { get; set; }
+        public string Title { get; set; }
+        public string PagPath { get; set; }
+        public string ScrollerAnimationImages { get; set; }
+        public string Style { get; set; }
+    }
+}

+ 28 - 0
Models/Main/AppVersion.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class AppVersion
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string DownloadUrl { get; set; }
+        public string CancelText { get; set; }
+        public string ConfirmText { get; set; }
+        public string Info { get; set; }
+        public string Title { get; set; }
+        public string VersionNum { get; set; }
+        public string TerminalKind { get; set; }
+    }
+}

+ 24 - 0
Models/Main/AppVideo.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class AppVideo
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Remark { get; set; }
+        public string BannerPic { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 26 - 0
Models/Main/AppVideoList.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class AppVideoList
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string BgPic { get; set; }
+        public int VideoId { get; set; }
+        public string Remark { get; set; }
+        public string VideoUrl { get; set; }
+        public string Title { get; set; }
+    }
+}

+ 28 - 0
Models/Main/BackEndOpRecord.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BackEndOpRecord
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Remark { get; set; }
+        public string AfterData { get; set; }
+        public string BeforeData { get; set; }
+        public string TableEnName { get; set; }
+        public string TableChName { get; set; }
+        public string SysRealName { get; set; }
+        public string SysUserName { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public int Version { get; set; }
+    }
+}

+ 26 - 0
Models/Main/BankInfo.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BankInfo
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string BankNameAbbr { get; set; }
+        public string UnitedBankName { get; set; }
+        public string UnitedBankNo { get; set; }
+        public string BankCode { get; set; }
+        public string BankName { get; set; }
+    }
+}

+ 47 - 0
Models/Main/BrokenMachineChange.cs

@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BrokenMachineChange
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string OutStoreManagerMobile { get; set; }
+        public string OutStoreManager { get; set; }
+        public string OutStoreAddress { get; set; }
+        public string OutStoreAreas { get; set; }
+        public string OutStoreName { get; set; }
+        public int OutStoreId { get; set; }
+        public string OutProductName { get; set; }
+        public int OutProductType { get; set; }
+        public int BackStoreUserId { get; set; }
+        public string Remark { get; set; }
+        public string BackStoreName { get; set; }
+        public int BackStoreId { get; set; }
+        public string ChangeSnExpand { get; set; }
+        public string OrderExpand { get; set; }
+        public DateTime? CompleteTime { get; set; }
+        public string AuditRemark { get; set; }
+        public int AuditResult { get; set; }
+        public DateTime? AuditTime { get; set; }
+        public string AuditBy { get; set; }
+        public DateTime? ChangeTime { get; set; }
+        public int ChangeDeviceNum { get; set; }
+        public string ChangeDeviceName { get; set; }
+        public string BackProductName { get; set; }
+        public int BackProductType { get; set; }
+        public int UserId { get; set; }
+        public string ChangeNo { get; set; }
+    }
+}

+ 34 - 0
Models/Main/BrokenMachineChangeDetail.cs

@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BrokenMachineChangeDetail
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int BackSnType { get; set; }
+        public string Remark { get; set; }
+        public int OutSnType { get; set; }
+        public string OutSnNo { get; set; }
+        public string OutProductName { get; set; }
+        public int OutProductType { get; set; }
+        public int BackDeviceStatus { get; set; }
+        public string BackSnNo { get; set; }
+        public int UserId { get; set; }
+        public string BackProductName { get; set; }
+        public int BackProductType { get; set; }
+        public int ChangeId { get; set; }
+        public string ChangeNo { get; set; }
+    }
+}

+ 28 - 0
Models/Main/BusinessActSummary.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BusinessActSummary
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int UserId { get; set; }
+        public string TradeDate { get; set; }
+        public string Remark { get; set; }
+        public int ActCount { get; set; }
+        public int BrandId { get; set; }
+        public string TradeMonth { get; set; }
+        public int PartnerId { get; set; }
+    }
+}

+ 26 - 0
Models/Main/BusinessPartner.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BusinessPartner
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int UserId { get; set; }
+        public decimal ThisMonthTrade { get; set; }
+        public string LoginPassword { get; set; }
+        public string Name { get; set; }
+        public string Mobile { get; set; }
+    }
+}

+ 25 - 0
Models/Main/BusinessPartnerMerchant.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BusinessPartnerMerchant
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string MerNo { get; set; }
+        public int MerchantId { get; set; }
+        public int PartnerId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 25 - 0
Models/Main/BusinessPartnerPos.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BusinessPartnerPos
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string PosSn { get; set; }
+        public int PosId { get; set; }
+        public int PartnerId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 67 - 0
Models/Main/BusinessTradeSummary.cs

@@ -0,0 +1,67 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class BusinessTradeSummary
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int UserId { get; set; }
+        public int PayType { get; set; }
+        public int VipFlag { get; set; }
+        public int TopUserId { get; set; }
+        public decimal HelpNonDirectNonQrDebitTradeAmt { get; set; }
+        public decimal HelpDirectNonQrDebitTradeAmt { get; set; }
+        public decimal HelpNonDirectQrDebitTradeAmt { get; set; }
+        public decimal HelpDirectQrDebitTradeAmt { get; set; }
+        public decimal HelpNonDirectDebitCapNum { get; set; }
+        public decimal HelpNonDirectDebitCapTradeAmt { get; set; }
+        public decimal HelpNonDirectDebitTradeAmt { get; set; }
+        public decimal HelpDirectDebitCapNum { get; set; }
+        public decimal HelpDirectDebitCapTradeAmt { get; set; }
+        public decimal HelpDirectDebitTradeAmt { get; set; }
+        public decimal HelpNonDirectNonQrCreditTradeAmt { get; set; }
+        public decimal HelpDirectNonQrCreditTradeAmt { get; set; }
+        public decimal HelpNonDirectQrCreditTradeAmt { get; set; }
+        public decimal HelpDirectQrCreditTradeAmt { get; set; }
+        public decimal HelpNonDirectCreditTradeAmt { get; set; }
+        public decimal HelpDirectCreditTradeAmt { get; set; }
+        public decimal HelpNonDirectTradeAmt { get; set; }
+        public decimal HelpDirectTradeAmt { get; set; }
+        public decimal NotHelpNonDirectNonQrDebitTradeAmt { get; set; }
+        public decimal NotHelpDirectNonQrDebitTradeAmt { get; set; }
+        public decimal NotHelpNonDirectQrDebitTradeAmt { get; set; }
+        public decimal NotHelpDirectQrDebitTradeAmt { get; set; }
+        public int NotHelpNonDirectDebitCapNum { get; set; }
+        public decimal NotHelpNonDirectDebitCapTradeAmt { get; set; }
+        public decimal NotHelpNonDirectDebitTradeAmt { get; set; }
+        public int NotHelpDirectDebitCapNum { get; set; }
+        public decimal NotHelpDirectDebitCapTradeAmt { get; set; }
+        public decimal NotHelpDirectDebitTradeAmt { get; set; }
+        public decimal NotHelpNonDirectNonQrCreditTradeAmt { get; set; }
+        public decimal NotHelpDirectNonQrCreditTradeAmt { get; set; }
+        public decimal NotHelpNonDirectQrCreditTradeAmt { get; set; }
+        public decimal NotHelpDirectQrCreditTradeAmt { get; set; }
+        public decimal NotHelpNonDirectCreditTradeAmt { get; set; }
+        public decimal NotHelpDirectCreditTradeAmt { get; set; }
+        public decimal NotHelpNonDirectTradeAmt { get; set; }
+        public decimal NotHelpDirectTradeAmt { get; set; }
+        public string MgrName { get; set; }
+        public string MgrNo { get; set; }
+        public int BrandId { get; set; }
+        public string TradeMonth { get; set; }
+        public string TradeDate { get; set; }
+        public int PartnerId { get; set; }
+    }
+}

+ 37 - 0
Models/Main/Col.cs

@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class Col
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string ClassName { get; set; }
+        public string ColEnNav { get; set; }
+        public int ParentId { get; set; }
+        public int ListPageCount { get; set; }
+        public string DetailTempM { get; set; }
+        public string ListTempM { get; set; }
+        public string DetailTemp { get; set; }
+        public string ListTemp { get; set; }
+        public string Url { get; set; }
+        public string Contents { get; set; }
+        public string ColEnName { get; set; }
+        public ulong Recommend { get; set; }
+        public string ColDetail { get; set; }
+        public string ColPicPath { get; set; }
+        public string ColName { get; set; }
+        public string ColId { get; set; }
+    }
+}

+ 11 - 0
Models/Main/ConsumerOpenIds.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ConsumerOpenIds
+    {
+        public string OpenId { get; set; }
+        public int ConsumerId { get; set; }
+    }
+}

+ 11 - 0
Models/Main/ConsumerOrderForNo.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ConsumerOrderForNo
+    {
+        public string OrderNo { get; set; }
+        public int OrderIds { get; set; }
+    }
+}

+ 31 - 0
Models/Main/ConsumerOrders.cs

@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ConsumerOrders
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public decimal CurDivi { get; set; }
+        public decimal MaxDivi { get; set; }
+        public string SnNo { get; set; }
+        public decimal ReturnMoney { get; set; }
+        public decimal PayMoney { get; set; }
+        public int PayMode { get; set; }
+        public string OrderNo { get; set; }
+        public int ConsumerId { get; set; }
+        public int MerchantId { get; set; }
+        public ulong IsAct { get; set; }
+    }
+}

+ 25 - 0
Models/Main/ConsumerProfit.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ConsumerProfit
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int OrderId { get; set; }
+        public decimal GetMoney { get; set; }
+        public int MerchantId { get; set; }
+        public int ConsumerId { get; set; }
+    }
+}

+ 36 - 0
Models/Main/Consumers.cs

@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class Consumers
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string WechatOpenId { get; set; }
+        public ulong CardFlag { get; set; }
+        public ulong AlipayFlag { get; set; }
+        public ulong WeChatPayFlag { get; set; }
+        public DateTime? LastConsumDate { get; set; }
+        public int TotalConsumCount { get; set; }
+        public decimal TotalAmount { get; set; }
+        public string AlipayUserId { get; set; }
+        public string WechatUnionid { get; set; }
+        public int CurIntgegral { get; set; }
+        public int TotalIntegral { get; set; }
+        public decimal TotalDividend { get; set; }
+        public string Mobile { get; set; }
+        public string HeadPhoto { get; set; }
+        public string NickName { get; set; }
+    }
+}

+ 33 - 0
Models/Main/CouponAssignRecords.cs

@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class CouponAssignRecords
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string CouponIds { get; set; }
+        public string Mobile { get; set; }
+        public string Areas { get; set; }
+        public string UserGroupId { get; set; }
+        public decimal CurMoneyMax { get; set; }
+        public decimal CurMoneyMin { get; set; }
+        public decimal TotalUseIntegralMax { get; set; }
+        public decimal TotalUseIntegralMin { get; set; }
+        public decimal TotalOrderMoneyMax { get; set; }
+        public decimal TotalOrderMoneyMin { get; set; }
+        public int UserMaxLevel { get; set; }
+        public int UserMinLevel { get; set; }
+    }
+}

+ 48 - 0
Models/Main/Coupons.cs

@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class Coupons
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public DateTime? ExpireEndDate { get; set; }
+        public DateTime? ExpireStartDate { get; set; }
+        public decimal FullReduceData { get; set; }
+        public decimal FullReduceMoney { get; set; }
+        public ulong AndPromotion { get; set; }
+        public ulong IsSuperpose { get; set; }
+        public int PublicMaxByDay { get; set; }
+        public int PublicMax { get; set; }
+        public DateTime? PublicEndDate { get; set; }
+        public DateTime? PublicStartDate { get; set; }
+        public ulong IsReUse { get; set; }
+        public string RepeatCondition { get; set; }
+        public int RepeatType { get; set; }
+        public ulong IsRepeat { get; set; }
+        public DateTime? UseEndDate { get; set; }
+        public DateTime? UseStartDate { get; set; }
+        public int UserMinLevel { get; set; }
+        public int UserMaxLevel { get; set; }
+        public string ProductId { get; set; }
+        public string ProductColId { get; set; }
+        public string MerchantId { get; set; }
+        public int Kind { get; set; }
+        public decimal Stock { get; set; }
+        public ulong IsPublic { get; set; }
+        public ulong IsNewUser { get; set; }
+        public string Explanation { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 26 - 0
Models/Main/CouponsForUser.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class CouponsForUser
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public DateTime? UseDate { get; set; }
+        public ulong IsLock { get; set; }
+        public ulong IsUse { get; set; }
+        public int CouponId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 24 - 0
Models/Main/CustomTagSet.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class CustomTagSet
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Contents { get; set; }
+        public string Title { get; set; }
+        public string Tags { get; set; }
+    }
+}

+ 24 - 0
Models/Main/ErpCompanys.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class ErpCompanys
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string Phone { get; set; }
+        public string Code { get; set; }
+        public string Name { get; set; }
+    }
+}

+ 24 - 0
Models/Main/FileUpdateInfo.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class FileUpdateInfo
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string FileName { get; set; }
+        public string Path { get; set; }
+        public int VersionNum { get; set; }
+    }
+}

+ 43 - 0
Models/Main/FluxProfitDetail.cs

@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class FluxProfitDetail
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int MerUserType { get; set; }
+        public int TopUserId { get; set; }
+        public int BrandId { get; set; }
+        public string Remark { get; set; }
+        public string PosType { get; set; }
+        public decimal FluxProfitAmt { get; set; }
+        public string FluxEndDate { get; set; }
+        public string FluxStartDate { get; set; }
+        public decimal FluxFeeAmt { get; set; }
+        public decimal TradeAmt { get; set; }
+        public string TradeOrderNo { get; set; }
+        public string FluxOrderNo { get; set; }
+        public int ProfitType { get; set; }
+        public string SnNo { get; set; }
+        public string MerNo { get; set; }
+        public int MerchantUserId { get; set; }
+        public int MerchantId { get; set; }
+        public int UserId { get; set; }
+        public string TradeMonth { get; set; }
+        public string TradeTime { get; set; }
+        public string TradeDate { get; set; }
+        public string RecordNo { get; set; }
+    }
+}

+ 30 - 0
Models/Main/FluxProfitSummary.cs

@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class FluxProfitSummary
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int BrandId { get; set; }
+        public string Remark { get; set; }
+        public int CheckStatus { get; set; }
+        public int FluxTradeNum { get; set; }
+        public decimal FluxProfitAmt { get; set; }
+        public int MerUserType { get; set; }
+        public string TradeMonth { get; set; }
+        public int TopUserId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 33 - 0
Models/Main/HelpProfitAccountRecord.cs

@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class HelpProfitAccountRecord
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public int Version { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string CreateMan { get; set; }
+        public string UpdateMan { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string TransRecordNo { get; set; }
+        public string Remark { get; set; }
+        public decimal AfterBalanceAmount { get; set; }
+        public decimal BeforeBalanceAmount { get; set; }
+        public decimal AfterFreezeAmount { get; set; }
+        public decimal BeforeFreezeAmount { get; set; }
+        public decimal AfterTotalAmount { get; set; }
+        public decimal BeforeTotalAmount { get; set; }
+        public decimal ChangeAmount { get; set; }
+        public int ProductType { get; set; }
+        public int ChangeType { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 23 - 0
Models/Main/HelpProfitAmountSummary.cs

@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models.Main
+{
+    public partial class HelpProfitAmountSummary
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public decimal TradeAmount { get; set; }
+        public decimal MaxAmount { get; set; }
+        public int MerCount { get; set; }
+        public string TradeMonth { get; set; }
+        public int UserId { get; set; }
+    }
+}

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor