Commit 99b271a8 authored by shajiaiming's avatar shajiaiming

resp return packet_id

parent 7d554db1
...@@ -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
......
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