From ffe6d20c587d5edd870a895b94f364af69bce61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B8=D1=84=D0=B0=D1=82=20=D0=97=D0=B0=D0=BA=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2?= Date: Mon, 8 Dec 2025 12:06:06 +0000 Subject: [PATCH] Update src/main/java/com/example/nto/service/EmployeeService.java --- .../com/example/nto/service/EmployeeService.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/nto/service/EmployeeService.java b/src/main/java/com/example/nto/service/EmployeeService.java index cccd209..b799f1c 100644 --- a/src/main/java/com/example/nto/service/EmployeeService.java +++ b/src/main/java/com/example/nto/service/EmployeeService.java @@ -1,10 +1,13 @@ package com.example.nto.service; -/** - * TODO: ДОРАБОТАТЬ в рамках задания - * ================================= - * МОЖНО: Добавлять методы, аннотации, зависимости - * НЕЛЬЗЯ: Изменять название класса и пакета - */ +import com.example.nto.entity.Employee; + +import java.util.Optional; + + public interface EmployeeService { + + boolean existsByCode(String code); + + Optional findByCode(String code); }