Explorar el Código

add login result for deploy system

arthur.wu hace 1 año
padre
commit
dc03c936fd
Se han modificado 2 ficheros con 30 adiciones y 1 borrados
  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和前缀获取编译包数据