feat: mid

This commit is contained in:
Rogee
2024-12-06 18:47:48 +08:00
parent 869625d70a
commit e15d8d9bb2
3 changed files with 29 additions and 10 deletions

View File

@@ -62,8 +62,9 @@ func Serve(cmd *cobra.Command, args []string) error {
return container.Container.Invoke(func(http Http) error {
mid := http.Middlewares
http.Service.Engine.Use(mid.WeChatVerify)
http.Service.Engine.Use(mid.AuthUserInfo)
http.Service.Engine.Use(mid.WeChatAuthUserInfo)
http.Service.Engine.Use(mid.WeChatSilentAuth)
http.Service.Engine.Use(mid.JwtParse)
mounts := map[string][]string{
"/t/{tenant}": {"users", "medias"},