You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xian/ResultCode.java

44 lines
686 B

package com.power.travel.core;
/**
* HTTP
* 200 5000
* ajax
*/
public enum ResultCode {
/**
*
*/
SUCCESS(200),
/**
*
*/
FAIL(400),
/**
*
*/
BIND_FAIL(417),
/**
*
*/
NOT_FOUND(404),
/**
*
*/
INTERNAL_SERVER_ERROR(500),
/**
*
*/
DATA_ERROR(5000);
private int code;
ResultCode(int code) {
this.code = code;
}
public int getCode() {
return code;
}
}