feat 改名

This commit is contained in:
2025-12-15 11:29:27 +08:00
parent f511364984
commit 4983638c19
27 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package http_handler
import (
"common/utils"
"gateway/handler/http_handler/helper/render"
"github.com/gin-gonic/gin"
)
type UniqueIDResp struct {
ID string `json:"id"`
}
// GenSnowflake 生成雪花ID
func GenSnowflake(c *gin.Context) {
render.Json(c, render.OK, &UniqueIDResp{ID: utils.SnowflakeInstance().Generate().String()})
}