
org.swiftboot.web.result.DefaultStatusChangeResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swiftboot-web Show documentation
Show all versions of swiftboot-web Show documentation
Basic module for enterprise web applications
package org.swiftboot.web.result;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 默认的修改状态返回对象
*
* @author swiftech
**/
@ApiModel("Default status changing result")
public class DefaultStatusChangeResult {
/**
* 新状态码
*/
@ApiModelProperty(value = "New status code")
@JsonProperty("new_status_code")
private int newStatusCode;
/**
* 新状态名称
*/
@ApiModelProperty(value = "New status name")
@JsonProperty("new_status_name")
private String newStatusName;
public DefaultStatusChangeResult(int newStatusCode) {
this.newStatusCode = newStatusCode;
}
public DefaultStatusChangeResult(int newStatusCode, String newStatusName) {
this.newStatusCode = newStatusCode;
this.newStatusName = newStatusName;
}
public int getNewStatusCode() {
return newStatusCode;
}
public void setNewStatusCode(int newStatusCode) {
this.newStatusCode = newStatusCode;
}
public String getNewStatusName() {
return newStatusName;
}
public void setNewStatusName(String newStatusName) {
this.newStatusName = newStatusName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy