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
3cf5daba
Commit
3cf5daba
authored
Feb 20, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger
parent
ae31a3f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
bag.go
cv/user_cv/bag.go
+8
-9
bag.go
route/user_r/bag.go
+1
-1
No files found.
cv/user_cv/bag.go
View file @
3cf5daba
...
...
@@ -2,11 +2,10 @@ package user_cv
import
(
"git.hilo.cn/hilo-common/resource/mysql"
"hilo-user/_const/enum/res_e"
)
type
UserBag
struct
{
ResType
res_e
.
ResUserBag
`json:"resType"`
// 道具类型 1:礼物道具
ResType
mysql
.
Type
`json:"resType"`
// 道具类型 1:礼物道具
ResId
mysql
.
ID
`json:"resId"`
// 道具资源id
Name
string
`json:"name"`
// 资源名称
DiamondNum
mysql
.
Num
`json:"diamondNum"`
// 钻石数量
...
...
route/user_r/bag.go
View file @
3cf5daba
...
...
@@ -17,7 +17,7 @@ import (
// @Tags 用户背包
// @Summary 获取用户的铭牌
// @Param
column
path int true "分栏:1 礼物"
// @Param
resType
path int true "分栏:1 礼物"
// @Success 200 {object} []user_cv.UserBag
// @Router /v1/user/bag/{resType} [get]
func
UserBag
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
...
...
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