package com.YuyeTech.TPlat.service.impl;

import com.YuyeTech.TPlat.dataobject.VersionCode;
import com.YuyeTech.TPlat.repository.VersionCodeRepository;
import com.YuyeTech.TPlat.service.VersionCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:slambb
 * @date:2021/2/23
 */
@Service
public class VersionCodeServiceImpl implements VersionCodeService {


    @Autowired
    private VersionCodeRepository versionCodeRepository;

    @Override
    public VersionCode findByCode(String code) {
        return versionCodeRepository.findByCode(code).orElse(null);

    }
}
