mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-09 17:30:25 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
@@ -2,7 +2,10 @@ package stringx
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
const Nums = "0123456789"
|
||||
@@ -14,6 +17,11 @@ func Rand(l int) string {
|
||||
return RandByChars(l, Nums+LowerChars+UpperChars)
|
||||
}
|
||||
|
||||
// RandUUID
|
||||
func RandUUID() string {
|
||||
return strings.Replace(uuid.New().String(), "-", "", -1)
|
||||
}
|
||||
|
||||
// 根据传入的chars,随机生成指定位数的字符串
|
||||
func RandByChars(l int, chars string) string {
|
||||
strList := []byte(chars)
|
||||
|
||||
Reference in New Issue
Block a user