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

cn.dyaoming.models.ModelResult Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package cn.dyaoming.models;


/**
 * 

带结果的返回集合

* * @param 实体类型 * @author DYAOMING * @since 2019-04-17 * @version 0.0.1 */ public class ModelResult extends ApiResult { private static final long serialVersionUID = 1L; private E entity; /** * 默认构造函数 */ public ModelResult() { super(); } /** * 基础构造函数 * * @param cFlag boolean类型 结果标志 * @param cCode String类型 结果编码 */ public ModelResult(boolean cFlag, String cCode) { super(cFlag, cCode); } /** * 带结果说明的构造函数 * * @param cFlag boolean类型 结果标志 * @param cCode String类型 结果编码 * @param cMsg String类型 结果说明 */ public ModelResult(boolean cFlag, String cCode, String cMsg) { super(cFlag, cCode, cMsg); } /** * 结果初始化的构造函数 * * @param entity 实体内容类 */ public ModelResult(E entity) { super(); setEntity(entity); } public E getEntity() { return entity; } public void setEntity(E entity) { this.entity = entity; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy