派生自 projectDept/qhighschool

yn147
2023-05-24 74e042960cc73002795ae5aa88ada1c31094d682
src/main/java/com/qxueyou/scc/base/model/ApiResult.java
@@ -1,25 +1,25 @@
package com.qxueyou.scc.base.model;
/**
 * api专用返回结果model
 * api专用返回结果model
 * @author cyq
 *
 */
public class ApiResult {
   
   /**
    * 返回结果的枚举
    * 返回结果的枚举
    * @author cyq
    *
    */
   public enum ResultCode {
      Success(1),                  // 成功
      UserNotExist(40001),         // 用户不存在
      PasswordInvalid(40002),         // 密码不正确
      TokenInvalid(50001),         // Token无效
      ParamInvalid(60001),         // 参数无效
      SystemException(60002),         // 系统异常
      DataNotExist(60003);         // 数据不存在
      Success(1),                  // 成功
      UserNotExist(40001),         // 用户不存在
      PasswordInvalid(40002),         // 密码不正确
      TokenInvalid(50001),         // Token无效
      ParamInvalid(60001),         // 参数无效
      SystemException(60002),         // 系统异常
      DataNotExist(60003);         // 数据不存在
      
      private Integer resultCode;
@@ -36,12 +36,12 @@
   private boolean result;
   
   /**
    * 40001用户不存在
    * 40002密码错误
    * 50001token无效
    * 60001参数错误
    * 60001系统异常
    * 60003数据不存在
    * 40001用户不存在
    * 40002密码错误
    * 50001token无效
    * 60001参数错误
    * 60001系统异常
    * 60003数据不存在
    */
   private int code = 1;