1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package com.qianwen.smartman.modules.notify.enums;
|
|
| public enum IntervalUnitEnum {
| DAY(0, "天"),
| HOUR(1, "小时"),
| MINUTE(2, "分钟");
|
| private int code;
| private String name;
|
| IntervalUnitEnum(final int code, final String name) {
| this.code = code;
| this.name = name;
| }
|
| public int getCode() {
| return this.code;
| }
|
| public String getName() {
| return this.name;
| }
| }
|
|