All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcPersonalAccessTokensAddDTO Maven / Gradle / Ivy


package k.e.book.ddh.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 14:25
 */
@Data
@ApiModel(value="CcPersonalAccessTokensAddDTO", description="CcPersonalAccessTokens")
public class CcPersonalAccessTokensAddDTO implements Serializable{

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "tokenableType")
    private String tokenableType;

    @ApiModelProperty(value = "tokenableId")
    private Long tokenableId;

    @ApiModelProperty(value = "name")
    private String name;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "abilities")
    private String abilities;

    @ApiModelProperty(value = "lastUsedAt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUsedAt;

    @ApiModelProperty(value = "expiresAt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expiresAt;

    @ApiModelProperty(value = "createdAt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty(value = "updatedAt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy