src/main/java/com/phms/model/LayuiMap.java
(完整代码) 1KBpackage com.phms.model;
import java.util.HashMap;
/**
* class name: LayuiMap返回模型 <BR>
* class description: please write your description <BR>
*/
public class LayuiMap extends HashMap<String, Object> {
/**
* define a field serialVersionUID which type is long
*/
private static final long serialVersionUID = 1L;
/**
* Method name: success <BR>
* Description: 返回成功 <BR>
*
* @return LayuiMap<BR>
*/
public LayuiMap success() {
this.put("code", 0);
this.put("src", "");
return this;
}
/**
* Method name: fail <BR>
* Description: 返回失败 <BR>
*
* @return LayuiMap<BR>
*/
public LayuiMap fail() {
this.put("code", -1);
return this;
}
/**
* Method name: message <BR>
* Description: 返回信息 <BR>
*
* @param message
* @return LayuiMap<BR>
*/
public LayuiMap message(Object message) {
this.put("message", message);
return this;
}
/**
* 返回数据
*/
public LayuiMap data(Object message) {
this.put("data", message);
return this;
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
