This commit is contained in:
1
2025-09-23 15:08:12 +00:00
8 changed files with 57 additions and 32 deletions

View File

@@ -61,6 +61,11 @@ type PetEX struct {
}
type PetS struct {
Pet
Data []PetInfo `orm:"data" dc:"资源规格"`
}
func LastFourElements[T any](s []T) []T {
n := len(s)
if n <= 4 {