/*
 * @Author: Kane
 * @Date: 2025-03-15 17:21:50
 * @LastEditors: Kane
 * @FilePath: /cpicxim-huixiabao/src/main/java/com/cpic/xim/huixiabao/web/controllers/MediCover/MediCoverResponse.java
 * @Description:
 * 
 * Copyright (c) ${2023} by Kane, All Rights Reserved.
 */
package com.cpic.xim.huixiabao.web.controllers.MediCover;

import com.fasterxml.jackson.annotation.JsonProperty;

public class MediCoverResponse
{
    MediCoverResponse()
    {
        code       = "500";
        message    = "未知失败原因";
        subMessage = "";
        result     = new MediCoverResultInResponse( "", "" );
        success    = false;
    }

    public MediCoverResponse(
            String code,
            String message,
            String subMessage,
            String key,
            String content,
            Boolean success
    )
    {
        this.code       = code;
        this.message    = message;
        this.subMessage = subMessage;
        this.result     = new MediCoverResultInResponse( key, content );
        this.success    = success;
    }

    @JsonProperty( "code" )
    private String code;

    @JsonProperty( "message" )
    private String message;

    @JsonProperty( "subMessage" )
    private String subMessage;

    @JsonProperty( "result" )
    private MediCoverResultInResponse result;

    @JsonProperty( "success" )
    private Boolean success;
}