郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
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
package com.gk.hotwork.Domain.Enum;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
 
public enum SmsSource {
 
    WARN(1,"报警信息");
 
 
    SmsSource(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    int code;
    @JsonValue
    String msg;
 
    public int getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
}