All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.founder.core.base.BaseResult Maven / Gradle / Ivy

There is a newer version: 3.6.1.9
Show newest version
package com.founder.core.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author zhunian
 * @create 2018-01-28 17:38
 **/
@ApiModel(value = "统一返回结果")
public class BaseResult implements Serializable {

    //成功
    public static final String SUCCESS = "1";

    //失败(非1也是失败)
    public static final String FAIL = "0";

    /**
     * 调用成功失败标识 1、成功 0、失败
     */
    @ApiModelProperty(value = "调用成功失败标识 1、成功 0、失败")
    private String code;

    /*
     *数据库处理结果描述
     */
    @ApiModelProperty(value = "数据库处理结果描述")
    private Object object;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy