package com.sundot.airport.exam.common.manager;

import com.sundot.airport.exam.common.model.GradeResult;
import com.sundot.airport.exam.common.model.params.UserOption;

import java.util.List;

/**
 * <b>功能名：GradeManager</b><br>
 * <b>说明：</b> 判卷通用业务处理层 <br>
 * <b>著作权：</b> Copyright (C) 2021 HUIFANEDU  CORPORATION<br>
 * <b>修改履历：</b><br>
 *
 * @author 2021-07-07 Mokou
 */
public interface GradeManager {
    /**
     * <b>方法名: </b> grade <br>
     * <b>说明: </b> 判卷 返回得分 <br>
     *
     * @param erId        String 考试快照ID
     * @param userOptions List<UserOption> 用户答案及题目ID
     * @return GradeResult
     * <b>修改履历: </b>
     * @author 2021/7/7 Mokou
     */
    GradeResult grade(String erId, List<UserOption> userOptions);
}
