forked from Cookies_Github_mirror/AquaDX
[api] Add screenshot function
This commit is contained in:
@@ -3,8 +3,14 @@ package icu.samnyan.aqua.sega.diva.dao.userdata;
|
||||
import icu.samnyan.aqua.sega.diva.model.userdata.PlayerScreenShot;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public interface PlayerScreenShotRepository extends JpaRepository<PlayerScreenShot, Long> {
|
||||
List<PlayerScreenShot> findByPdId_PdId(int pdId);
|
||||
Optional<PlayerScreenShot> findByFileName(String fileName);
|
||||
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ public class PlayerPvCustomize implements Serializable {
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "pd_id")
|
||||
@JsonIgnore
|
||||
private PlayerProfile pdId;
|
||||
|
||||
@Column(name = "pv_id")
|
||||
|
||||
Reference in New Issue
Block a user