CodeEnum.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2019-2020 Zheng Jie
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package easydo.technology.utils.enums;
  17. import lombok.AllArgsConstructor;
  18. import lombok.Getter;
  19. /**
  20. * <p>
  21. * 验证码业务场景对应的 Redis 中的 key
  22. * </p>
  23. * @author Zheng Jie
  24. * @date 2020-05-02
  25. */
  26. @Getter
  27. @AllArgsConstructor
  28. public enum CodeEnum {
  29. /* 通过手机号码重置邮箱 */
  30. PHONE_RESET_EMAIL_CODE("phone_reset_email_code_", "通过手机号码重置邮箱"),
  31. /* 通过旧邮箱重置邮箱 */
  32. EMAIL_RESET_EMAIL_CODE("email_reset_email_code_", "通过旧邮箱重置邮箱"),
  33. /* 通过手机号码重置密码 */
  34. PHONE_RESET_PWD_CODE("phone_reset_pwd_code_", "通过手机号码重置密码"),
  35. /* 通过邮箱重置密码 */
  36. EMAIL_RESET_PWD_CODE("email_reset_pwd_code_", "通过邮箱重置密码");
  37. private final String key;
  38. private final String description;
  39. }