package com.smppw.modaq.common.enums; import lombok.Generated; /** * FileName: ResultCode * Author: chenjianhua * Date: 2024/9/9 15:00 * Description: ${DESCRIPTION} */ public enum ResultCode { CONNECT_SUCCESS(20000, "链接成功"), CONNECT_ERROR(20005, "连接失败,请检查账号及协议相关信息"), SEND_SUCCESS(200, "邮件发送成功"); private final int code; private final String msg; private ResultCode(int code, String msg) { this.code = code; this.msg = msg; } @Generated public int getCode() { return this.code; } @Generated public String getMsg() { return this.msg; } }