From 7b8e6f292f93b7d60b39691abb548f1873e523ec Mon Sep 17 00:00:00 2001 From: Michael Li Date: Fri, 30 Jun 2023 14:18:18 +0800 Subject: [PATCH] upgrade github.com/alimy/mir/v4 => v4.0.0-alpha.7 --- auto/api/v1/admin.go | 13 +++++++++++++ auto/api/v1/alipay_priv.go | 13 ------------- go.mod | 2 +- go.sum | 4 ++-- mirc/web/v1/admin.go | 2 +- mirc/web/v1/core.go | 2 +- mirc/web/v1/followship.go | 2 +- mirc/web/v1/friendship.go | 2 +- mirc/web/v1/loose.go | 2 +- mirc/web/v1/priv.go | 2 +- mirc/web/v1/pub.go | 2 +- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/auto/api/v1/admin.go b/auto/api/v1/admin.go index 4e5658a0..ad4ac308 100644 --- a/auto/api/v1/admin.go +++ b/auto/api/v1/admin.go @@ -12,6 +12,19 @@ import ( "github.com/rocboss/paopao-ce/internal/model/web" ) +type _binding_ interface { + Bind(*gin.Context) mir.Error +} + +type _render_ interface { + Render(*gin.Context) +} + +type _default_ interface { + Bind(*gin.Context, any) mir.Error + Render(*gin.Context, any, mir.Error) +} + type Admin interface { _default_ diff --git a/auto/api/v1/alipay_priv.go b/auto/api/v1/alipay_priv.go index 6028607d..02500522 100644 --- a/auto/api/v1/alipay_priv.go +++ b/auto/api/v1/alipay_priv.go @@ -12,19 +12,6 @@ import ( "github.com/rocboss/paopao-ce/internal/model/web" ) -type _binding_ interface { - Bind(*gin.Context) mir.Error -} - -type _render_ interface { - Render(*gin.Context) -} - -type _default_ interface { - Bind(*gin.Context, any) mir.Error - Render(*gin.Context, any, mir.Error) -} - type AlipayPriv interface { _default_ diff --git a/go.mod b/go.mod index 1370454c..c374c952 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/Masterminds/semver/v3 v3.2.1 github.com/afocus/captcha v0.0.0-20191010092841-4bd1f21c8868 github.com/alimy/cfg v0.3.0 - github.com/alimy/mir/v4 v4.0.0-alpha.6 + github.com/alimy/mir/v4 v4.0.0-alpha.7 github.com/aliyun/aliyun-oss-go-sdk v2.2.7+incompatible github.com/allegro/bigcache/v3 v3.1.0 github.com/bytedance/sonic v1.9.1 diff --git a/go.sum b/go.sum index 8508b359..e49de168 100644 --- a/go.sum +++ b/go.sum @@ -125,8 +125,8 @@ github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:C github.com/alexflint/go-filemutex v1.1.0/go.mod h1:7P4iRhttt/nUvUOrYIhcpMzv2G6CY9UnI16Z+UJqRyk= github.com/alimy/cfg v0.3.0 h1:9xgA0QWVCPSq9fFNRcYahVCAX22IL9ts2wrTQPfAStY= github.com/alimy/cfg v0.3.0/go.mod h1:rOxbasTH2srl6StAjNF5Vyi8bfrdkl3fLGmOYtSw81c= -github.com/alimy/mir/v4 v4.0.0-alpha.6 h1:bCFZ0HwFlT3Gsk5TgRGRyI4Xc/BCMR2VvuNghnTTHC0= -github.com/alimy/mir/v4 v4.0.0-alpha.6/go.mod h1:d58dBvw2KImcVbAUANrciEV/of0arMNsI9c/5UNCMMc= +github.com/alimy/mir/v4 v4.0.0-alpha.7 h1:ysAg2U3MDLj9QMB6lDqqGaz8uWwlq/ndDs9gmFceZWw= +github.com/alimy/mir/v4 v4.0.0-alpha.7/go.mod h1:d58dBvw2KImcVbAUANrciEV/of0arMNsI9c/5UNCMMc= github.com/aliyun/aliyun-oss-go-sdk v2.2.7+incompatible h1:KpbJFXwhVeuxNtBJ74MCGbIoaBok2uZvkD7QXp2+Wis= github.com/aliyun/aliyun-oss-go-sdk v2.2.7+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/allegro/bigcache/v3 v3.1.0 h1:H2Vp8VOvxcrB91o86fUSVJFqeuz8kpyyB02eH3bSzwk= diff --git a/mirc/web/v1/admin.go b/mirc/web/v1/admin.go index 8799fc8a..49c07ce4 100644 --- a/mirc/web/v1/admin.go +++ b/mirc/web/v1/admin.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Admin)) + Entry[Admin]() } // Admin 运维相关服务 diff --git a/mirc/web/v1/core.go b/mirc/web/v1/core.go index d81fa520..f12c7018 100644 --- a/mirc/web/v1/core.go +++ b/mirc/web/v1/core.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Core)) + Entry[Core]() } // Core 核心服务,需要授权访问 diff --git a/mirc/web/v1/followship.go b/mirc/web/v1/followship.go index e0123479..c44c7709 100644 --- a/mirc/web/v1/followship.go +++ b/mirc/web/v1/followship.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Followship)) + Entry[Followship]() } // Followship 关注者模式 服务 diff --git a/mirc/web/v1/friendship.go b/mirc/web/v1/friendship.go index 69757d27..b04f9622 100644 --- a/mirc/web/v1/friendship.go +++ b/mirc/web/v1/friendship.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Friendship)) + Entry[Friendship]() } // Friendship 好友模式 服务 diff --git a/mirc/web/v1/loose.go b/mirc/web/v1/loose.go index a5119656..a7fe6d7e 100644 --- a/mirc/web/v1/loose.go +++ b/mirc/web/v1/loose.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Loose)) + Entry[Loose]() } // Loose 宽松授权的服务 diff --git a/mirc/web/v1/priv.go b/mirc/web/v1/priv.go index 0c1f2f27..460c9d99 100644 --- a/mirc/web/v1/priv.go +++ b/mirc/web/v1/priv.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Priv)) + Entry[Priv]() } // Priv 私有授权的服务 diff --git a/mirc/web/v1/pub.go b/mirc/web/v1/pub.go index 6dcd8bc5..89a90162 100644 --- a/mirc/web/v1/pub.go +++ b/mirc/web/v1/pub.go @@ -7,7 +7,7 @@ import ( ) func init() { - AddEntry(new(Pub)) + Entry[Pub]() } // Pub 不用授权的公开服务