/** * Copyright (c) 2018 äººäººå¼€æº All rights reserved. * * https://www.renren.io * * 版æƒæ‰€æœ‰ï¼Œä¾µæƒå¿…ç©¶ï¼ */ package com.iailab.framework.common.constant; /** * å¸¸é‡ * * @author Mark sunlightcs@gmail.com */ public interface Constant { /** * æˆåŠŸ */ int SUCCESS = 1; /** * 失败 */ int FAIL = 0; /** * èœå•æ ¹èŠ‚ç‚¹æ ‡è¯† */ Long MENU_ROOT = 0L; /** * éƒ¨é—¨æ ¹èŠ‚ç‚¹æ ‡è¯† */ Long DEPT_ROOT = 0L; /** * å‡åº */ String ASC = "asc"; /** * é™åº */ String DESC = "desc"; /** * 创建时间å—段å */ String CREATE_DATE = "create_date"; String CREATE_TIME = "create_time"; /** * æ•°æ®æƒé™è¿‡æ»¤ */ String SQL_FILTER = "sqlFilter"; /** * 当å‰é¡µç */ String PAGE = "page"; /** * æ¯é¡µæ˜¾ç¤ºè®°å½•æ•° */ String LIMIT = "limit"; /** * 排åºå—段 */ String ORDER_FIELD = "orderField"; /** * 排åºæ–¹å¼ */ String ORDER = "order"; /** * token header */ String TOKEN_HEADER = "token"; /** * tenantCode */ String TENANT_CODE = "tenantCode"; /** * tenantId */ String TENANT_ID = "tenantId"; /** * 云å˜å‚¨é…ç½®KEY */ String CLOUD_STORAGE_CONFIG_KEY = "CLOUD_STORAGE_CONFIG_KEY"; Integer DEL_FLAG_0 = 0; enum EnableStatus { DISABLED(0), NORMAL(1); private int value; private EnableStatus(int value) { this.value = value; } public int getValue() { return this.value; } } /** * å®šæ—¶ä»»åŠ¡çŠ¶æ€ */ enum ScheduleStatus { /** * æš‚åœ */ PAUSE(0), /** * æ£å¸¸ */ NORMAL(1); private int value; ScheduleStatus(int value) { this.value = value; } public int getValue() { return value; } } /** * 云æœåŠ¡å•† */ enum CloudService { /** * 七牛云 */ QINIU(1), /** * 阿里云 */ ALIYUN(2), /** * 腾讯云 */ QCLOUD(3); private int value; CloudService(int value) { this.value = value; } public int getValue() { return value; } } }