This commit is contained in:
mindskip
2020-10-12 20:00:36 +08:00
parent 8f4f2c78e8
commit 94f625f47b
50 changed files with 45 additions and 233 deletions

View File

@@ -8,7 +8,7 @@ import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@SpringBootApplication
@EnableTransactionManagement

View File

@@ -8,7 +8,7 @@ import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class BaseApiController {
protected final static String DEFAULT_PAGE_SIZE = "10";

View File

@@ -2,7 +2,7 @@ package com.mindskip.xzs.base;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public abstract class BaseEntity {

View File

@@ -3,7 +3,7 @@ package com.mindskip.xzs.base;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -1,7 +1,7 @@
package com.mindskip.xzs.base;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class RestResponse<T> {
private int code;

View File

@@ -1,7 +1,7 @@
package com.mindskip.xzs.base;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public enum SystemCode {
/**

View File

@@ -6,7 +6,7 @@ import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
public class ApplicationContextProvider implements ApplicationContextAware {

View File

@@ -7,7 +7,7 @@ import java.util.List;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@ConfigurationProperties(prefix = "system")
@Data

View File

@@ -10,7 +10,7 @@ import java.util.List;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Configuration

View File

@@ -3,7 +3,7 @@ package com.mindskip.xzs.configuration.spring.security;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -12,7 +12,7 @@ import java.io.IOException;
/**
* 未登录
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
public final class LoginAuthenticationEntryPoint extends LoginUrlAuthenticationEntryPoint {

View File

@@ -12,7 +12,7 @@ import java.io.IOException;
/**
* 账号验证异常
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
public class RestAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler {

View File

@@ -24,9 +24,8 @@ import java.util.ArrayList;
/**
* 登录用户名密码验证
*
* @author : Alvis
* @author : 武汉思维跳跃科技有限公司
* Description : 身份验证
* Creation Date: 2018-05-02 5:00 PM
*/
@Component

View File

@@ -20,7 +20,7 @@ import java.util.Date;
/**
* 登录成功返回
*
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
@AllArgsConstructor

View File

@@ -14,9 +14,8 @@ import org.springframework.stereotype.Component;
import java.util.ArrayList;
/**
* @author : Alvis
* @author : 武汉思维跳跃科技有限公司
* Description : 验证通过之后,第二、三...请求,会调用此类
* Creation Date: 2018-05-02 4:32 PM
*/
@Component

View File

@@ -19,7 +19,7 @@ import java.io.InputStream;
/**
* 登录参数序列化
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class RestLoginAuthenticationFilter extends AbstractAuthenticationProcessingFilter {

View File

@@ -18,7 +18,7 @@ import java.util.Date;
/**
* 用户登出
*
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
@AllArgsConstructor

View File

@@ -7,7 +7,7 @@ import javax.servlet.http.HttpServletRequest;
/**
* 记住我Cookie
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class RestTokenBasedRememberMeServices extends TokenBasedRememberMeServices {
public RestTokenBasedRememberMeServices(String key, UserDetailsService userDetailsService) {

View File

@@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class RestUtil {
private static final Logger logger = LoggerFactory.getLogger(RestUtil.class);

View File

@@ -19,7 +19,7 @@ import java.util.List;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Configuration

View File

@@ -26,7 +26,7 @@ import java.util.UUID;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@RestController("AdminUserController")
@RequestMapping(value = "/api/admin/user")

View File

@@ -31,7 +31,7 @@ import java.util.stream.Collectors;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@RestController("StudentUserController")
@RequestMapping(value = "/api/student/user")

View File

@@ -32,7 +32,7 @@ import java.util.stream.Collectors;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Controller("WXStudentUserController")
@RequestMapping(value = "/api/wx/student/user")

View File

@@ -4,7 +4,7 @@ import com.mindskip.xzs.domain.ExamPaperAnswerInfo;
import org.springframework.context.ApplicationEvent;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class CalculateExamPaperAnswerCompleteEvent extends ApplicationEvent {

View File

@@ -4,7 +4,7 @@ import com.mindskip.xzs.domain.User;
import org.springframework.context.ApplicationEvent;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class OnRegistrationCompleteEvent extends ApplicationEvent {

View File

@@ -1,7 +1,7 @@
package com.mindskip.xzs.exception;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class BusinessException extends RuntimeException {

View File

@@ -19,7 +19,7 @@ import java.util.List;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
@AllArgsConstructor

View File

@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Component
public class EmailSendListener implements ApplicationListener<OnRegistrationCompleteEvent> {

View File

@@ -10,7 +10,7 @@ import java.util.List;
import java.util.Map;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Mapper

View File

@@ -3,7 +3,7 @@ package com.mindskip.xzs.service;
import com.mindskip.xzs.domain.User;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public interface AuthenticationService {

View File

@@ -8,7 +8,7 @@ import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public interface UserService extends BaseService<User> {

View File

@@ -9,7 +9,7 @@ import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Service
@AllArgsConstructor

View File

@@ -21,7 +21,7 @@ import java.util.List;
import java.util.Map;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

View File

@@ -10,7 +10,7 @@ import java.time.Duration;
import java.util.*;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class DateTimeUtil {

View File

@@ -11,7 +11,7 @@ import java.security.NoSuchAlgorithmException;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class Md5Util {

View File

@@ -6,7 +6,7 @@ import java.util.function.Function;
import java.util.stream.Collectors;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class PageInfoHelper {

View File

@@ -13,7 +13,7 @@ import java.util.Base64;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
public class RsaUtil {
/**

View File

@@ -5,7 +5,7 @@ import lombok.Data;
import org.modelmapper.ModelMapper;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -4,7 +4,7 @@ import com.mindskip.xzs.base.BasePage;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -4,7 +4,7 @@ import com.mindskip.xzs.base.BasePage;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -6,7 +6,7 @@ import com.mindskip.xzs.viewmodel.BaseVM;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data

View File

@@ -6,7 +6,7 @@ import com.mindskip.xzs.viewmodel.BaseVM;
import lombok.Data;
/**
* @author alvis
* @author 武汉思维跳跃科技有限公司
*/
@Data