Commit f5bb3fe9 authored by mengmeng's avatar mengmeng

add enum OrderStatus

parent 3ca0a8c6
......@@ -178,4 +178,43 @@ public interface Constant {
return value;
}
}
}
\ No newline at end of file
/**
* 订单状态
*/
enum OrderStatus{
/**
* 未接单/已预约
*/
BOOKED(0,"未接单"),
/**
* 已接单
*/
ORDER(1,"已接单"),
/**
* 已完成
*/
DONE(2,"已完成"),
/**
* 已取消
*/
CANCLE(3,"已取消");
private int status;
private String message;
OrderStatus(int status,String message){
this.status = status;
this.message = message;
}
public int geStatus(){
return status;
}
public String getMessage() {
return message;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment