package cn.teammodel.dao;
import cn.teammodel.model.entity.Evaluation;
import com.azure.cosmos.models.PartitionKey;
import com.azure.spring.data.cosmos.repository.CosmosRepository;
import org.springframework.stereotype.Repository;
/**
* @author winter
* @create 2023-11-20 14:39
* Page findByLastname(String lastname, Pageable pageable);
* Slice findByLastname(String lastname, Pageable pageable);
* Window findTop10ByLastname(String lastname, ScrollPosition position, Sort sort);
* List findByLastname(String lastname, Sort sort);
* List findByLastname(String lastname, Sort sort, Limit limit);
* List findByLastname(String lastname, Pageable pageable);
*/
@Repository
public interface EvaluationRepository extends CosmosRepository {
Evaluation findBySchoolId(String schoolId, PartitionKey partitionKey);
Evaluation findBySchoolIdAndPeriodId(String schoolId,String periodId, PartitionKey partitionKey);
}