Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bwallet
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Go
bwallet
Commits
99b271a8
Commit
99b271a8
authored
Jun 17, 2021
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resp return packet_id
parent
7d554db1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
red_packet.go
service/red_packet_service/red_packet.go
+2
-0
No files found.
service/red_packet_service/red_packet.go
View file @
99b271a8
...
@@ -84,6 +84,7 @@ type RedPacket struct {
...
@@ -84,6 +84,7 @@ type RedPacket struct {
}
}
type
RedPacketResp
struct
{
type
RedPacketResp
struct
{
PacketId
string
`json:"packet_id"`
CoinName
string
`json:"coin_name"`
CoinName
string
`json:"coin_name"`
Amount
float32
`json:"amount"`
Amount
float32
`json:"amount"`
Size
uint8
`json:"size"`
Size
uint8
`json:"size"`
...
@@ -110,6 +111,7 @@ func (r *RedPacket) GetRedPackets() ([]*RedPacketResp, error) {
...
@@ -110,6 +111,7 @@ func (r *RedPacket) GetRedPackets() ([]*RedPacketResp, error) {
continue
continue
}
}
tmp
:=
&
RedPacketResp
{}
tmp
:=
&
RedPacketResp
{}
tmp
.
PacketId
=
val
.
PacketId
tmp
.
CoinName
=
val
.
CoinName
tmp
.
CoinName
=
val
.
CoinName
tmp
.
Amount
=
val
.
Amount
tmp
.
Amount
=
val
.
Amount
tmp
.
Size
=
val
.
Size
tmp
.
Size
=
val
.
Size
...
...
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