You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
811 B
32 lines
811 B
package club.pojo;
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import lombok.Data;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
|
|
@Data
|
|
public class Pet {
|
|
private Integer id;
|
|
private String petName;
|
|
private String petType;
|
|
private String sex;
|
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
private Date birthday;
|
|
private String pic;
|
|
private Integer state;
|
|
private String remark;
|
|
|
|
@TableField(exist = false)
|
|
private List<AdoptAnimal> adoptAnimalList=new ArrayList<>();
|
|
@TableField(exist = false)
|
|
private List<Comment> commentList=new ArrayList<>();
|
|
|
|
}
|