text: package com.github.zuihou.tenant.dto;
  
  import com.github.zuihou.base.entity.SuperEntity;
  import com.github.zuihou.tenant.enumeration.TenantStatusEnum;
  import io.swagger.annotations.ApiModel;
  import io.swagger.annotations.ApiModelProperty;
  import lombok.AllArgsConstructor;
  import lombok.Builder;
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  import lombok.NoArgsConstructor;
  import lombok.ToString;
  import lombok.experimental.Accessors;
  import org.hibernate.validator.constraints.Length;
  
  import javax.validation.constraints.NotNull;
  import java.io.Serializable;
  import java.time.LocalDateTime;
  
  /**
   * <p>
   * 实体类
   * 企业
   * </p>
   *
   * @author zuihou
   * @since 2019-10-24
   */
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  @Accessors(chain = true)
  @ToString(callSuper = true)
  @EqualsAndHashCode(callSuper = false)
  @Builder
  @ApiModel(value = "TenantUpdateDTO", description = "企业")
  public class TenantUpdateDTO implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @ApiModelProperty(value = "主键")
      @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
      private Long id;
  
      /**
       * 企业名称
       */
      @ApiModelProperty(value = "企业名称")
      @Length(max = 255, message = "企业名称长度不能超过255")
      private String name;
      /**
       * 状态
       * #{NORMAL:正常;FORBIDDEN:禁用;WAITING:待审核;REFUSE:拒绝}
       */
      @ApiModelProperty(value = "状态")
      private TenantStatusEnum status;
      /**
       * 责任人
       */
      @ApiModelProperty(value = "责任人")
      @Length(max = 50, message = "责任人长度不能超过50")
      private String duty;
      /**
       * 有效期
       * 为空表示永久
       */
      @ApiModelProperty(value = "有效期")
      private LocalDateTime expirationTime;
  
      /**
       * logo地址
       */
      @ApiModelProperty(value = "logo地址")
      @Length(max = 255, message = "logo地址长度不能超过255")
      private String logo;
  
      /**
       * 企业简介
       */
      @ApiModelProperty(value = "企业简介")
      @Length(max = 255, message = "企业简介长度不能超过255")
      private String describe;
  }
  