采用枚举类型
parent
2248b0b9b6
commit
64a918838e
@ -1,19 +0,0 @@
|
||||
package com.ruoyi.framework.aspectj.lang.constant;
|
||||
|
||||
/**
|
||||
* 操作状态
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public class BusinessStatus
|
||||
{
|
||||
/** 其它 */
|
||||
public static final String OTHER = "-1";
|
||||
|
||||
/** 成功 */
|
||||
public static final String SUCCESS = "0";
|
||||
|
||||
/** 失败 */
|
||||
public static final String FAIL = "1";
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
package com.ruoyi.framework.aspectj.lang.constant;
|
||||
|
||||
/**
|
||||
* 业务操作类型
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public class BusinessType
|
||||
{
|
||||
/** 其它 */
|
||||
public static final String OTHER = "0";
|
||||
/** 新增 */
|
||||
public static final String INSERT = "1";
|
||||
/** 修改 */
|
||||
public static final String UPDATE = "2";
|
||||
/** 删除 */
|
||||
public static final String DELETE = "3";
|
||||
/** 授权 */
|
||||
public static final String GRANT = "4";
|
||||
/** 导出 */
|
||||
public static final String EXPORT = "5";
|
||||
/** 导入 */
|
||||
public static final String IMPORT = "6";
|
||||
/** 强退 */
|
||||
public static final String FORCE = "7";
|
||||
/** 生成代码 */
|
||||
public static final String GENCODE = "8";
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package com.ruoyi.framework.aspectj.lang.constant;
|
||||
|
||||
/**
|
||||
* 多数据源别名
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public class DataSourceName
|
||||
{
|
||||
/** 主库 */
|
||||
public static final String MASTER = "master";
|
||||
|
||||
/** 从库 */
|
||||
public static final String SLAVE = "slave";
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
package com.ruoyi.framework.aspectj.lang.constant;
|
||||
|
||||
/**
|
||||
* 操作人类别
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public class OperatorType
|
||||
{
|
||||
/** 其它 */
|
||||
public static final String OTHER = "0";
|
||||
|
||||
/** 后台用户 */
|
||||
public static final String MANAGE = "1";
|
||||
|
||||
/** 渠道用户 */
|
||||
public static final String CHANNEL = "2";
|
||||
|
||||
/** 手机端用户 */
|
||||
public static final String MOBILE = "3";
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.ruoyi.framework.aspectj.lang.enums;
|
||||
|
||||
/**
|
||||
* 操作状态
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public enum BusinessStatus
|
||||
{
|
||||
/**
|
||||
* 成功
|
||||
*/
|
||||
SUCCESS,
|
||||
|
||||
/**
|
||||
* 失败
|
||||
*/
|
||||
FAIL,
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.ruoyi.framework.aspectj.lang.enums;
|
||||
|
||||
/**
|
||||
* 业务操作类型
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public enum BusinessType
|
||||
{
|
||||
/**
|
||||
* 其它
|
||||
*/
|
||||
OTHER,
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
INSERT,
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
UPDATE,
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
DELETE,
|
||||
|
||||
/**
|
||||
* 授权
|
||||
*/
|
||||
GRANT,
|
||||
|
||||
/**
|
||||
* 导出
|
||||
*/
|
||||
EXPORT,
|
||||
|
||||
/**
|
||||
* 导入
|
||||
*/
|
||||
IMPORT,
|
||||
|
||||
/**
|
||||
* 强退
|
||||
*/
|
||||
FORCE,
|
||||
|
||||
/**
|
||||
* 生成代码
|
||||
*/
|
||||
GENCODE,
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.framework.aspectj.lang.enums;
|
||||
|
||||
/**
|
||||
* 数据源
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public enum DataSourceType
|
||||
{
|
||||
/**
|
||||
* 主库
|
||||
*/
|
||||
MASTER,
|
||||
|
||||
/**
|
||||
* 从库
|
||||
*/
|
||||
SLAVE
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.ruoyi.framework.aspectj.lang.enums;
|
||||
|
||||
/**
|
||||
* 操作人类别
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
*/
|
||||
public enum OperatorType
|
||||
{
|
||||
/**
|
||||
* 其它
|
||||
*/
|
||||
OTHER,
|
||||
|
||||
/**
|
||||
* 后台用户
|
||||
*/
|
||||
|
||||
MANAGE,
|
||||
|
||||
/**
|
||||
* 手机端用户
|
||||
*/
|
||||
MOBILE
|
||||
}
|
Loading…
Reference in New Issue