Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beijing-vehicleflow
Project
Project
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
zhangzhenbang
beijing-vehicleflow
Commits
d0eae0dc
Commit
d0eae0dc
authored
Feb 23, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化
parent
764914ec
Pipeline
#144
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
127 additions
and
0 deletions
+127
-0
ReservationController.java
.../beijingvehicleflow/controller/ReservationController.java
+7
-0
Response.java
...ava/com/yingxin/beijingvehicleflow/response/Response.java
+92
-0
ReservationService.java
...ingxin/beijingvehicleflow/service/ReservationService.java
+11
-0
ReservationServiceImpl.java
...ijingvehicleflow/service/impl/ReservationServiceImpl.java
+17
-0
No files found.
src/main/java/com/yingxin/beijingvehicleflow/controller/ReservationController.java
View file @
d0eae0dc
package
com
.
yingxin
.
beijingvehicleflow
.
controller
;
import
com.yingxin.beijingvehicleflow.response.Response
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -15,4 +17,9 @@ import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RequestMapping
(
"/api/v1"
)
public
class
ReservationController
{
@PostMapping
public
Response
insertIdentityInfoAndReservation
()
{
return
null
;
}
}
src/main/java/com/yingxin/beijingvehicleflow/response/Response.java
0 → 100644
View file @
d0eae0dc
package
com
.
yingxin
.
beijingvehicleflow
.
response
;
/**
* 返回狀態類
*
* @author 226
* @version 1.0
* @date 2020/2/13
*/
public
class
Response
<
T
>
{
private
boolean
status
;
private
String
code
;
private
String
msg
;
private
T
data
;
/*---------------------------常用構造器-----------------------------*/
private
Response
()
{
}
private
Response
(
boolean
status
)
{
this
.
status
=
status
;
}
private
Response
(
boolean
status
,
String
code
,
String
msg
)
{
this
.
status
=
status
;
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
Response
(
boolean
status
,
String
code
,
String
msg
,
T
data
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
status
=
status
;
this
.
data
=
data
;
}
/*---------------------------常用靜態方法-----------------------------*/
public
static
Response
fail
()
{
return
new
Response
(
false
);
}
public
static
Response
fail
(
String
code
,
String
msg
)
{
return
new
Response
(
false
,
code
,
msg
);
}
public
static
Response
succ
()
{
return
new
Response
(
true
);
}
public
static
Response
succ
(
String
code
,
String
msg
)
{
return
new
Response
(
true
,
code
,
msg
);
}
/*---------------------------Getter & Setter-----------------------------*/
public
boolean
isStatus
()
{
return
status
;
}
public
void
setStatus
(
boolean
status
)
{
this
.
status
=
status
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
T
getData
()
{
return
data
;
}
public
void
setData
(
T
data
)
{
this
.
data
=
data
;
}
}
src/main/java/com/yingxin/beijingvehicleflow/service/ReservationService.java
0 → 100644
View file @
d0eae0dc
package
com
.
yingxin
.
beijingvehicleflow
.
service
;
/**
* description //TODO
*
* @author 226
* @version 1.0
* @date 2020/2/23
*/
public
interface
ReservationService
{
}
src/main/java/com/yingxin/beijingvehicleflow/service/impl/ReservationServiceImpl.java
0 → 100644
View file @
d0eae0dc
package
com
.
yingxin
.
beijingvehicleflow
.
service
.
impl
;
import
com.yingxin.beijingvehicleflow.service.ReservationService
;
import
org.springframework.stereotype.Service
;
/**
* description //TODO
*
* @author 226
* @version 1.0
* @date 2020/2/23
*/
@Service
public
class
ReservationServiceImpl
implements
ReservationService
{
}
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