Commit 2a0cd0c5 by vega

docs:createOrder:修改swagger注解,让前端更明确

parent 4299cef9
......@@ -13,6 +13,7 @@
package cn.freemud.entities.vo;
import cn.freemud.entities.dto.UserDeliveryInfoDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.freemud.entities.dto.delivery.WeixinDeliveryAddressDto;
import lombok.Builder;
......@@ -209,18 +210,22 @@ public class CreateOrderVo {
* 是否使用银联礼品卡,如果不为空则为使用
*/
@Valid
@ApiModelProperty(value = "银联礼品卡")
private UnionPayCard unionPayCard;
/**
* 银联礼品卡
*/
@Data
@ApiModel(value = "银联礼品卡类", description = "如果传了礼品卡字段,此类中属性必传")
public static class UnionPayCard {
@NotNull(message = "银联礼品卡手机号必传")
@ApiModelProperty(value = "银联礼品卡手机号",required = true)
private String phoneNumber;
@NotNull(message = "银联礼品卡密码必传")
@ApiModelProperty(value = "银联礼品卡密码",required = true)
private String password;
}
......
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