2020-06-16 19:19:26 +07:00
|
|
|
package com.cubetiqs.demo.service;
|
|
|
|
|
|
|
|
import com.cubetiqs.demo.domain.UserEntity;
|
2020-06-17 17:54:21 +07:00
|
|
|
import com.cubetiqs.demo.repository.BaseRepository;
|
2020-06-16 19:19:26 +07:00
|
|
|
import com.cubetiqs.demo.repository.UserRepository;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
@Service
|
2020-06-17 17:54:21 +07:00
|
|
|
public class UserServiceImpl extends BaseServiceImpl<UserEntity, Long> implements UserService {
|
2020-06-16 19:19:26 +07:00
|
|
|
private final UserRepository userRepository;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
public UserServiceImpl(UserRepository userRepository) {
|
|
|
|
this.userRepository = userRepository;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-06-17 17:54:21 +07:00
|
|
|
public BaseRepository<UserEntity, Long> getRepository() {
|
|
|
|
return userRepository;
|
2020-06-16 19:19:26 +07:00
|
|
|
}
|
|
|
|
}
|