package org.jeecg.modules.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 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)
 
public class MetricApiCfg implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

}
