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; package cc.fascinated.controller;
import cc.fascinated.service.player.model.Player; import cc.fascinated.model.player.Player;
import cc.fascinated.service.player.model.Skin; import cc.fascinated.model.player.Skin;
import cc.fascinated.service.player.PlayerService; import cc.fascinated.service.PlayerService;
import cc.fascinated.util.PlayerUtils; import cc.fascinated.util.PlayerUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.CacheControl; 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.Main;
import cc.fascinated.service.player.model.Cape; import cc.fascinated.model.player.Cape;
import cc.fascinated.service.player.model.Skin; import cc.fascinated.model.player.Skin;
import cc.fascinated.util.Tuple; import cc.fascinated.util.Tuple;
import cc.fascinated.util.UUIDUtils; import cc.fascinated.util.UUIDUtils;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
@ -16,6 +16,7 @@ import java.util.List;
@Getter @NoArgsConstructor @Getter @NoArgsConstructor
public class MojangProfile { public class MojangProfile {
/** /**
* The UUID of the player. * 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.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;

@ -1,4 +1,4 @@
package cc.fascinated.service.player.model; package cc.fascinated.model.player;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import lombok.AllArgsConstructor; 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.Tuple;
import cc.fascinated.util.UUIDUtils; import cc.fascinated.util.UUIDUtils;
import lombok.Getter; import lombok.Getter;

@ -1,4 +1,4 @@
package cc.fascinated.service.player.model; package cc.fascinated.model.player;
import cc.fascinated.config.Config; import cc.fascinated.config.Config;
import com.fasterxml.jackson.annotation.JsonProperty; 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.model.mojang.MojangProfile;
import cc.fascinated.service.mojang.model.MojangUsernameToUuid; import cc.fascinated.model.mojang.MojangUsernameToUuid;
import cc.fascinated.util.WebRequest; import cc.fascinated.util.WebRequest;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value; 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.model.player.Player;
import cc.fascinated.service.mojang.MojangAPIService; import cc.fascinated.model.mojang.MojangProfile;
import cc.fascinated.service.mojang.model.MojangProfile; import cc.fascinated.model.mojang.MojangUsernameToUuid;
import cc.fascinated.service.mojang.model.MojangUsernameToUuid;
import cc.fascinated.util.UUIDUtils; import cc.fascinated.util.UUIDUtils;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import net.jodah.expiringmap.ExpirationPolicy; import net.jodah.expiringmap.ExpirationPolicy;

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB