add apis
CI / changes (push) Successful in 1m35s
CI / ad (push) Successful in 32s
CI / admin (push) Successful in 25s
CI / bff (push) Successful in 22s
CI / chore (push) Successful in 27s
CI / equipment (push) Successful in 24s
CI / express (push) Successful in 24s
CI / factory (push) Successful in 22s
CI / message (push) Successful in 21s
CI / order (push) Successful in 23s
CI / payment (push) Successful in 23s
CI / percutaneous (push) Successful in 21s
CI / product (push) Successful in 22s
CI / record (push) Successful in 21s
CI / sale (push) Successful in 21s
CI / support (push) Successful in 22s
CI / task (push) Successful in 23s
CI / user (push) Successful in 23s
CI / water (push) Successful in 24s
CI / wecom (push) Successful in 24s

This commit is contained in:
2026-10-21 16:56:57 +08:00
parent 413eb97de7
commit fa465a01f0
8 changed files with 166 additions and 48 deletions
+11
View File
@@ -319,6 +319,17 @@ func RandString(num uint8) string {
return string(res)
}
func RandNumber(num uint8) string {
chars := "123456789"
rand.Seed(time.Now().UnixNano())
res := make([]byte, num)
for i := range res {
res[i] = chars[rand.Intn(len(chars))]
}
return string(res)
}
// ExcelColumn 定义导出的列:表头 + 对应结构体字段
type ExcelColumn struct {
Header string // 表头显示名称