李昊 4 years ago
parent
commit
f9f0695db8

+ 6 - 0
gx_api/GxPress/Model/GxPress.Entity/User.cs

@@ -150,6 +150,12 @@ namespace GxPress.Entity
         [DataColumn]
         public bool IsDisable { get; set; }
         /// <summary>
+        /// 禁用时间
+        /// </summary>
+        /// <value></value>
+        [DataColumn]
+        public DateTime DisableTiem { get; set; }
+        /// <summary>
         /// 微信唯一标示码
         /// </summary>
         /// <value></value>

+ 5 - 0
gx_api/GxPress/Model/GxPress.Request/User/UserRequest.cs

@@ -142,6 +142,11 @@ namespace GxPress.Request.User
 
         public int IsDisable { get; set; }
         /// <summary>
+        /// 禁用到期时间
+        /// </summary>
+        /// <value></value>
+        public string DisableTiem { get; set; }
+        /// <summary>
         /// 微信唯一标示码
         /// </summary>
         /// <value></value>

+ 2 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -405,6 +405,8 @@ namespace GxPress.Repository.Implement
                 user.IsFreeze = request.IsFreeze == 1;
             if (request.IsVip > 0)
                 user.IsVip = request.IsVip == 1;
+            if (!string.IsNullOrWhiteSpace(request.DisableTiem))
+                user.DisableTiem = Convert.ToDateTime(request.DisableTiem);
             return await UpdateAsync(user);
         }