能否请你动动手指,留下你的一键三连。
业务代码
/**
* 业务数据类
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BusinessData {
/**
* id
*/
private String id;
/**
* 金钱
*/
private Money money;
}
/**
* 金钱类
*/
@Data
@AllArgsConstructor
public class Money {
/**
* 金额
*/
private BigDecimal amount;
/**
* 单元
*/
private String unit;
}
/**
* 控制层
*/
@RestController
@RequestMapping("/business")
public class BusinessContro