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
  | package com.doumee.dao.timer.entity; 
 |    
 |  /** 
 |   * @author 公众号:知了一笑 
 |   * @since 2023-07-26 10:05 
 |   */ 
 |  public enum JobState { 
 |    
 |      JOB_RUN(1, "运行"), 
 |      JOB_STOP(2, "暂停"), 
 |      JOB_DEL(3, "删除"); 
 |    
 |      private int status; 
 |      private String desc; 
 |    
 |      JobState(int status, String desc) { 
 |          this.status = status; 
 |          this.desc = desc; 
 |      } 
 |    
 |      public int getStatus() { 
 |          return status; 
 |      } 
 |    
 |      public String getDesc() { 
 |          return desc; 
 |      } 
 |    
 |  } 
 |  
  |