/**
 * @ProjectName: 智慧评标-主观分助手
 * @Package: com.zhpb.gdyd_zhpb_zgf.dto
 * @ClassName: SsoLoginResponse
 * @Description: SSO登录响应DTO，用于Swagger API文档说明
 * @Author: 张志锋
 * @Date: 2025-10-31
 * @Version: 1.0
 * @Copyright: © 2025 智慧评标-主观分助手
 */
package com.zhpb.gdyd_zhpb_zgf.dto;

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

/**
 * SSO登录响应DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "SSO登录响应")
public class SsoLoginResponse {
    
    @Schema(description = "响应码", example = "200")
    private Integer code;
    
    @Schema(description = "响应消息", example = "登录成功")
    private String message;
    
    @Schema(description = "用户数据")
    private UserData data;
    
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Schema(description = "用户数据")
    public static class UserData {
        
        @Schema(description = "JWT Token", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
        private String token;
        
        @Schema(description = "用户ID", example = "n001")
        private String userId;
        
        @Schema(description = "用户名称", example = "张三")
        private String userName;
        
        @Schema(description = "项目ID", example = "0001")
        private String projectId;
    }
}

