move models to the model package

This commit is contained in:
Lee 2024-04-08 06:28:43 +01:00
parent 1773ec7d9c
commit 0cd8db32fd
10 changed files with 20 additions and 20 deletions

@ -1,8 +1,8 @@
package cc.fascinated.controller;
import cc.fascinated.service.player.model.Player;
import cc.fascinated.service.player.model.Skin;
import cc.fascinated.service.player.PlayerService;
import cc.fascinated.model.player.Player;
import cc.fascinated.model.player.Skin;
import cc.fascinated.service.PlayerService;
import cc.fascinated.util.PlayerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.CacheControl;

@ -1,8 +1,8 @@
package cc.fascinated.service.mojang.model;
package cc.fascinated.model.mojang;
import cc.fascinated.Main;
import cc.fascinated.service.player.model.Cape;
import cc.fascinated.service.player.model.Skin;
import cc.fascinated.model.player.Cape;
import cc.fascinated.model.player.Skin;
import cc.fascinated.util.Tuple;
import cc.fascinated.util.UUIDUtils;
import com.google.gson.JsonObject;
@ -16,6 +16,7 @@ import java.util.List;
@Getter @NoArgsConstructor
public class MojangProfile {
/**
* The UUID of the player.
*/

@ -1,4 +1,4 @@
package cc.fascinated.service.mojang.model;
package cc.fascinated.model.mojang;
import lombok.Getter;
import lombok.NoArgsConstructor;

@ -1,4 +1,4 @@
package cc.fascinated.service.player.model;
package cc.fascinated.model.player;
import com.google.gson.JsonObject;
import lombok.AllArgsConstructor;

@ -1,6 +1,6 @@
package cc.fascinated.service.player.model;
package cc.fascinated.model.player;
import cc.fascinated.service.mojang.model.MojangProfile;
import cc.fascinated.model.mojang.MojangProfile;
import cc.fascinated.util.Tuple;
import cc.fascinated.util.UUIDUtils;
import lombok.Getter;

@ -1,4 +1,4 @@
package cc.fascinated.service.player.model;
package cc.fascinated.model.player;
import cc.fascinated.config.Config;
import com.fasterxml.jackson.annotation.JsonProperty;

@ -1,7 +1,7 @@
package cc.fascinated.service.mojang;
package cc.fascinated.service;
import cc.fascinated.service.mojang.model.MojangProfile;
import cc.fascinated.service.mojang.model.MojangUsernameToUuid;
import cc.fascinated.model.mojang.MojangProfile;
import cc.fascinated.model.mojang.MojangUsernameToUuid;
import cc.fascinated.util.WebRequest;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;

@ -1,9 +1,8 @@
package cc.fascinated.service.player;
package cc.fascinated.service;
import cc.fascinated.service.player.model.Player;
import cc.fascinated.service.mojang.MojangAPIService;
import cc.fascinated.service.mojang.model.MojangProfile;
import cc.fascinated.service.mojang.model.MojangUsernameToUuid;
import cc.fascinated.model.player.Player;
import cc.fascinated.model.mojang.MojangProfile;
import cc.fascinated.model.mojang.MojangUsernameToUuid;
import cc.fascinated.util.UUIDUtils;
import lombok.extern.log4j.Log4j2;
import net.jodah.expiringmap.ExpirationPolicy;

@ -1,7 +1,7 @@
package cc.fascinated.util;
import cc.fascinated.Main;
import cc.fascinated.service.player.model.Skin;
import cc.fascinated.model.player.Skin;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.SneakyThrows;
import lombok.experimental.UtilityClass;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB