package com.changhu.module.miniProgram.service.impl;

import com.changhu.common.utils.UserUtil;
import com.changhu.module.management.mapper.ServiceProjectMapper;
import com.changhu.module.miniProgram.pojo.vo.IndexServiceProjectListVo;
import com.changhu.module.miniProgram.service.MPoliceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 20252
 * @createTime 2024/9/11 上午10:53
 * @desc MPoliceServiceImpl...
 */
@Service
public class MPoliceServiceImpl implements MPoliceService {

    @Autowired
    private ServiceProjectMapper serviceProjectMapper;

    @Override
    public List<IndexServiceProjectListVo> getUnitServiceProjectList() {
        return serviceProjectMapper.getServiceProjectList(UserUtil.getUnitId(), null);
    }
}
