Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
8926e9ef
Commit
8926e9ef
authored
Oct 12, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加登录校验接口
parent
e80d8736
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
Main.java
src/main/java/com/gic/plug/web/Main.java
+2
-1
ProvincesController.java
...java/com/gic/plug/web/controller/ProvincesController.java
+7
-0
UploadImgController.java
...java/com/gic/plug/web/controller/UploadImgController.java
+2
-0
No files found.
src/main/java/com/gic/plug/web/Main.java
View file @
8926e9ef
...
...
@@ -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
{
...
...
src/main/java/com/gic/plug/web/controller/ProvincesController.java
View file @
8926e9ef
...
...
@@ -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
();
...
...
src/main/java/com/gic/plug/web/controller/UploadImgController.java
View file @
8926e9ef
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment