EnumColourElement.java
728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.brframework.commoncms.utils;
/**
* @author 揭光智
* @date 2019/02/17
*/
public enum EnumColourElement {
/**
* 颜色表
*/
NONE(null),
//Http请求对应胡颜色表,配色参考Swagger文档.
GET("#0F6AB4"),
POST("#10A54A"),
PUT("#C5862B"),
DELETE("#A41E22"),
HEAD("#9012FE"),
PATCH("#50E3C2"),
OPTIONS("#0D5AA7"),
TRACE("#FAFAFA"),
//常用颜色表
RED("#FF4E56"),
GREEN("#00FF00"),
BLUE("#0000FF"),
WHITE("#FFFFFF"),
BLACK("#000000");
//自定义颜色表
private final String color;
EnumColourElement(String color) {
this.color = color;
}
public String color() {
return color;
}
}