Commit 8145bea5 authored by hujiebin's avatar hujiebin

feat:部分接口加密

parent 7f1d1d32
...@@ -17,7 +17,6 @@ import ( ...@@ -17,7 +17,6 @@ import (
func InitRouter() *gin.Engine { func InitRouter() *gin.Engine {
var r = gin.Default() var r = gin.Default()
r.Use(EncryptHandle)
r.GET("/group-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) r.GET("/group-swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
...@@ -32,8 +31,8 @@ func InitRouter() *gin.Engine { ...@@ -32,8 +31,8 @@ func InitRouter() *gin.Engine {
// //
imGroup.POST("/group", wrapper(group_r.CreateGroup)) imGroup.POST("/group", wrapper(group_r.CreateGroup))
imGroup.DELETE("/group/:groupId", wrapper(group_r.DestroyGroup)) imGroup.DELETE("/group/:groupId", wrapper(group_r.DestroyGroup))
imGroup.GET("/group/:code", wrapper(group_r.GetGroupInfo)) imGroup.GET("/group/:code", EncryptHandle, wrapper(group_r.GetGroupInfo))
imGroup.GET("/detail/:groupId", wrapper(group_r.GetGroupDetail)) imGroup.GET("/detail/:groupId", EncryptHandle, wrapper(group_r.GetGroupDetail))
imGroup.PUT("/group/:groupId", wrapper(group_r.ModifyGroupInfo)) imGroup.PUT("/group/:groupId", wrapper(group_r.ModifyGroupInfo))
imGroup.GET("/search/:code", wrapper(group_r.SearchGroup)) imGroup.GET("/search/:code", wrapper(group_r.SearchGroup))
imGroup.DELETE("/member/:groupId", wrapper(group_r.LeaveGroup)) imGroup.DELETE("/member/:groupId", wrapper(group_r.LeaveGroup))
...@@ -49,7 +48,7 @@ func InitRouter() *gin.Engine { ...@@ -49,7 +48,7 @@ func InitRouter() *gin.Engine {
imGroup.GET("/ownGroup", wrapper(group_r.GetOwnGroup)) imGroup.GET("/ownGroup", wrapper(group_r.GetOwnGroup))
imGroup.GET("/theirGroup/:userExternalId", wrapper(group_r.GetTheirGroups)) imGroup.GET("/theirGroup/:userExternalId", wrapper(group_r.GetTheirGroups))
imGroup.PUT("/pluginReady/:groupId", wrapper(group_r.PluginReady)) imGroup.PUT("/pluginReady/:groupId", wrapper(group_r.PluginReady))
imGroup.GET("/roomInfo/:groupId", wrapper(group_r.GetRoomInfo)) imGroup.GET("/roomInfo/:groupId", EncryptHandle, wrapper(group_r.GetRoomInfo))
// //
imGroup.GET("/password/:groupId", wrapper(group_r.GetGroupPassword)) imGroup.GET("/password/:groupId", wrapper(group_r.GetGroupPassword))
imGroup.GET("/role/:groupId", wrapper(group_r.GetGroupRole)) imGroup.GET("/role/:groupId", wrapper(group_r.GetGroupRole))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment