add Journal module
This commit is contained in:
@@ -7,6 +7,7 @@ import com.imyeyu.api.annotation.RequiredTokenInterceptor;
|
||||
import com.imyeyu.api.modules.common.entity.Attachment;
|
||||
import com.imyeyu.api.modules.common.vo.user.UserProfileView;
|
||||
import com.imyeyu.api.modules.common.vo.user.UserView;
|
||||
import com.imyeyu.api.modules.journal.util.JournalAPIInterceptor;
|
||||
import com.imyeyu.api.modules.minecraft.annotation.RequiredFMCServerTokenInterceptor;
|
||||
import com.imyeyu.api.modules.minecraft.entity.MinecraftPlayer;
|
||||
import com.imyeyu.api.modules.mirror.vo.MirrorView;
|
||||
@@ -41,6 +42,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
|
||||
private final SystemAPIInterceptor systemAPIInterceptor;
|
||||
private final GsonSerializerAdapter gsonSerializerAdapter;
|
||||
private final JournalAPIInterceptor journalAPIInterceptor;
|
||||
private final RequiredTokenInterceptor requiredTokenInterceptor;
|
||||
private final EnableSettingInterceptor enableSettingInterceptor;
|
||||
private final RequestSingleParamResolver requestSingleParamResolver;
|
||||
@@ -55,6 +57,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(systemAPIInterceptor).addPathPatterns(SystemAPIInterceptor.PATH);
|
||||
registry.addInterceptor(journalAPIInterceptor).addPathPatterns(JournalAPIInterceptor.PATH);
|
||||
registry.addInterceptor(requiredFMCServerTokenInterceptor).addPathPatterns("/fmc/server/**");
|
||||
registry.addInterceptor(requiredTokenInterceptor).addPathPatterns("/**");
|
||||
registry.addInterceptor(enableSettingInterceptor).addPathPatterns("/**");
|
||||
|
||||
@@ -38,6 +38,7 @@ import java.util.List;
|
||||
"com.imyeyu.api.modules.mirror.mapper",
|
||||
"com.imyeyu.api.modules.system.mapper",
|
||||
"com.imyeyu.api.modules.common.mapper",
|
||||
"com.imyeyu.api.modules.journal.mapper",
|
||||
"com.imyeyu.api.modules.minecraft.mapper"
|
||||
}, sqlSessionFactoryRef = "timiServerSqlSessionFactory")
|
||||
public class TimiServerDBConfig {
|
||||
@@ -93,6 +94,7 @@ public class TimiServerDBConfig {
|
||||
"com.imyeyu.api.modules.mirror.entity",
|
||||
"com.imyeyu.api.modules.system.entity",
|
||||
"com.imyeyu.api.modules.common.entity",
|
||||
"com.imyeyu.api.modules.journal.entity",
|
||||
"com.imyeyu.api.modules.minecraft.entity"
|
||||
};
|
||||
String[] typeHandlers = {
|
||||
|
||||
Reference in New Issue
Block a user