Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
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
hujiebin
hilo-common
Commits
03f2653e
Commit
03f2653e
authored
Feb 23, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据bagId获取用户背包
parent
c0b6f322
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
user.go
rpc/user.go
+3
-3
No files found.
rpc/user.go
View file @
03f2653e
...
@@ -111,14 +111,14 @@ type CvUserBag struct {
...
@@ -111,14 +111,14 @@ type CvUserBag struct {
RemainDays
int
`json:"remainDays"`
// 有效天数
RemainDays
int
`json:"remainDays"`
// 有效天数
}
}
//
批量
用户背包
//
根据bagId获取
用户背包
func
GetUserBag
(
model
*
domain
.
Model
,
bagId
mysql
.
ID
)
(
CvUserBag
,
error
)
{
func
GetUserBag
Id
(
model
*
domain
.
Model
,
bagId
mysql
.
ID
)
(
CvUserBag
,
error
)
{
type
Response
struct
{
type
Response
struct
{
Code
int
`json:"code"`
Code
int
`json:"code"`
Message
string
`json:"message"`
Message
string
`json:"message"`
Data
CvUserBag
`json:"data"`
Data
CvUserBag
`json:"data"`
}
}
_url
:=
fmt
.
Sprintf
(
"%v://%v/inner/user/bag"
,
defaultUserServerScheme
,
getUserHost
())
_url
:=
fmt
.
Sprintf
(
"%v://%v/inner/user/bag
/id
"
,
defaultUserServerScheme
,
getUserHost
())
resp
,
err
:=
HttpGet
(
model
,
_url
,
nil
,
map
[
string
][]
string
{
resp
,
err
:=
HttpGet
(
model
,
_url
,
nil
,
map
[
string
][]
string
{
"bagId"
:
{
fmt
.
Sprintf
(
"%d"
,
bagId
)},
"bagId"
:
{
fmt
.
Sprintf
(
"%d"
,
bagId
)},
})
})
...
...
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