linzhijie
2021-04-12 3a8e1524dcf0eeb610d38123d5f0a3ef838379cd
src/main/java/com/ots/project/common/BaseApiController.java
@@ -1,20 +1,15 @@
package com.ots.project.common;
import com.ots.project.exam.domain.ExamUser;
import com.ots.project.exam.domain.WebContext;
import com.ots.project.tool.exam.ModelMapperSingle;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author ots
 */
public class BaseApiController {
    protected final static String DEFAULT_PAGE_SIZE = "10";
    protected final static ModelMapper modelMapper = ModelMapperSingle.Instance();
    @Autowired
    protected WebContext webContext;
    protected ExamUser getCurrentUser() {
        return webContext.getCurrentUser();
    }