This commit is contained in:
Chenx221 2023-06-02 13:31:38 +08:00
parent 4a286b0c17
commit dfb6c67a5a
2 changed files with 30 additions and 0 deletions

View File

@ -1,4 +1,21 @@
package cyou.chenx221.dao;
import cyou.chenx221.modal.Score;
import java.util.List;
public interface ScoreDao {
void addScore(Score score);
void updateScore(Score score);
void deleteScore(int scoreId);
Score getScoreById(int scoreId);
List<Score> getScoresByStudentId(int studentId);
List<Score> getScoresByCourse(String course);
List<Score> getAllScores();
}

View File

@ -1,4 +1,17 @@
package cyou.chenx221.dao;
import cyou.chenx221.modal.Student;
import java.util.List;
public interface StudentDao {
void addStudent(Student student);
void updateStudent(Student student);
void deleteStudent(int studentId);
Student getStudentById(int studentId);
List<Student> getAllStudents();
}