| | |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.Valid; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | |
| | |
| | | @NotNull(message = "供应商编号不能为空") |
| | | private Long supplierId; |
| | | |
| | | @Schema(description = "付款账户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28989") |
| | | @NotNull(message = "付款账户编号不能为空") |
| | | private Long accountId; |
| | | @Schema(description = "关联的来票编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "25787") |
| | | private Long invoiceId; |
| | | |
| | | @Schema(description = "付款账户", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "农行对公账户") |
| | | private String accountName; |
| | | |
| | | @Schema(description = "优惠金额,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "11600") |
| | | @NotNull(message = "优惠金额不能为空") |
| | |
| | | @Schema(description = "备注", example = "你猜") |
| | | private String remark; |
| | | |
| | | @Schema(description = "付款项列表", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotEmpty(message = "付款项列表不能为空") |
| | | @Schema(description = "附件 blobId 列表", example = "[1, 2, 3]") |
| | | private List<Long> blobIds; |
| | | |
| | | @Schema(description = "付款项列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @Valid |
| | | private List<Item> items; |
| | | |