Commit 8926e9ef by guojuxing

添加登录校验接口

parent e80d8736
......@@ -27,7 +27,8 @@ import org.springframework.context.annotation.ImportResource;
"classpath*:dubbo-setting.xml",
"classpath*:dubbo-gic-webapp-plug.xml",
"classpath*:spring-interceptor.xml",
"classpath*:redis-init.xml"
"classpath*:redis-init.xml",
"classpath:web-common-spring.xml"
})
public class Main {
......
......@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.ano.IgnoreLogin;
import com.gic.enterprise.error.ErrorCode;
import com.gic.plug.web.vo.CityVO;
import com.gic.plug.web.vo.CountyVO;
......@@ -30,6 +31,7 @@ public class ProvincesController {
@RequestMapping("dict-district-list")
@ResponseBody
@IgnoreLogin
public Object provinces(String id, @RequestParam(defaultValue = "1")int type){
switch (type){
case 1:
......@@ -65,6 +67,7 @@ public class ProvincesController {
@RequestMapping("query-provinces")
@ResponseBody
@IgnoreLogin
public Object searchProvinces(String search){
ServiceResponse<List<ProvinceDTO>> serviceResponse = this.provincesApiService.queryProvinces(search);
if(serviceResponse.isSuccess()){
......@@ -75,6 +78,7 @@ public class ProvincesController {
@RequestMapping("query-city")
@ResponseBody
@IgnoreLogin
public Object searchCitys(String search){
if(StringUtils.isBlank(search)){
return RestResponse.failure(ErrorCode.MISS_PARAMETER.getCode(), ErrorCode.MISS_PARAMETER.getMsg());
......@@ -88,6 +92,7 @@ public class ProvincesController {
@RequestMapping("query-county")
@ResponseBody
@IgnoreLogin
public Object searchCounty(String search){
if(StringUtils.isBlank(search)){
return RestResponse.failure(ErrorCode.MISS_PARAMETER.getCode(), ErrorCode.MISS_PARAMETER.getMsg());
......@@ -101,6 +106,7 @@ public class ProvincesController {
@RequestMapping("query-district")
@ResponseBody
@IgnoreLogin
public RestResponse queryDistrictByIds(String ids){
if(StringUtils.isBlank(ids)){
return RestResponse.success();
......@@ -144,6 +150,7 @@ public class ProvincesController {
@RequestMapping("dict-provinces-citys")
@ResponseBody
@IgnoreLogin
public RestResponse listProvincesCitys(){
ServiceResponse<List<ProvinceDTO>> serviceResponse = this.provincesApiService.selectAllProvince();
ServiceResponse<List<CityDTO>> serviceResponse1 = this.provincesApiService.selectAllCity();
......
......@@ -2,6 +2,7 @@ package com.gic.plug.web.controller;
import com.alibaba.fastjson.JSON;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.ano.IgnoreLogin;
import com.gic.thirdparty.pic.QQCloudPicUtils;
import com.gic.thirdparty.pic.UploadResult;
import org.apache.log4j.LogManager;
......@@ -20,6 +21,7 @@ public class UploadImgController {
private Logger logger = LogManager.getLogger(UploadImgController.class);
@RequestMapping("upload-images")
@IgnoreLogin
public RestResponse uploadImages(HttpServletRequest request) throws IOException {
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest) request;
Iterator<String> iter = multiRequest.getFileNames();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment