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
| package com.gk.hotwork.Domain.Enum;
|
| import com.baomidou.mybatisplus.annotation.EnumValue;
| import com.fasterxml.jackson.annotation.JsonValue;
|
| public enum SendStatus {
|
| UN_SEND(0,"未发送"),
| SUCCESS(1, "发送成功"),
| FAILURE(2, "发送失败"),
|
| ;
|
|
| SendStatus(int status, String msg) {
| this.status = status;
| this.msg = msg;
| }
|
| int status;
| @JsonValue
| String msg;
|
| public int getStatus() {
| return status;
| }
|
| public String getMsg() {
| return msg;
| }
| }
|
|