com.iqiny.silly.spring.controller.SillyResultWrapper Maven / Gradle / Ivy
/*
* Copyright iqiny.com
*
* https://gitee.com/iqiny/silly
*
* project name:silly-spring
* project description:top silly project pom.xml file
*/
package com.iqiny.silly.spring.controller;
/**
* 包装返回结果
*/
public class SillyResultWrapper {
public Object wrapperOk(Object obj){
return SillyR.ok(obj);
}
public Object wrapperOk(String msg, Object obj){
return SillyR.ok(msg, obj);
}
public Object wrapperError(String msg){
return SillyR.error(msg);
}
}