package com.reading.platform.dto.response;

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

/**
 * 简单消息响应
 */
@Data
@Schema(description = "简单消息响应")
public class MessageResponse {

    @Schema(description = "消息内容", example = "操作成功")
    private String message;

    public static MessageResponse of(String message) {
        MessageResponse response = new MessageResponse();
        response.setMessage(message);
        return response;
    }
}
