parent
06c82ee572
commit
bd9b5ec6af
@ -1,14 +0,0 @@
|
||||
package org.opsli.common.base.service.impl;
|
||||
|
||||
/**
|
||||
* @BelongsProject: opsli-boot
|
||||
* @BelongsPackage: org.opsli.common.base.service.impl
|
||||
* @Author: Parker
|
||||
* @CreateTime: 2020-09-14 17:31
|
||||
* @Description: ServiceImpl 基类 - 实现类
|
||||
*/
|
||||
public class CrudServiceImpl {
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package org.opsli.common.enums;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @BelongsProject: opsli-boot
|
||||
* @BelongsPackage: org.opsli.common.enums
|
||||
* @Author: Parker
|
||||
* @CreateTime: 2020-09-17 23:40
|
||||
* @Description: 通过单例 模式 生成系统唯一标示
|
||||
*/
|
||||
public enum SystemInfo {
|
||||
|
||||
/** 实例 */
|
||||
INSTANCE;
|
||||
|
||||
private String systemID;
|
||||
|
||||
SystemInfo(){
|
||||
// 生成系统ID
|
||||
systemID = UUID.randomUUID().toString().replaceAll("-","");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得系统ID
|
||||
* @return String
|
||||
*/
|
||||
public String getSystemID() {
|
||||
return systemID;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package org.opsli.common.msg;
|
||||
|
||||
import org.opsli.common.base.msg.BaseMsg;
|
||||
|
||||
/**
|
||||
* @BelongsProject: opsli-boot
|
||||
* @BelongsPackage: org.opsli.core.msg
|
||||
* @Author: Parker
|
||||
* @CreateTime: 2020-09-13 19:36
|
||||
* @Description: 核心类 - 消息
|
||||
*/
|
||||
public enum CommonMsg implements BaseMsg {
|
||||
|
||||
|
||||
/** Controller 参数默认序列化 */
|
||||
EXCEPTION_CONTROLLER_MODEL(10100,"序列化对象失败!"),
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
private int code;
|
||||
private String message;
|
||||
|
||||
CommonMsg(int code, String message){
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue