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());
// TODO Build with different security configuration
return buildApiDocket("run.halo.app.content.api",
"run.halo.app.web.controller.content.api",
"run.halo.app.controller.content.api",
"/api/**")
.enable(!haloProperties.isDocDisabled());
}
@ -74,7 +74,7 @@ public class SwaggerConfiguration {
log.debug("Doc disabled: [{}]", haloProperties.isDocDisabled());
// TODO Build with different security configuration
return buildApiDocket("run.halo.app.admin",
"run.halo.app.web.controller.admin",
"run.halo.app.controller.admin",
"/api/admin/**")
.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.model.support.HaloConst;
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;
@ -36,7 +36,7 @@ import java.util.List;
@Slf4j
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "run.halo.app.web.controller")
@ComponentScan(basePackages = "run.halo.app.controller")
@PropertySource(value = "classpath:application.yaml", ignoreResourceNotFound = true, encoding = "UTF-8")
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.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 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 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 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 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.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 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.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 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.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 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.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 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.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 org.springframework.core.MethodParameter;
@ -20,7 +20,7 @@ import run.halo.app.model.support.BaseResponse;
*
* @author johnniang
*/
@ControllerAdvice("run.halo.app.web.controller")
@ControllerAdvice("run.halo.app.controller")
public class CommonResultControllerAdvice implements ResponseBodyAdvice<Object> {
@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 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 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 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.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 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 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.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 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.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 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.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.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.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.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.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.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 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 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 com.fasterxml.jackson.core.JsonGenerator;