Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweijian
hilo-user
Commits
a63ccf1d
Commit
a63ccf1d
authored
Jun 25, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:部分接口加密
parent
be03fcc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
router.go
route/router.go
+2
-3
No files found.
route/router.go
View file @
a63ccf1d
...
@@ -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
(
"/user-swagger/*any"
,
ginSwagger
.
WrapHandler
(
swaggerFiles
.
Handler
))
r
.
GET
(
"/user-swagger/*any"
,
ginSwagger
.
WrapHandler
(
swaggerFiles
.
Handler
))
...
@@ -29,8 +28,8 @@ func InitRouter() *gin.Engine {
...
@@ -29,8 +28,8 @@ func InitRouter() *gin.Engine {
{
{
user
.
GET
(
"/nameplate"
,
wrapper
(
user_r
.
UserNameplate
))
user
.
GET
(
"/nameplate"
,
wrapper
(
user_r
.
UserNameplate
))
user
.
GET
(
"/bag/:resType"
,
wrapper
(
user_r
.
UserBag
))
user
.
GET
(
"/bag/:resType"
,
wrapper
(
user_r
.
UserBag
))
user
.
GET
(
"/detail"
,
wrapper
(
user_r
.
UserDetail
))
user
.
GET
(
"/detail"
,
EncryptHandle
,
wrapper
(
user_r
.
UserDetail
))
user
.
GET
(
"/detail/:userExternalId"
,
wrapper
(
user_r
.
UserDetailByExternalId
))
user
.
GET
(
"/detail/:userExternalId"
,
EncryptHandle
,
wrapper
(
user_r
.
UserDetailByExternalId
))
}
}
cp
:=
v2
.
Group
(
"/cp"
)
cp
:=
v2
.
Group
(
"/cp"
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment