Newer
Older
newfiber-data-adapter / src / main / java / org / springnewfiber / dataadapter / xf / entity / BaseXfInterfaceEntity.java
@dongjt dongjt on 15 Jun 2022 850 bytes 对接讯飞接口数据
package org.springnewfiber.dataadapter.xf.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: newfiber-data-adapter
 * @description:
 * @author: djt
 * @create: 2022-06-14 14:38
 **/
@Data
public class BaseXfInterfaceEntity implements Serializable {
    @JsonProperty(value ="st")
    @ApiModelProperty(value = "站码")
    private String stcd;
    @JSONField(serialize = false)
    @ApiModelProperty(value = "测站名称")
    private String stnm;
    @JsonProperty(value ="tt")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "监测时间")
    private Date tm;
}