package com.cpop.system.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Description:
 * date: 2023/5/9 14:21
 *
 * @Author DB
 */
@Data
@Accessors(chain = true)
@Schema(description = "角色分页返回对象")
public class RolePageVo {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private String id;

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    private String roleName;

    /**
     * 角色值
     */
    @Schema(description = "角色值")
    private String roleValue;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private Boolean status;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer orderNo;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 角色所属菜单id集合
     */
    @Schema(description = "角色所属菜单id集合")
    @Column(ignore = true)
    private List<String> menuIds;
}
