package com.sf.service.gateway.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sf.common.annotation.Excel;
import com.sf.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 服务列表
 * 
 * @author zoukun
 * @date 2024-04-22
 */
@Data
public class GatewayServerListVO {
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("服务名称")
    private String serverName;

    @ApiModelProperty("服务地址，路由模式为路由名称")
    private String serverAddress;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("服务状态")
    private String status;

    @ApiModelProperty("创建者")
    private String created;

    @ApiModelProperty("更新者")
    private String modified;

    @ApiModelProperty("服务模式（NORMAL=普通模式，ROUTE=路由模式）")
    private String serviceModel;

    @ApiModelProperty("路由规则id")
    private Long routeId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
