package org.qinan.safetyeval.domain.service;

import org.qinan.safetyeval.domain.entity.QualFilingReviewEntity;
import org.qinan.safetyeval.domain.gateway.QualFilingReviewGateway;
import org.qinan.safetyeval.domain.query.PageResult;
import org.qinan.safetyeval.domain.query.QualFilingReviewQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 资质审核记录领域服务
 *
 * @author safety-eval
 */
@Service
public class QualFilingReviewDomainService {

    @Resource
    private QualFilingReviewGateway qualFilingReviewGateway;

    public QualFilingReviewEntity add(QualFilingReviewEntity entity) {
        return qualFilingReviewGateway.save(entity);
    }

    public QualFilingReviewEntity get(Long id) {
        return qualFilingReviewGateway.get(id);
    }

    public QualFilingReviewEntity modify(QualFilingReviewEntity entity) {
        return qualFilingReviewGateway.modify(entity);
    }

    public void delete(Long id) {
        qualFilingReviewGateway.delete(id);
    }

    public PageResult<QualFilingReviewEntity> page(QualFilingReviewQuery query) {
        return qualFilingReviewGateway.page(query);
    }
}
