first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user