backend-demo-tn/src/main/java/com/cubetiqs/demo/service/UserServiceImpl.java

23 lines
693 B
Java
Raw Normal View History

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
}
}