提交 abf0f3fe 编写于 作者: shuzheng5201314's avatar shuzheng5201314

优化代码

上级 e28456a6
......@@ -7,4 +7,5 @@ import com.zheng.common.base.BaseConstants;
* Created by shuzheng on 2017/2/19.
*/
public class CmsConstant extends BaseConstants {
}
......@@ -8,10 +8,6 @@ import com.zheng.common.base.BaseResult;
*/
public class CmsResult extends BaseResult {
public CmsResult(int code, String message, Object data) {
super(code, message, data);
}
public CmsResult(CmsResultConstant cmsResultConstant, Object data) {
super(cmsResultConstant.getCode(), cmsResultConstant.getMessage(), data);
}
......
......@@ -7,6 +7,7 @@ package com.zheng.cms.common.constant;
public enum CmsResultConstant {
SUCCESS(1, "success"),
FILE_TYPE_ERROR(20001, "File type not supported!");
public int code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册