字段校验
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.czg.service.order.dto;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -11,9 +12,9 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
public class OrderPayParamDTO {
|
||||
@NotEmpty(message = "店铺不能为空")
|
||||
@NotNull(message = "店铺不能为空")
|
||||
private Long shopId;
|
||||
@NotEmpty(message = "订单不能为空")
|
||||
@NotNull(message = "订单不能为空")
|
||||
private Long orderId;
|
||||
private String buyerRemark;
|
||||
private String returnUrl;
|
||||
|
||||
Reference in New Issue
Block a user