ResultCode.java 692 B

123456789101112131415161718192021222324252627282930313233
  1. package com.smppw.modaq.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. SEND_SUCCESS(200, "邮件发送成功");
  13. private final int code;
  14. private final String msg;
  15. private ResultCode(int code, String msg) {
  16. this.code = code;
  17. this.msg = msg;
  18. }
  19. @Generated
  20. public int getCode() {
  21. return this.code;
  22. }
  23. @Generated
  24. public String getMsg() {
  25. return this.msg;
  26. }
  27. }