Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
50f89ea2
Commit
50f89ea2
authored
Sep 23, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成项目结构修改
parent
a5bea444
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
15 deletions
+13
-15
api-app/src/main/java/com/jumeirah/api/app/controller/AppHelloWorldController.java
+1
-4
api-app/src/main/java/com/jumeirah/api/app/controller/RegisterController.java
+7
-4
config/src/main/resources/config/application-dev.yml
+1
-1
config/src/main/resources/config/application-prod.yml
+1
-1
config/src/main/resources/config/application-test.yml
+1
-1
config/src/main/resources/config/application.yml
+2
-4
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/AppHelloWorldController.java
View file @
50f89ea2
...
@@ -15,16 +15,13 @@ import java.io.IOException;
...
@@ -15,16 +15,13 @@ import java.io.IOException;
/**
/**
* Hello World Controller
* Hello World Controller
*
*
* @author geekidea
* @date 2019-10-09
**/
**/
@Slf4j
@Slf4j
@Api
(
value
=
"Hello World2"
,
tags
=
{
"Hello World2"
})
@Api
(
value
=
"Hello World2"
,
tags
=
{
"Hello World2"
})
@RestController
@RestController
@RequestMapping
(
"/app
/hello
"
)
@RequestMapping
(
"/app"
)
public
class
AppHelloWorldController
{
public
class
AppHelloWorldController
{
/**
/**
* Hello World
* Hello World
*
*
...
...
api-
system/src/main/java/com/jumeirah/api/system
/controller/RegisterController.java
→
api-
app/src/main/java/com/jumeirah/api/app
/controller/RegisterController.java
View file @
50f89ea2
...
@@ -14,14 +14,14 @@
...
@@ -14,14 +14,14 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
com
.
jumeirah
.
api
.
system
.
controller
;
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.log.annotation.Module
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLogIgnore
;
import
com.jumeirah.common.param.RegisterParam
;
import
com.jumeirah.common.param.RegisterParam
;
import
com.jumeirah.common.service.RegisterService
;
import
com.jumeirah.common.service.RegisterService
;
import
com.jumeirah.common.vo.LoginSysUserTokenVo
;
import
com.jumeirah.common.vo.LoginSysUserTokenVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.log.annotation.Module
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLogIgnore
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -30,6 +30,7 @@ import org.springframework.validation.annotation.Validated;
...
@@ -30,6 +30,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -45,11 +46,13 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -45,11 +46,13 @@ import javax.servlet.http.HttpServletResponse;
@RestController
@RestController
@Module
(
"system"
)
@Module
(
"system"
)
@Api
(
value
=
"用户注册API"
,
tags
=
{
"用户注册"
})
@Api
(
value
=
"用户注册API"
,
tags
=
{
"用户注册"
})
@RequestMapping
(
"/app"
)
public
class
RegisterController
{
public
class
RegisterController
{
@Autowired
@Autowired
private
RegisterService
registerService
;
private
RegisterService
registerService
;
@PostMapping
(
"/register"
)
@PostMapping
(
"/register"
)
@OperationLogIgnore
@OperationLogIgnore
@ApiOperation
(
value
=
"注册"
,
notes
=
"web用户注册"
,
response
=
LoginSysUserTokenVo
.
class
)
@ApiOperation
(
value
=
"注册"
,
notes
=
"web用户注册"
,
response
=
LoginSysUserTokenVo
.
class
)
...
...
config/src/main/resources/config/application-dev.yml
View file @
50f89ea2
...
@@ -15,7 +15,7 @@ spring-boot-plus:
...
@@ -15,7 +15,7 @@ spring-boot-plus:
spring
:
spring
:
datasource
:
datasource
:
# url: jdbc:mysql://localhost:3306/spring_boot_plus?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
# url: jdbc:mysql://localhost:3306/spring_boot_plus?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://localhost:3306/
vike
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://localhost:3306/
Jumeirah
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
root
username
:
root
password
:
123
password
:
123
...
...
config/src/main/resources/config/application-prod.yml
View file @
50f89ea2
...
@@ -16,7 +16,7 @@ spring-boot-plus:
...
@@ -16,7 +16,7 @@ spring-boot-plus:
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://mysql57:3306/
vike
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://mysql57:3306/
Jumeirah
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
root
username
:
root
password
:
123
password
:
123
...
...
config/src/main/resources/config/application-test.yml
View file @
50f89ea2
...
@@ -15,7 +15,7 @@ spring-boot-plus:
...
@@ -15,7 +15,7 @@ spring-boot-plus:
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://mysql57:3306/
vike
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://mysql57:3306/
Jumeirah
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username
:
root
username
:
root
password
:
123
password
:
123
...
...
config/src/main/resources/config/application.yml
View file @
50f89ea2
...
@@ -192,9 +192,7 @@ spring-boot-plus:
...
@@ -192,9 +192,7 @@ spring-boot-plus:
# - /actuator/**
# - /actuator/**
-
# 排除首页
-
# 排除首页
-
/,/index.html
-
/,/index.html
# 排除测试路径
-
/app/world/*
-
/hello/world,/fooBar/**,/exampleOrder/**
-
/app/hello/*
-
/system/hello/*
-
/system/hello/*
# 多行字符串权限配置
# 多行字符串权限配置
...
@@ -212,7 +210,7 @@ spring-boot-plus:
...
@@ -212,7 +210,7 @@ spring-boot-plus:
# token请求头名称
# token请求头名称
token-name
:
token
token-name
:
token
# jwt密钥
# jwt密钥
secret
:
ljd123hl2jh
secret
:
z2mys3h@$U3@&@!
# 发行人
# 发行人
issuer
:
${spring.application.name}
issuer
:
${spring.application.name}
# 观众
# 观众
...
...
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