优化代码
This commit is contained in:
parent
e28456a6b1
commit
abf0f3fe86
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue