init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package main
import (
"fmt"
"os"
"91jd-server/app/appg"
"91jd-server/app/middleware/authuser"
"91jd-server/common/conf"
"91jd-server/common/ysqr"
)
func main() {
content := ysqr.Content{
UID: 19230828,
T: ysqr.Login,
LoginClaims: ysqr.LoginClaims{
DevID: "dd380c8973159955f3830a573ad6ba5f",
},
}
fmt.Println(content.String(authuser.GetTokenSecret()))
}
func init() {
cfg := appg.GlobalConfig{}
if err := conf.LoadJSON("config/app.json", &cfg); err != nil {
fmt.Printf("startUp get config error: %v\n", err)
os.Exit(1)
}
appg.Conf = &cfg
}