package com.zcloud.personnel.positioning.service;

import com.alibaba.cola.dto.PageResponse;
import com.zcloud.personnel.positioning.api.PositionPersonServiceI;
import com.zcloud.personnel.positioning.command.query.PositionPersonQueryExe;
import com.zcloud.personnel.positioning.dto.PositionPersonPageQry;
import com.zcloud.personnel.positioning.dto.clientobject.PositionPersonCO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class PositionPersonServiceImpl implements PositionPersonServiceI {
    private final PositionPersonQueryExe positionPersonQueryExe;

    @Override
    public PageResponse<PositionPersonCO> list(PositionPersonPageQry qry) {
        return positionPersonQueryExe.list(qry);
    }

    @Override
    public PositionPersonCO queryByUserId(Long userId) {
        return positionPersonQueryExe.queryByUserId(userId);
    }
}
