ResultCode.java 649 B

1234567891011121314151617181920212223242526272829303132
  1. package com.simuwang.base.common.enums;
  2. import lombok.Generated;
  3. /**
  4. * FileName: ResultCode
  5. * Author: chenjianhua
  6. * Date: 2024/9/9 15:00
  7. * Description: ${DESCRIPTION}
  8. */
  9. public enum ResultCode {
  10. CONNECT_SUCCESS(20000, "链接成功"),
  11. CONNECT_ERROR(20005, "连接失败,请检查账号及协议相关信息");
  12. private final int code;
  13. private final String msg;
  14. private ResultCode(int code, String msg) {
  15. this.code = code;
  16. this.msg = msg;
  17. }
  18. @Generated
  19. public int getCode() {
  20. return this.code;
  21. }
  22. @Generated
  23. public String getMsg() {
  24. return this.msg;
  25. }
  26. }