Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
order-group-application
order-group
Commits
2a0cd0c5
Commit
2a0cd0c5
authored
Aug 24, 2020
by
vega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs:createOrder:修改swagger注解,让前端更明确
parent
4299cef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
+5
-0
No files found.
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
View file @
2a0cd0c5
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
package
cn
.
freemud
.
entities
.
vo
;
package
cn
.
freemud
.
entities
.
vo
;
import
cn.freemud.entities.dto.UserDeliveryInfoDto
;
import
cn.freemud.entities.dto.UserDeliveryInfoDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
cn.freemud.entities.dto.delivery.WeixinDeliveryAddressDto
;
import
cn.freemud.entities.dto.delivery.WeixinDeliveryAddressDto
;
import
lombok.Builder
;
import
lombok.Builder
;
...
@@ -209,18 +210,22 @@ public class CreateOrderVo {
...
@@ -209,18 +210,22 @@ public class CreateOrderVo {
* 是否使用银联礼品卡,如果不为空则为使用
* 是否使用银联礼品卡,如果不为空则为使用
*/
*/
@Valid
@Valid
@ApiModelProperty
(
value
=
"银联礼品卡"
)
private
UnionPayCard
unionPayCard
;
private
UnionPayCard
unionPayCard
;
/**
/**
* 银联礼品卡
* 银联礼品卡
*/
*/
@Data
@Data
@ApiModel
(
value
=
"银联礼品卡类"
,
description
=
"如果传了礼品卡字段,此类中属性必传"
)
public
static
class
UnionPayCard
{
public
static
class
UnionPayCard
{
@NotNull
(
message
=
"银联礼品卡手机号必传"
)
@NotNull
(
message
=
"银联礼品卡手机号必传"
)
@ApiModelProperty
(
value
=
"银联礼品卡手机号"
,
required
=
true
)
private
String
phoneNumber
;
private
String
phoneNumber
;
@NotNull
(
message
=
"银联礼品卡密码必传"
)
@NotNull
(
message
=
"银联礼品卡密码必传"
)
@ApiModelProperty
(
value
=
"银联礼品卡密码"
,
required
=
true
)
private
String
password
;
private
String
password
;
}
}
...
...
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