1.13.1原版
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package run.halo.moments;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* Stats of moment.
|
||||
*
|
||||
* @author LIlGG
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Value
|
||||
@Builder
|
||||
public class Stats {
|
||||
|
||||
Integer upvote;
|
||||
|
||||
Integer totalComment;
|
||||
|
||||
Integer approvedComment;
|
||||
|
||||
public static Stats empty() {
|
||||
return Stats.builder()
|
||||
.upvote(0)
|
||||
.totalComment(0)
|
||||
.approvedComment(0)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user