hotfix-20260126-constructor-issue: 修复构造函数的问题
This commit is contained in:
parent
66cce36d81
commit
5a15941672
@ -1,21 +1,28 @@
|
|||||||
package cn.axzo.msg.center.service.dto;
|
package cn.axzo.msg.center.service.dto;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author yanglin
|
* @author yanglin
|
||||||
*/
|
*/
|
||||||
@Data
|
@Builder
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class PersonV3DTO implements Serializable {
|
public class PersonV3DTO implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1231840051925115741L;
|
private static final long serialVersionUID = 1231840051925115741L;
|
||||||
|
|
||||||
|
public PersonV3DTO() {}
|
||||||
|
|
||||||
|
public PersonV3DTO(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PersonV3DTO(Long id, String name) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自然人id
|
* 自然人id
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user