/** * Copyright (c) 2018 人人开源 All rights reserved. * * https://www.renren.io * * 版权所有,侵权必究! */ package com.example.server.sysOss.model; /** * 常量 * * @author hehz */ public interface Constant { interface Cache { String USER = "userCache"; String DEPT = "deptCache"; String TOKEN = "tokenCache"; String SYS = "sysCache"; String ACTIVITI = "activitiCache"; String MenuApply = "menuApplyCache"; } interface Sys { Long PLATFORM_TENANT_ID = 0L; // 平台用户的租户id Long MENU_ROOT = 0L; // 菜单根节点标识 Long DEPT_ROOT = 0L; // 部门根节点标识 Long DICT_ROOT = 0L; // 数据字典根节点标识 String TOKEN_HEADER = "token";// token header } interface Permissions { String SUPER_ADMIN = "sys:super:admin"; } interface TableColumn { String TENANT_ID = "tenant_id"; String IS_DELETE = "is_delete"; String SORT = "sort"; } interface Field { String USER = "userId"; String TENANT = "tenantId"; String COMPANY = "companyId"; String DEPT = "deptId"; String IS_DELETE = "isDelete"; } interface Bool { int YES = 1;// 是 int NO = 0;// 否 } interface DeptType {// 部门类型,这里只管理公司,部门类型通过字典配置 int COMPANY = 1;// 公司 } interface RoleType { int NORMAL = 0;// 普通角色 int TENANT = 1;// 租户角色 } // 查询字段 interface Q { String SQL_FILTER = "sqlFilter";// 数据权限过滤 String PAGE = "page"; // 当前页码 String LIMIT = "limit"; // 每页条数 String ORDER_FIELD = "orderField"; // 排序字段 String ORDER = "order"; // 排序方式 } // 查询字段名称 interface QV { String PAGE = "页码,1开始"; String LIMIT = "每页条数"; String ORDER_FIELD = "排序字段"; String ORDER = "排序方式"; } // 查询字段数据类型 interface QT { String STRING = "String"; String INT = "int"; String LONG = "Long"; String DOUBLE = "double"; String Boolean = "Boolean"; } interface ParamKey {// 参数key String INIT_PASSWORD_KEY = "INIT_PASSWORD_KEY";// 初始化密码 String IS_LOGIN_NEED_CAPTURE = "IS_LOGIN_NEED_CAPTURE";// 是否需要登录 } }