From 86dfc695d732b92e0f0093d2ac2798ec5a2b3983 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 19 Nov 2024 14:45:26 +0800 Subject: [PATCH 1/3] 1 --- app/mix/dao/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 743977eb..c7745c3e 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -1658,7 +1658,7 @@ func (m *Mongo) UpdateMoment(ctx *gin.Context, moment *dbstruct.Moment) error { up := qmgo.M{ "$set": set, } - err := col.UpdateId(ctx, moment.Id, up) + err := col.UpdateId(ctx, moment.GetId(), up) return err } -- 2.41.0 From 655bd7417c676594a0287af2d7d6b12c4b7334ef Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 19 Nov 2024 14:45:58 +0800 Subject: [PATCH 2/3] 1 --- app/mix/dao/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index c7745c3e..743977eb 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -1658,7 +1658,7 @@ func (m *Mongo) UpdateMoment(ctx *gin.Context, moment *dbstruct.Moment) error { up := qmgo.M{ "$set": set, } - err := col.UpdateId(ctx, moment.GetId(), up) + err := col.UpdateId(ctx, moment.Id, up) return err } -- 2.41.0 From 452b79444e653bf876997276a71104a007a9db23 Mon Sep 17 00:00:00 2001 From: Robin <7434053+warrior_of_light_robin@user.noreply.gitee.com> Date: Fri, 22 Nov 2024 16:52:00 +0800 Subject: [PATCH 3/3] 1 --- app/mix/controller/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/controller/init.go b/app/mix/controller/init.go index 062387e7..870c2eb7 100644 --- a/app/mix/controller/init.go +++ b/app/mix/controller/init.go @@ -631,7 +631,7 @@ func Init(r *gin.Engine) { opNotificationGroup.POST("cancel", middleware.JSONParamValidator(notificationproto.OpCancelReq{}), middleware.JwtAuthenticator(), OpCancelNotification) // 前端页面路由表 - opFrontendRouteGroup := r.Group("/api/frontend_route", PrepareToC()) + opFrontendRouteGroup := r.Group("/api/frontend_route", PrepareOp()) opFrontendRouteGroup.POST("create", middleware.JSONParamValidator(frontend_route_proto.OpCreateReq{}), middleware.JwtAuthenticator(), OpCreateFrontendRoute) opFrontendRouteGroup.POST("update", middleware.JSONParamValidator(frontend_route_proto.OpUpdateReq{}), middleware.JwtAuthenticator(), OpUpdateFrontendRoute) opFrontendRouteGroup.POST("delete", middleware.JSONParamValidator(frontend_route_proto.OpDeleteReq{}), middleware.JwtAuthenticator(), OpDeleteFrontendRoute) -- 2.41.0