using System;

namespace ObjectModel.Club
{
    public static class FieldChangeType
    {
        public const int None = 0; // 没有执行任何操作
        public const int AddOrSub = 1; // 更新
        public const int Set = 2; // 设置
    }
    
    [Serializable]
    public class FieldChangeLog
    {
        /// <summary>
        /// 变更类型
        /// </summary>
        public int ChangeType;

        /// <summary>
        /// 字段名称
        /// </summary>
        public string FieldName;
        
        /// <summary>
        /// 变更值
        /// </summary>
        public string Value;

        public FieldChangeLog(int changeType, string fieldName, string value)
        {
            ChangeType = changeType;
            FieldName = fieldName;
            Value = value;
        }
    }
}