package shop.alien.entity.store.vo;

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

import java.util.Date;

/**
 * 子账号列表信息VO（包含主账号电话）
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@ApiModel(value = "SubAccountListVo对象", description = "子账号列表信息VO")
public class SubAccountListVo {

    @ApiModelProperty(value = "主账号ID")
    private Integer mainAccountId;

    @ApiModelProperty(value = "主账号联系电话")
    private String mainAccountPhone;

    @ApiModelProperty(value = "子账号中间表ID")
    private Integer subAccountId;

    @ApiModelProperty(value = "子账号用户ID")
    private Integer userId;

    @ApiModelProperty(value = "联系电话（子账号电话）")
    private String phone;

    @ApiModelProperty(value = "账号名称")
    private String accountName;

    @ApiModelProperty(value = "店铺ID")
    private Integer storeId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "状态（0:启用 1:禁用）")
    private Integer status;
}
