2025-08-15 16:01:02 +08:00
|
|
|
package main
|
2025-10-23 18:02:29 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"datart/config"
|
|
|
|
|
"datart/data"
|
|
|
|
|
"datart/route"
|
|
|
|
|
"strconv"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
gin.SetMode(gin.ReleaseMode)
|
|
|
|
|
engine := gin.New()
|
|
|
|
|
|
|
|
|
|
route.LoadRoute(engine)
|
|
|
|
|
|
|
|
|
|
process := data.NewProcess()
|
|
|
|
|
process.StartDataProcessing()
|
|
|
|
|
|
|
|
|
|
port := strconv.Itoa(config.Conf().ServerConf().GetPort())
|
|
|
|
|
if err := engine.Run(":" + port); err != nil {
|
|
|
|
|
panic(err)
|
|
|
|
|
}
|
|
|
|
|
}
|