SseResponseEnum.java 566 B

12345678910111213141516171819202122232425
  1. package com.backendsys.modules.sse.entity;
  2. public enum SseResponseEnum {
  3. CONNECT("connect", "建立连接"),
  4. DISCONNECT("disconnect", "断开连接"),
  5. NOTICE("notice", "通知"),
  6. UPLOAD("upload", "上传"),
  7. DEEPSEEK("deepseek", "Deepseek");
  8. private String type;
  9. private String message;
  10. public String getType() {
  11. return this.type;
  12. }
  13. public String getMessage() {
  14. return this.message;
  15. }
  16. SseResponseEnum(String type, String message) {
  17. this.type = type;
  18. this.message = message;
  19. }
  20. }