package org.qinan.safetyeval.client.api;

import org.qinan.safetyeval.client.co.OrgPositionCO;
import org.qinan.safetyeval.client.dto.PageResponse;
import org.qinan.safetyeval.client.dto.SingleResponse;
import org.qinan.safetyeval.client.dto.OrgPositionAddCmd;
import org.qinan.safetyeval.client.dto.OrgPositionModifyCmd;
import org.qinan.safetyeval.client.dto.OrgPositionPageQuery;

/**
 * 岗位接口定义（Client层）
 *
 * @author safety-eval
 */
public interface OrgPositionApi {

    SingleResponse<OrgPositionCO> add(OrgPositionAddCmd cmd);

    SingleResponse<OrgPositionCO> get(Long id);

    SingleResponse<OrgPositionCO> modify(OrgPositionModifyCmd cmd);

    SingleResponse<Void> delete(Long id);

    PageResponse<OrgPositionCO> page(OrgPositionPageQuery query);
}
