add: 周年纪念日

This commit is contained in:
jsh
2025-10-12 14:08:16 +08:00
parent ef224aa546
commit fa278dec01
8 changed files with 63 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
package com.dota.nexus.entity;
import com.dota.nexus.entity.vo.AnniversaryRecord;
import com.dota.nexus.entity.vo.AnniversaryVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
@@ -8,7 +10,9 @@ import java.time.LocalDate;
@Data
@EqualsAndHashCode(callSuper = true)
public class Anniversary extends Entity{
private String name;
private LocalDate date;
private type;
private AnniversaryEnum type;
}

View File

@@ -0,0 +1,4 @@
package com.dota.nexus.entity.vo;
public record AnniversaryRecord(String name, String date, int distance) {
}

View File

@@ -0,0 +1,6 @@
package com.dota.nexus.entity.vo;
import java.util.List;
public record AnniversaryVO (List<AnniversaryRecord> anniversaryList, List<AnniversaryRecord> commemorationList){
}