package org.stm.metric.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: 指标获取接口配置
 * @Author: jeecg-boot
 * @Date:   2023-11-06
 * @Version: V1.0
 */
@Data
@TableName("metric_api_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="metric_api_cfg对象", description="指标获取接口配置")
public class MetricApiCfg implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**指标ID*/
	@Excel(name = "指标ID", width = 15)
    @Dict(dictTable = "metric_monitor_set", dicCode = "mtrc_no", dicText = "mtrc_name")
    @ApiModelProperty(value = "指标编号")
    private String mtrcNo;
	/**API接口名称*/
	@Excel(name = "API接口名称", width = 15)
    @ApiModelProperty(value = "API接口名称")
    private String apiName;
	/**接口URL*/
	@Excel(name = "接口URL", width = 15)
    @ApiModelProperty(value = "接口URL")
    private String url;
	/**请求方法*/
	@Excel(name = "请求方法", width = 15)
    @ApiModelProperty(value = "请求方法")
    private String requestMethod;
	/**请求头*/
	@Excel(name = "请求头", width = 15)
    @ApiModelProperty(value = "请求头")
    private String requestHeaders;
	/**登录账号*/
	@Excel(name = "登录账号", width = 15)
    @ApiModelProperty(value = "登录账号")
    private String accout;
	/**登录密码*/
	@Excel(name = "登录密码", width = 15)
    @ApiModelProperty(value = "登录密码")
    private String pwd;
	/**请求参数*/
	@Excel(name = "请求参数", width = 15)
    @ApiModelProperty(value = "请求参数")
    private String params;
	/**响应参数*/
	@Excel(name = "返回值类型", width = 15)
    @ApiModelProperty(value = "返回值类型")
    private Integer valueType;
	/**返回值名*/
	@Excel(name = "返回值名", width = 15)
    @ApiModelProperty(value = "返回值名")
    private String valueField;

    @Excel(name = "通知接收人", width = 15)
    @ApiModelProperty(value = "通知接收人")
    private String receiver;

    @Excel(name = "倍数", width = 15)
    @ApiModelProperty(value = "倍数")
    private Float mult;

    @Excel(name = "开始日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始日期")
    private Date stDate;

    @Excel(name = "开始时刻", width = 15)
    @ApiModelProperty(value = "开始时刻")
    private Integer stTime;

}
