package com.copy.trade.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.copy.trade.dao.FollowConfigMapper;
import com.copy.trade.entity.po.FollowConfig;
import com.copy.trade.service.IFollowConfigService;

/**
 * <p>
 * 标签表 服务实现类
 * </p>
 *
 * @author wz
 * @since 2022-11-12
 */
@Service
public class FollowConfigServiceImpl extends ServiceImpl<FollowConfigMapper, FollowConfig>
		implements IFollowConfigService {

	@Override
	public FollowConfig getConfig(String configNameEn) {
		QueryWrapper<FollowConfig> followConfigQueryWrapper = new QueryWrapper<>();
		followConfigQueryWrapper.eq("config_name_en", configNameEn);
		return getOne(followConfigQueryWrapper);
	}

}
