mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-27 11:30:25 +08:00
feat: dbms新增支持工单流程审批
This commit is contained in:
@@ -6,6 +6,14 @@ import (
|
||||
"text/template"
|
||||
)
|
||||
|
||||
// 逻辑空字符串(由于gorm更新结构体只更新非零值,所以使用该值最为逻辑空字符串,方便更新结构体)
|
||||
const LogicEmptyStr = "-"
|
||||
|
||||
// 是否为逻辑上空字符串
|
||||
func IsLogicEmpty(str string) bool {
|
||||
return str == "" || str == LogicEmptyStr
|
||||
}
|
||||
|
||||
// 可判断中文
|
||||
func Len(str string) int {
|
||||
return len([]rune(str))
|
||||
|
||||
Reference in New Issue
Block a user