package com.contract.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.contract.entity.CoinExt;
import com.contract.mapper.CoinExtMapper;
import com.contract.service.CoinExtService;
import org.springframework.stereotype.Service;

@Service
public class CoinExtServiceImpl extends ServiceImpl<CoinExtMapper, CoinExt>
        implements CoinExtService {

    @Override
    public CoinExt getBySymbol(String symbol) {
        return getOne(new LambdaQueryWrapper<CoinExt>()
                .eq(CoinExt::getSymbol, symbol));
    }
}
