-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
801 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
src/main/java/io/github/doocs/im/model/request/ClearGroupMsgRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package io.github.doocs.im.model.request; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 清空群聊历史消息-请求参数 | ||
* | ||
* @author bingo | ||
* @since 2024/1/10 10:25 | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ClearGroupMsgRequest extends GenericRequest implements Serializable { | ||
private static final long serialVersionUID = 1822917977659354031L; | ||
@JsonProperty("GroupId") | ||
private String groupId; | ||
|
||
@JsonProperty("MsgSeq") | ||
private Long msgSeq; | ||
|
||
public ClearGroupMsgRequest() { | ||
} | ||
|
||
public ClearGroupMsgRequest(String groupId) { | ||
this.groupId = groupId; | ||
} | ||
|
||
public ClearGroupMsgRequest(String groupId, Long msgSeq) { | ||
this.groupId = groupId; | ||
this.msgSeq = msgSeq; | ||
} | ||
|
||
private ClearGroupMsgRequest(Builder builder) { | ||
this.groupId = builder.groupId; | ||
this.msgSeq = builder.msgSeq; | ||
} | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public String getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public void setGroupId(String groupId) { | ||
this.groupId = groupId; | ||
} | ||
|
||
public Long getMsgSeq() { | ||
return msgSeq; | ||
} | ||
|
||
public void setMsgSeq(Long msgSeq) { | ||
this.msgSeq = msgSeq; | ||
} | ||
|
||
|
||
public static final class Builder { | ||
private String groupId; | ||
private Long msgSeq; | ||
|
||
private Builder() { | ||
} | ||
|
||
public ClearGroupMsgRequest build() { | ||
return new ClearGroupMsgRequest(this); | ||
} | ||
|
||
public Builder groupId(String groupId) { | ||
this.groupId = groupId; | ||
return this; | ||
} | ||
|
||
public Builder msgSeq(Long msgSeq) { | ||
this.msgSeq = msgSeq; | ||
return this; | ||
} | ||
} | ||
} |
Oops, something went wrong.