package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableQueryField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import com.bohuikeji.frame.module.admin.entity.web.block.TextBlock;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_malt_field")
@ApiModel(value="TMaltField对象", description="麦芽田表")
public class TMaltField extends EntityBase<TMaltField> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="id(新增时请留空或null)")
    @TableId(value = "malt_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer maltId;

    @ApiModelProperty(value = "平台方门店id")
    @TableField("shop_id")
    @TableShowField("平台方门店id")
    @TableNewField(edit = false)
    @TableQueryField(show = false)
    private Integer shopId;

    @ApiModelProperty(value = "账户id")
    @TableField("cus_id")
    @TableShowField("账户id")
    @TableNewField(edit = false)
    @TableQueryField(show = false)
    private Integer cusId;

    @ApiModelProperty(value = "访问令牌accessToken")
    @TableField("access_token")
    @TableShowField("访问令牌accessToken")
    @TableNewField(edit = false)
    @TableQueryField(show = false)
    private String accessToken;

    @ApiModelProperty(value = "长时令牌refreshToken")
    @TableField("refresh_token")
    @TableShowField("长时令牌refreshToken")
    @TableNewField(edit = false)
    @TableQueryField(show = false)
    private String refreshToken;

    @ApiModelProperty(value = "过期时间")
    @TableField("refresh_expire_time")
    @TableShowField("过期时间")
    @TableNewField(edit = false)
    @TableQueryField(like = false,sort = 0)
    private Integer refreshExpireTime;

    @ApiModelProperty(value = "访问令牌过期时间")
    @TableField("expire_time")
    @TableShowField("访问令牌过期时间")
    @TableNewField(edit = false)
    @TableQueryField(like = false,sort = 0)
    private Integer expireTime;

    @ApiModelProperty(value = "长时令牌refreshToken")
    @TableField("malt_state")
    @TableShowField("长时令牌refreshToken")
    @TableNewField(edit = false)
    @TableQueryField(show = false)
    private String maltState;
}
