AI-accounting-soft/src/main/java/com/accounting/dto/BillRequest.java
2025-12-12 16:37:27 +08:00

28 lines
544 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.accounting.dto;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
@Data
public class BillRequest {
@NotNull(message = "分类ID不能为空")
private Long categoryId;
@NotNull(message = "金额不能为空")
private BigDecimal amount;
private String description;
private LocalDate billDate;
private String imageUrl;
/**
* 账单类型1-支出2-收入
*/
private Integer type;
}