package org.qinan.safetyeval.domain.gateway;

import org.qinan.safetyeval.domain.entity.AccountEntity;
import org.qinan.safetyeval.domain.query.AccountQuery;
import org.qinan.safetyeval.domain.query.PageResult;

/**
 * 用户Gateway接口（Domain层定义）
 *
 * @author safety-eval
 */
public interface AccountGateway {

    AccountEntity save(AccountEntity entity);

    AccountEntity get(Long id);

    AccountEntity getByAccount(String account);

    AccountEntity modify(AccountEntity entity);

    void delete(Long id);

    PageResult<AccountEntity> page(AccountQuery query);
}
