package io.modules.item.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import cn.hutool.core.util.StrUtil;
import io.common.service.impl.CrudServiceImpl;
import io.modules.item.dao.WallDao;
import io.modules.item.dto.WallDTO;
import io.modules.item.entity.WallEntity;
import io.modules.item.service.WallService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 吐槽墙
 *
 * @author Mark #
 * @since 1.0.0 2024-12-12
 */
@Service
public class WallServiceImpl extends CrudServiceImpl<WallDao, WallEntity, WallDTO> implements WallService {

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

        QueryWrapper<WallEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}
