package com.zt.common.db.constant; import com.zt.common.annotation.Dictionary; import com.zt.common.constant.IDictionary; public interface AcceptValues { String INPUT = "INPUT"; String DICT = "DICT"; String USER = "USER"; String DEPT = "DEPT"; String COMPANY = "COMPANY"; // String TENANT = "TENANT"; interface Company { String CURRENT_ID = "currentId"; String CURRENT_IDS = "currentIds"; } interface Dept { String CURRENT_ID = "currentId"; String CURRENT_IDS = "currentIds"; } interface User { String CURRENT_ID = "currentId"; } @Dictionary(type = "scope_company", name = "公司控制类型") enum CompanyEnum implements IDictionary { CURRENT_ID(Company.CURRENT_ID, "登陆者公司"), CURRENT_IDS(Company.CURRENT_IDS, "登陆者公司及下属"), SELECT_ID("selectId", "指定公司"), SELECT_IDS("selectIds", "指定公司及下属"); private String value; private String name; CompanyEnum(String value, String name) { this.value = value; this.name = name; } @Override public String getValue() { return value; } @Override public String getName() { return name; } } @Dictionary(type = "scope_dept", name = "部门控制类型") enum DeptEnum implements IDictionary { CURRENT_ID(Dept.CURRENT_ID, "登陆者部门"), CURRENT_IDS(Dept.CURRENT_IDS, "登陆者部门及下属"), SELECT_ID("selectId", "指定部门"), SELECT_IDS( "selectIds", "指定部门及下属"); private String value; private String name; DeptEnum(String value, String name) { this.value = value; this.name = name; } @Override public String getValue() { return value; } @Override public String getName() { return name; } } @Dictionary(type = "scope_user", name = "用户控制类型") enum UserEnum implements IDictionary { CURRENT_ID(User.CURRENT_ID, "登陆者Id"); private String value; private String name; UserEnum(String value, String name) { this.value = value; this.name = name; } @Override public String getValue() { return value; } @Override public String getName() { return name; } } }