Skip to content

Commit

Permalink
feat:新增SSEResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
citmina committed Oct 18, 2023
1 parent c118d49 commit 7c5e7f0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/com/gearwenxin/entity/response/SSEResponse.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.gearwenxin.entity.response;

import lombok.Data;

@Data
public class SSEResponse {

private String content;

@Override
public String toString() {
return "data: " + content + "\n\n";
}

}

0 comments on commit 7c5e7f0

Please sign in to comment.