mirror of https://github.com/halo-dev/halo
Change run.halo.app.web.controller to run.halo.app.controller
parent
56f5577356
commit
af29d32df0
|
@ -64,7 +64,7 @@ public class SwaggerConfiguration {
|
||||||
log.debug("Doc disabled: [{}]", haloProperties.isDocDisabled());
|
log.debug("Doc disabled: [{}]", haloProperties.isDocDisabled());
|
||||||
// TODO Build with different security configuration
|
// TODO Build with different security configuration
|
||||||
return buildApiDocket("run.halo.app.content.api",
|
return buildApiDocket("run.halo.app.content.api",
|
||||||
"run.halo.app.web.controller.content.api",
|
"run.halo.app.controller.content.api",
|
||||||
"/api/**")
|
"/api/**")
|
||||||
.enable(!haloProperties.isDocDisabled());
|
.enable(!haloProperties.isDocDisabled());
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ public class SwaggerConfiguration {
|
||||||
log.debug("Doc disabled: [{}]", haloProperties.isDocDisabled());
|
log.debug("Doc disabled: [{}]", haloProperties.isDocDisabled());
|
||||||
// TODO Build with different security configuration
|
// TODO Build with different security configuration
|
||||||
return buildApiDocket("run.halo.app.admin",
|
return buildApiDocket("run.halo.app.admin",
|
||||||
"run.halo.app.web.controller.admin",
|
"run.halo.app.controller.admin",
|
||||||
"/api/admin/**")
|
"/api/admin/**")
|
||||||
.enable(!haloProperties.isDocDisabled());
|
.enable(!haloProperties.isDocDisabled());
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import run.halo.app.config.properties.HaloProperties;
|
||||||
import run.halo.app.factory.StringToEnumConverterFactory;
|
import run.halo.app.factory.StringToEnumConverterFactory;
|
||||||
import run.halo.app.model.support.HaloConst;
|
import run.halo.app.model.support.HaloConst;
|
||||||
import run.halo.app.security.resolver.AuthenticationArgumentResolver;
|
import run.halo.app.security.resolver.AuthenticationArgumentResolver;
|
||||||
import run.halo.app.web.controller.support.PageJacksonSerializer;
|
import run.halo.app.controller.support.PageJacksonSerializer;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import java.util.List;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebMvc
|
@EnableWebMvc
|
||||||
@ComponentScan(basePackages = "run.halo.app.web.controller")
|
@ComponentScan(basePackages = "run.halo.app.controller")
|
||||||
@PropertySource(value = "classpath:application.yaml", ignoreResourceNotFound = true, encoding = "UTF-8")
|
@PropertySource(value = "classpath:application.yaml", ignoreResourceNotFound = true, encoding = "UTF-8")
|
||||||
public class WebMvcAutoConfiguration implements WebMvcConfigurer {
|
public class WebMvcAutoConfiguration implements WebMvcConfigurer {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin;
|
package run.halo.app.controller.admin;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.GalleryDTO;
|
import run.halo.app.model.dto.GalleryDTO;
|
||||||
import run.halo.app.service.GalleryService;
|
import run.halo.app.service.GalleryService;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.LogDTO;
|
import run.halo.app.model.dto.LogDTO;
|
||||||
import run.halo.app.service.LogService;
|
import run.halo.app.service.LogService;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.OptionDTO;
|
import run.halo.app.model.dto.OptionDTO;
|
||||||
import run.halo.app.model.params.OptionParam;
|
import run.halo.app.model.params.OptionParam;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.TagDTO;
|
import run.halo.app.model.dto.TagDTO;
|
||||||
import run.halo.app.model.entity.Tag;
|
import run.halo.app.model.entity.Tag;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.admin.api;
|
package run.halo.app.controller.admin.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.UserDTO;
|
import run.halo.app.model.dto.UserDTO;
|
||||||
import run.halo.app.model.entity.User;
|
import run.halo.app.model.entity.User;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.base;
|
package run.halo.app.controller.base;
|
||||||
|
|
||||||
import run.halo.app.model.support.BaseResponse;
|
import run.halo.app.model.support.BaseResponse;
|
||||||
import org.springframework.core.MethodParameter;
|
import org.springframework.core.MethodParameter;
|
||||||
|
@ -20,7 +20,7 @@ import run.halo.app.model.support.BaseResponse;
|
||||||
*
|
*
|
||||||
* @author johnniang
|
* @author johnniang
|
||||||
*/
|
*/
|
||||||
@ControllerAdvice("run.halo.app.web.controller")
|
@ControllerAdvice("run.halo.app.controller")
|
||||||
public class CommonResultControllerAdvice implements ResponseBodyAdvice<Object> {
|
public class CommonResultControllerAdvice implements ResponseBodyAdvice<Object> {
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.base;
|
package run.halo.app.controller.base;
|
||||||
|
|
||||||
import org.springframework.web.HttpMediaTypeNotAcceptableException;
|
import org.springframework.web.HttpMediaTypeNotAcceptableException;
|
||||||
import run.halo.app.exception.HaloException;
|
import run.halo.app.exception.HaloException;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import cn.hutool.core.util.PageUtil;
|
import cn.hutool.core.util.PageUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import cn.hutool.core.util.PageUtil;
|
import cn.hutool.core.util.PageUtil;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import freemarker.template.Template;
|
import freemarker.template.Template;
|
||||||
import freemarker.template.TemplateException;
|
import freemarker.template.TemplateException;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import cn.hutool.core.util.PageUtil;
|
import cn.hutool.core.util.PageUtil;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import cn.hutool.core.util.PageUtil;
|
import cn.hutool.core.util.PageUtil;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content;
|
package run.halo.app.controller.content;
|
||||||
|
|
||||||
import cn.hutool.core.util.PageUtil;
|
import cn.hutool.core.util.PageUtil;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.vo.ArchiveMonthVO;
|
import run.halo.app.model.vo.ArchiveMonthVO;
|
||||||
import run.halo.app.model.vo.ArchiveYearVO;
|
import run.halo.app.model.vo.ArchiveYearVO;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.vo.LinkTeamVO;
|
import run.halo.app.model.vo.LinkTeamVO;
|
||||||
import run.halo.app.service.LinkService;
|
import run.halo.app.service.LinkService;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.MenuDTO;
|
import run.halo.app.model.dto.MenuDTO;
|
||||||
import run.halo.app.service.MenuService;
|
import run.halo.app.service.MenuService;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.OptionDTO;
|
import run.halo.app.model.dto.OptionDTO;
|
||||||
import run.halo.app.model.support.BaseResponse;
|
import run.halo.app.model.support.BaseResponse;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.post.PostDetailOutputDTO;
|
import run.halo.app.model.dto.post.PostDetailOutputDTO;
|
||||||
import run.halo.app.model.dto.post.PostSimpleOutputDTO;
|
import run.halo.app.model.dto.post.PostSimpleOutputDTO;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.TagDTO;
|
import run.halo.app.model.dto.TagDTO;
|
||||||
import run.halo.app.model.dto.post.PostSimpleOutputDTO;
|
import run.halo.app.model.dto.post.PostSimpleOutputDTO;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.content.api;
|
package run.halo.app.controller.content.api;
|
||||||
|
|
||||||
import run.halo.app.model.dto.UserDTO;
|
import run.halo.app.model.dto.UserDTO;
|
||||||
import run.halo.app.service.UserService;
|
import run.halo.app.service.UserService;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.core;
|
package run.halo.app.controller.core;
|
||||||
|
|
||||||
import cn.hutool.core.text.StrBuilder;
|
import cn.hutool.core.text.StrBuilder;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.core;
|
package run.halo.app.controller.core;
|
||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import freemarker.template.Configuration;
|
import freemarker.template.Configuration;
|
|
@ -1,4 +1,4 @@
|
||||||
package run.halo.app.web.controller.support;
|
package run.halo.app.controller.support;
|
||||||
|
|
||||||
import run.halo.app.model.support.CommentPage;
|
import run.halo.app.model.support.CommentPage;
|
||||||
import com.fasterxml.jackson.core.JsonGenerator;
|
import com.fasterxml.jackson.core.JsonGenerator;
|
Loading…
Reference in New Issue