package org.qinan.safetyeval.domain.gateway;

import org.qinan.safetyeval.domain.entity.OrgPersonnelEntity;
import org.qinan.safetyeval.domain.query.OrgPersonnelQuery;
import org.qinan.safetyeval.domain.query.PageResult;

/**
 * 人员信息Gateway接口（Domain层定义）
 *
 * @author safety-eval
 */
public interface OrgPersonnelGateway {

    OrgPersonnelEntity save(OrgPersonnelEntity entity);

    OrgPersonnelEntity get(Long id);

    OrgPersonnelEntity getByAccount(String account);

    OrgPersonnelEntity findByUserName(String userName);

    OrgPersonnelEntity modify(OrgPersonnelEntity entity);

    void delete(Long id);

    PageResult<OrgPersonnelEntity> page(OrgPersonnelQuery query);
}
