package com.aixs.crud.bean; import java.util.HashMap; import java.util.Map; /** * * ͨ�õķ����� * @author AixsCode * */ public class Msg { //״̬�� 100-�ɹ� 200-ʧ�� private int code; private String msg; //�û�Ҫ���ظ������������ private Map<String, Object> extend=new HashMap<String, Object>(); public static Msg success() { Msg result=new Msg(); result.setCode(100); result.setMsg("成功"); return result; } public static Msg fail() { Msg result=new Msg(); result.setCode(100); result.setMsg("失败"); return result; } public Msg add(String key, Object value) { this.getExtend().put(key, value); return this; } public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public Map<String, Object> getExtend() { return extend; } public void setExtend(Map<String, Object> extend) { this.extend = extend; } }
最近下载更多
血羽如风 LV4
1月25日
taoshen95 LV14
2023年12月25日
2775645521 LV5
2023年12月13日
微信网友_6512020493586432 LV2
2023年6月19日
雨后不归 LV4
2022年12月18日
sweetbox LV10
2022年9月3日
qq970040477 LV23
2022年4月11日
快来救救胡桃 LV6
2021年12月30日
huyyyyy LV8
2021年12月24日
王东东 LV17
2021年12月24日
最近浏览更多
pangzhihui LV12
4月17日
血羽如风 LV4
1月25日
XiaoSong888 LV2
1月10日
bjlabc LV1
1月4日
沈从文 LV2
1月1日
taoshen95 LV14
2023年12月25日
wwwww816 LV3
2023年12月19日
fff2003 LV6
2023年12月14日
2775645521 LV5
2023年12月13日
242958421asdfgh
2023年11月9日
暂无贡献等级