package com.ruoyi.info.management.api.impl;

import org.springframework.stereotype.Service;

import com.ruoyi.common.utils.BeanCopyUtils;
import com.ruoyi.info.management.api.ManagementTeacherApi;
import com.ruoyi.info.management.domain.vo.ManagementTeacherVo;
import com.ruoyi.info.management.dto.ManagementTeacherDto;
import com.ruoyi.info.management.service.IManagementTeacherService;

import lombok.RequiredArgsConstructor;

/**
 * @author fucheng.bai
 * @date 2025/10/9
 */
@RequiredArgsConstructor
@Service
public class ManagementTeacherApiImpl implements ManagementTeacherApi {

    private final IManagementTeacherService managementTeacherService;

    @Override
    public ManagementTeacherDto getByPhoneNumber(String mobile, boolean isEnable) {
        ManagementTeacherVo managementTeacherVo = managementTeacherService.getByPhoneNumber(mobile, isEnable);
        return BeanCopyUtils.copy(managementTeacherVo, ManagementTeacherDto.class);
    }
}
