32 lines
733 B
Java
32 lines
733 B
Java
package com.stktrk.app.domain.profile;
|
|
|
|
import com.stktrk.app.domain.profile.types.Profile;
|
|
import jakarta.annotation.Nonnull;
|
|
import lombok.AllArgsConstructor;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
@Service
|
|
@AllArgsConstructor
|
|
public class ProfileService {
|
|
@Nonnull private final ProfileRepository profileRepository;
|
|
|
|
@Nonnull
|
|
public List<?> findAll() {
|
|
return profileRepository.findAll ();
|
|
}
|
|
|
|
public void addProfile (@Nonnull Profile profile) {
|
|
profileRepository.addProfile (profile);
|
|
}
|
|
|
|
public void createFakeProfile() {
|
|
profileRepository.createFakeProfile();
|
|
}
|
|
|
|
public void deleteAll() {
|
|
profileRepository.deleteAll();
|
|
}
|
|
}
|