Change run.halo.app.web.controller to run.halo.app.controller

pull/146/head
ruibaby 2019-04-24 11:50:04 +08:00
parent 56f5577356
commit af29d32df0
36 changed files with 39 additions and 39 deletions

View File

@ -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());
} }

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;