优化代码

This commit is contained in:
shuzheng 2017-02-24 00:03:18 +08:00
parent e28456a6b1
commit abf0f3fe86
3 changed files with 2 additions and 4 deletions

View File

@ -7,4 +7,5 @@ import com.zheng.common.base.BaseConstants;
* Created by shuzheng on 2017/2/19.
*/
public class CmsConstant extends BaseConstants {
}

View File

@ -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);
}

View File

@ -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;