using System; using System.Linq; using System.Text; using SqlSugar; namespace QYZH.InteractiveMagazine.Models.Entity { /// ///勋章获取规则配置表 /// [SugarTable("MedalRule")] public partial class MedalRule : SqlSugarBaseEntity { /// /// Desc:关联的勋章ID /// Default: /// Nullable:False /// public long MedalId {get;set;} /// /// Desc:目标表名(如:JournalPageTask、UserAction等) /// Default: /// Nullable:False /// public string TargetTable {get;set;} /// /// Desc:目标字段名(如:TotalScore、LoginDays等) /// Default: /// Nullable:False /// public string TargetField {get;set;} /// /// Desc:比较运算符: >=, >, =, <=, < /// Default:>= /// Nullable:False /// public string Operator {get;set;} /// /// Desc:阈值数量 /// Default: /// Nullable:False /// public int ThresholdValue {get;set;} /// /// Desc:额外筛选条件(JSON格式,如:{"Type": 1, "Status": 2}) /// Default: /// Nullable:True /// public string FilterCondition {get;set;} /// /// Desc:时间范围类型: All/CurrentMonth/CurrentWeek/Last7Days/Custom /// Default: /// Nullable:True /// public string DateRangeType {get;set;} /// /// Desc:自定义起始时间 /// Default: /// Nullable:True /// public DateTime? DateRangeStart {get;set;} /// /// Desc:自定义结束时间 /// Default: /// Nullable:True /// public DateTime? DateRangeEnd {get;set;} /// /// Desc:多规则间的逻辑关系: AND/OR /// Default:AND /// Nullable:False /// public string LogicOperator {get;set;} /// /// Desc:规则执行顺序(多个规则时生效) /// Default:0 /// Nullable:False /// public int RuleOrder {get;set;} /// /// Desc:规则说明 /// Default: /// Nullable:True /// public string Description {get;set;} } }