package com.qqchen.deploy.backend.system.model.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "登录响应")
public class LoginResponse extends UserResponse {

    @Schema(description = "JWT Token")
    private String token;

    @Schema(description = "角色代码列表", example = "[\"ROLE_ADMIN\", \"ROLE_DEV\"]")
    private List<String> roles;

    @Schema(description = "权限代码列表", example = "[\"system:user:list\", \"deploy:team:create\"]")
    private List<String> permissions;

    @Schema(description = "菜单树")
    private List<Object> menus;

}
 