package tech.glinfo.enbao.modules.sh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tech.glinfo.enbao.common.utils.R;
import tech.glinfo.enbao.modules.sh.dao.OtherShFamilyMemberDao;
import tech.glinfo.enbao.modules.sh.entity.ShFamilyMemberEntity;
import tech.glinfo.enbao.modules.sh.service.OtherShFamilyMemberService;

import java.util.List;
import java.util.Map;


@Service("otherShFamilyMemberService")
public class OtherShFamilyMemberServiceImpl extends ServiceImpl<OtherShFamilyMemberDao, ShFamilyMemberEntity> implements OtherShFamilyMemberService {

    @Override
    public R list(Integer userId) {
        List<Map<String, Object>> list = this.baseMapper.list(userId);

        return R.ok().put("list", list);
    }

}