ConfigFromDbModels.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. using Dapper;
  2. using Microsoft.Extensions.Logging;
  3. using Newtonsoft.Json;
  4. using Senparc.Weixin.Annotations;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using Wicture.DbRESTFul.Infrastructure.Repository;
  9. namespace JiaZhiQuan.Common.Config
  10. {
  11. public interface IConfigFromDbJsonModel
  12. {
  13. }
  14. public class MPStatisticWarningConfigItemValue
  15. {
  16. /// <summary>
  17. /// 多少小时内
  18. /// </summary>
  19. public int hours { get; set; }
  20. /// <summary>
  21. /// 达到多大值需要预警
  22. /// </summary>
  23. public int max { get; set; }
  24. }
  25. public class MPStatisticWarningConfigItem
  26. {
  27. /// <summary>
  28. /// 有效阅读
  29. /// </summary>
  30. public MPStatisticWarningConfigItemValue read { get; set; }
  31. /// <summary>
  32. /// 点赞
  33. /// </summary>
  34. public MPStatisticWarningConfigItemValue thumbsup { get; set; }
  35. /// <summary>
  36. /// 收藏
  37. /// </summary>
  38. public MPStatisticWarningConfigItemValue collection { get; set; }
  39. /// <summary>
  40. /// 评论
  41. /// </summary>
  42. public MPStatisticWarningConfigItemValue comment { get; set; }
  43. /// <summary>
  44. /// 分享
  45. /// </summary>
  46. public MPStatisticWarningConfigItemValue share { get; set; }
  47. /// <summary>
  48. /// 有效总计阅读量
  49. /// </summary>
  50. public MPStatisticWarningConfigItemValue totalRead { get; set; }
  51. }
  52. public class MPStatisticWarningConfig : IConfigFromDbJsonModel
  53. {
  54. public MPStatisticWarningConfigItem diary { get; set; }
  55. public MPStatisticWarningConfigItem standpoint { get; set; }
  56. }
  57. public class PlatformShopConfig : IConfigFromDbJsonModel
  58. {
  59. public string shopId { get; set; }
  60. public long userId { get; set; }
  61. }
  62. public class HuiFuCommonConfig: IConfigFromDbJsonModel {
  63. //商户号
  64. public string sys_id { get; set; }
  65. //产品号
  66. public string product_id { get; set; }
  67. //私钥
  68. public string app_secret_key { get; set;}
  69. //商户公钥
  70. public string app_pub_key { get; set;}
  71. //汇付公钥
  72. public string huifu_pub_key { get; set; }
  73. public bool isDev { get; set; }
  74. }
  75. public class InvitationAlarm : IConfigFromDbJsonModel
  76. {
  77. /// <summary>
  78. /// 分钟数,合作方多少分钟内,邀请达到多少人
  79. /// </summary>
  80. public int PartnerTime { get; set; }
  81. /// <summary>
  82. /// 人数,合作方多少分钟内,邀请达到多少人
  83. /// </summary>
  84. public int PartnerCount { get; set; }
  85. /// <summary>
  86. /// 分钟数,普通用户多少分钟内,邀请达到多少人
  87. /// </summary>
  88. public int UserTime { get; set; }
  89. /// <summary>
  90. /// 人数,普通用户多少分钟内,邀请达到多少人
  91. /// </summary>
  92. public int UserCount { get; set; }
  93. }
  94. public class InvitationPosterParams : IConfigFromDbJsonModel
  95. {
  96. public InvitationPosterParamsBackgroundImage BackgroundImage { get; set; }
  97. public InvitationPosterParamsHeadImage HeadImage { get; set; }
  98. public InvitationPosterParamsHeadImage QRImage { get; set; }
  99. public List<InvitationPosterParamsText> Texts { get; set; }
  100. }
  101. public class InvitationPosterParamsBackgroundImage
  102. {
  103. public string FileName { get; set; }
  104. }
  105. public class InvitationPosterParamsHeadImage
  106. {
  107. public int X { get; set; }
  108. public int Y { get; set; }
  109. public bool Fillet { get; set; }
  110. public int Width { get; set; }
  111. public int Height { get; set; }
  112. }
  113. public class InvitationPosterParamsText
  114. {
  115. public string Key { get; set; }
  116. public string Text { get; set; }
  117. public int X { get; set; }
  118. public int Y { get; set; }
  119. public int FontSize { get; set; }
  120. public string FamilyName { get; set; }
  121. public string Color { get; set; }
  122. }
  123. /// <summary>
  124. /// App首页自定义Tab项
  125. /// </summary>
  126. public class AppIndexCusTabItem
  127. {
  128. public int category { get; set; }
  129. public string type { get; set; }
  130. public string label { get; set; }
  131. public string activeImg { get; set; }
  132. public string deactiveImg { get; set; }
  133. public string data { get; set; }
  134. }
  135. }