删除无用文件
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
package com.example.springdemo.service;
|
||||
|
||||
import com.example.springdemo.entities.Indent;
|
||||
|
||||
public interface IndentService {
|
||||
Indent addIndent(Indent indent);
|
||||
|
||||
void deleteIndentById(Long id);
|
||||
|
||||
Indent updateIndent(Indent indent);
|
||||
|
||||
Iterable<Indent> findAllIndents();
|
||||
}
|
@@ -1,32 +0,0 @@
|
||||
package com.example.springdemo.service;
|
||||
|
||||
import com.example.springdemo.dao.IndentRepository;
|
||||
import com.example.springdemo.entities.Indent;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class IndentServiceImpl implements IndentService{
|
||||
@Resource
|
||||
private IndentRepository indentRepository;
|
||||
|
||||
@Override
|
||||
public Indent addIndent(Indent indent) {
|
||||
return indentRepository.save(indent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteIndentById(Long id) {
|
||||
indentRepository.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Indent updateIndent(Indent indent) {
|
||||
return indentRepository.save(indent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<Indent> findAllIndents() {
|
||||
return indentRepository.findAll();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user