文章列表
Enum良好的自我描述性便于封装业务状态
- 博客分类:
- 最佳实践
代码:
public enum RequestFromType {
errorType(0,"errorType"), orderCustomerRefund(1,"orderCustomerRefund"),orderServiceRefund(1,"orderServiceRefund"),afterRefund(3,"afterRefund");
private int code;
private String comments;
RequestFromType(int code,S ...