package com.ecep.contract.ds.other.repository;

import java.util.Optional;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.Department;

/**
 * 部门 Repository
 */
@Lazy
@Repository
public interface DepartmentRepository extends MyRepository<Department, Integer> {
    Optional<Department> findByName(String name);

    Optional<Department> findByCode(String code);
}