Skip to content
Snippets Groups Projects
Commit 1c63d127 authored by Zekun Fan's avatar Zekun Fan
Browse files

set up 2

parent d7b4e61c
No related branches found
No related tags found
1 merge request!1Master
package com.example.freshonline.utils.responseUtils;
public enum Message {
ADD_SUCCESS("add successful"),
MOD_SUCCESS("modify successful"),
ADD_FAIL("add failed"),
;
private String msg;
Message(String msg){
this.msg = msg;
}
}
package com.example.freshonline.utils.responseUtils;
import com.alibaba.fastjson.JSONObject;
public class RespBuilder {
private final static String code = "code";
private final static String msg = "msg";
private final static String data = "data";
}
package com.example.freshonline.utils.responseUtils;
public enum ValidRespRule {
COLLECTION_NOT_EMPTY(0),
OBJECT_NOT_NULL(1),
BOOLEAN(2),
;
private int rule_id;
ValidRespRule(int rule_id) {
this.rule_id = rule_id;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment