package com.search.supersearch.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel("用户信息实体类")
public class UserInfo {
    @NonNull
    @JsonProperty("id")
    @ApiModelProperty("用户id，长度小于32")
    private String id;

    @JsonProperty("name")
    @ApiModelProperty("用户名称")
    private String name;

    @JsonProperty("permission")
    @ApiModelProperty("用户操作权限，write：可编辑，read：预览")
    private String permission;

    @JsonProperty("avatar_url")
    @ApiModelProperty("用户头像地址")
    private String avatarUrl;
}
