Person.java 913 字节
Newer Older
Q
qinyingjie 已提交
1 2 3
package com.kwan.springbootkwan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
Q
qinyingjie 已提交
4 5
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
Q
qinyingjie 已提交
6 7 8

import java.util.Date;

Q
qinyingjie 已提交
9
@ApiModel(value = "用户基本信息")
Q
qinyingjie 已提交
10
public class Person {
Q
qinyingjie 已提交
11
    @ApiModelProperty(value = "姓名")
Q
qinyingjie 已提交
12
    private String name;
Q
qinyingjie 已提交
13
    @ApiModelProperty(value = "年龄")
Q
qinyingjie 已提交
14
    private Integer age;
Q
qinyingjie 已提交
15
    @ApiModelProperty(value = "生日")
Q
qinyingjie 已提交
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}