This commit is contained in:
2025-07-11 21:05:58 +08:00
parent 5b4392894f
commit e3d64e7485
74 changed files with 14379 additions and 697 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"log"
"os"
"time"
_ "tyapi-server/docs" // docs is generated by Swag CLI, you have to import it.
"tyapi-server/internal/app"
@@ -38,6 +39,9 @@ var (
)
func main() {
// 设置时区为北京时间
time.Local = time.FixedZone("CST", 8*3600)
// 命令行参数
var (
showVersion = flag.Bool("version", false, "显示版本信息")