package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.entity.RdSmsTestEntity;
import io.renren.common.service.impl.CrudServiceImpl;

import io.renren.dao.RdSmsTestDao;
import io.renren.dto.RdSmsTestDTO;
import io.renren.service.RdSmsTestService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 测试手机号码
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2022-06-12
 */
@Service
public class RdSmsTestServiceImpl extends CrudServiceImpl<RdSmsTestDao, RdSmsTestEntity, RdSmsTestDTO> implements RdSmsTestService {

    @Override
    public QueryWrapper<RdSmsTestEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<RdSmsTestEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}