chore: opt template code

This commit is contained in:
engigu
2025-12-06 21:11:15 +08:00
parent bed2b2b08c
commit a2acd49884
11 changed files with 54 additions and 10 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ type CronMessages struct {
func GenerateMsgUniqueID() string {
newUUID := util.GenerateUniqueID()
return fmt.Sprintf("C-%s", newUUID)
return fmt.Sprintf("CM%s", newUUID)
}
func AddSendCronMsg(
+1 -1
View File
@@ -15,7 +15,7 @@ type SendTasks struct {
func GenerateTaskUniqueID() string {
newUUID := util.GenerateUniqueID()
return fmt.Sprintf("T-%s", newUUID)
return fmt.Sprintf("TK%s", newUUID)
}
// AddSendTaskWithID 添加实例的时候添加任务
+1 -1
View File
@@ -17,7 +17,7 @@ type SendWays struct {
func GenerateWayUniqueID() string {
newUUID := util.GenerateUniqueID()
return fmt.Sprintf("W-%s", newUUID)
return fmt.Sprintf("WY%s", newUUID)
}
func AddSendWay(name string, auth string, wayType string, createdBy string, modifiedBy string) error {