瀏覽代碼

add login result for deploy system

arthur.wu 1 年之前
父節點
當前提交
dc03c936fd
共有 2 個文件被更改,包括 30 次插入1 次删除
  1. 29 0
      src/Enum/DeployPlatEnum.cs
  2. 1 1
      src/Interface/IDeployPlatformService.cs

+ 29 - 0
src/Enum/DeployPlatEnum.cs

@@ -20,4 +20,33 @@ namespace WingInterfaceLibrary.Enum
 
 
     }
+
+    /// <summary>
+    /// 课程考试类型 
+    /// </summary>
+    /// <enumDocFirstDirectory>枚举代码</enumDocFirstDirectory>
+    /// <remarks>名称|代码|描述</remarks>
+    public enum DeployPlatLoginResultEnum
+    {
+        /// <summary>
+        ///Ok|0| 登录成功
+        /// </summary>
+        Ok,
+        /// <summary>
+        ///WrongAccountName|1| 用户名错误
+        /// </summary>
+        WrongAccountName,
+        /// <summary>
+        ///WrongPassword|2| 密码错误
+        /// </summary>
+        WrongPassword,
+        /// <summary>
+        ///AccountInActive|3| 用户未激活
+        /// </summary>
+        AccountInActive,
+        /// <summary>
+        ///Unknown|4| 未知异常
+        /// </summary>
+        Unknown,
+    }
 }

+ 1 - 1
src/Interface/IDeployPlatformService.cs

@@ -94,7 +94,7 @@ namespace WingInterfaceLibrary.Interface
         /// 登录
         /// </summary>
         /// <returns></returns>
-        Task<bool> LoginAsync(OperatorLoginRequest request);
+        Task<DeployPlatLoginResultEnum> LoginAsync(OperatorLoginRequest request);
 
         /// <summary>
         /// 根据url和前缀获取编译包数据