| /** | 
|  * Copyright (c) 2016-2020 人人开源 All rights reserved. | 
|  * <p> | 
|  * https://www.renren.io | 
|  * <p> | 
|  * 版权所有,侵权必究! | 
|  */ | 
|   | 
| package com.zt.modules.message.enums; | 
|   | 
| import com.zt.common.annotation.Dictionary; | 
| import com.zt.common.constant.IDictionary; | 
|   | 
| /** | 
|  * 接受者类型枚举 | 
|  * | 
|  * @author hehz | 
|  */ | 
| @Dictionary(type = "notice_receiver", name = "接受者类型") | 
| public enum ReceiverType implements IDictionary { | 
|   | 
|     DEPT(1, "部门"), USER(2, "用户"); | 
|   | 
|     private Integer value; | 
|     private String name; | 
|   | 
|     ReceiverType(int value, String name) { | 
|         this.value = value; | 
|         this.name = name; | 
|     } | 
|   | 
|     @Override | 
|     public Integer getValue() { | 
|         return value; | 
|     } | 
|   | 
|     @Override | 
|     public String getName() { | 
|         return name; | 
|     } | 
| } |