mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 版本升级及小问题调整
This commit is contained in:
@@ -46,6 +46,19 @@ export function isEquals(obj1: any, obj2: any, msg: string) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 断言不能为空值,即null,0,''等
|
||||
*
|
||||
* @param obj1 对象1
|
||||
* @param obj2 对象2
|
||||
* @param msg 错误消息
|
||||
*/
|
||||
export function notBlank(obj1: any, msg: string) {
|
||||
if (!obj1) {
|
||||
throw new AssertError(msg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 断言表达式为true
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user