tao.mo

common-dependencies | 修改 | 常量以及枚举配置

mt
2024年11月4日13:28:58
1 +package com.fedex.connect.common.dependencies.contants;
2 +
3 +/**
4 + * @Author mt
5 + * @Description 字典目录层级常量
6 + * @Date 2024/11/4
7 + */
8 +public interface DictionaryConstants {
9 + //运单状态
10 + String CONSIGNMENT_STATUS = "CONSIGNMENT_STATUS";
11 + //用户类型
12 + String USER_TYPE = "USER_TYPE";
13 +}
1 +package com.fedex.connect.common.dependencies.enums.biz;
2 +
3 +/**
4 + * @Author mt
5 + * @Description 运单状态枚举
6 + * @Date 2024/11/4
7 + */
8 +public enum ConsignmentStatusEnum {
9 + CONSIGNMENT_STATUS_01("consignmentStatus_01", "待上传"),
10 + CONSIGNMENT_STATUS_02("consignmentStatus_02", "已上传"),
11 + CONSIGNMENT_STATUS_03("consignmentStatus_03", "已发送");
12 +
13 + private String code;
14 + private String msg;
15 +
16 + ConsignmentStatusEnum(String code, String msg) {
17 + this.code = code;
18 + this.msg = msg;
19 + }
20 +
21 + public String getCode() {
22 + return code;
23 + }
24 +
25 + public String getMsg() {
26 + return msg;
27 + }
28 +}