linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
    }
}