using Dapper; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Senparc.Weixin.Annotations; using System; using System.Collections.Generic; using System.Linq; using Wicture.DbRESTFul.Infrastructure.Repository; namespace JiaZhiQuan.Common.Config { public interface IConfigFromDbJsonModel { } public class MPStatisticWarningConfigItemValue { /// /// 多少小时内 /// public int hours { get; set; } /// /// 达到多大值需要预警 /// public int max { get; set; } } public class MPStatisticWarningConfigItem { /// /// 有效阅读 /// public MPStatisticWarningConfigItemValue read { get; set; } /// /// 点赞 /// public MPStatisticWarningConfigItemValue thumbsup { get; set; } /// /// 收藏 /// public MPStatisticWarningConfigItemValue collection { get; set; } /// /// 评论 /// public MPStatisticWarningConfigItemValue comment { get; set; } /// /// 分享 /// public MPStatisticWarningConfigItemValue share { get; set; } /// /// 有效总计阅读量 /// public MPStatisticWarningConfigItemValue totalRead { get; set; } } public class MPStatisticWarningConfig : IConfigFromDbJsonModel { public MPStatisticWarningConfigItem diary { get; set; } public MPStatisticWarningConfigItem standpoint { get; set; } } public class PlatformShopConfig : IConfigFromDbJsonModel { public string shopId { get; set; } public long userId { get; set; } } public class HuiFuCommonConfig: IConfigFromDbJsonModel { //商户号 public string sys_id { get; set; } //产品号 public string product_id { get; set; } //私钥 public string app_secret_key { get; set;} //商户公钥 public string app_pub_key { get; set;} //汇付公钥 public string huifu_pub_key { get; set; } public bool isDev { get; set; } } public class InvitationAlarm : IConfigFromDbJsonModel { /// /// 分钟数,合作方多少分钟内,邀请达到多少人 /// public int PartnerTime { get; set; } /// /// 人数,合作方多少分钟内,邀请达到多少人 /// public int PartnerCount { get; set; } /// /// 分钟数,普通用户多少分钟内,邀请达到多少人 /// public int UserTime { get; set; } /// /// 人数,普通用户多少分钟内,邀请达到多少人 /// public int UserCount { get; set; } } public class InvitationPosterParams : IConfigFromDbJsonModel { public InvitationPosterParamsBackgroundImage BackgroundImage { get; set; } public InvitationPosterParamsHeadImage HeadImage { get; set; } public InvitationPosterParamsHeadImage QRImage { get; set; } public List Texts { get; set; } } public class InvitationPosterParamsBackgroundImage { public string FileName { get; set; } } public class InvitationPosterParamsHeadImage { public int X { get; set; } public int Y { get; set; } public bool Fillet { get; set; } public int Width { get; set; } public int Height { get; set; } } public class InvitationPosterParamsText { public string Key { get; set; } public string Text { get; set; } public int X { get; set; } public int Y { get; set; } public int FontSize { get; set; } public string FamilyName { get; set; } public string Color { get; set; } } /// /// App首页自定义Tab项 /// public class AppIndexCusTabItem { public int category { get; set; } public string type { get; set; } public string label { get; set; } public string activeImg { get; set; } public string deactiveImg { get; set; } public string data { get; set; } } }