package com.rongyichuang.player.dto; /** * 晋级操作结果类 */ public class PromotionResult { private Boolean success; private String message; private Integer promotedCount; public PromotionResult() {} public PromotionResult(Boolean success, String message, Integer promotedCount) { this.success = success; this.message = message; this.promotedCount = promotedCount; } public static PromotionResult success(String message, Integer promotedCount) { return new PromotionResult(true, message, promotedCount); } public static PromotionResult failure(String message) { return new PromotionResult(false, message, 0); } // Getters and Setters public Boolean getSuccess() { return success; } public void setSuccess(Boolean success) { this.success = success; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Integer getPromotedCount() { return promotedCount; } public void setPromotedCount(Integer promotedCount) { this.promotedCount = promotedCount; } }