package com.malk.server.eiam;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * EIAM 用户写操作原始响应。
 *
 * <p>CreateUser 成功时返回 userId，Patch/Delete/设置主组织成功时返回空对象；
 * 失败时由 code/error/message/error_description 承载信息。</p>
 */
@Data
public class EiamApiResponse {

    private String userId;
    private String code;
    private String error;
    private String message;

    @JSONField(name = "error_description")
    private String errorDescription;

    private String requestId;
}
