This commit is contained in:
zyj
2025-08-26 18:53:34 +08:00
commit 96db69b7e4
9 changed files with 329 additions and 0 deletions

22
main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"fmt"
"go-desk-service/config"
"go-desk-service/router"
"strconv"
"github.com/gin-gonic/gin"
)
func main() {
appConfig, err := config.LoadConfig()
if err != nil {
fmt.Println(err)
fmt.Println("读取配置失败")
}
app := gin.Default()
router.Init(app)
app.Run(":" + strconv.Itoa(appConfig.Port))
}