Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bridge-backend
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
movabridge
bridge-backend
Commits
f253c306
Commit
f253c306
authored
Sep 18, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
fcc5a061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
db.go
dao/db.go
+2
-0
model.go
model/api/model.go
+2
-0
No files found.
dao/db.go
View file @
f253c306
...
...
@@ -163,6 +163,8 @@ func (d *Dao) GetHistoryInfo(user string) (history apiModel.History, err error)
Amount
:
event
.
SendAmount
,
Token
:
event
.
FromToken
,
TokenSymbol
:
tokenInfo
.
Symbol
,
UrlSource
:
fromChain
.
Explorer
+
"/tx/"
+
event
.
FromChainTxHash
,
UrlTarget
:
toChain
.
Explorer
+
"/tx/"
+
event
.
ToChainTxHash
,
Status
:
constant
.
TransferStatus
(
event
.
ToChainStatus
)
.
String
(),
}
if
event
.
ToChainStatus
<=
int
(
constant
.
TransferChainWaitConfirm
)
{
...
...
model/api/model.go
View file @
f253c306
...
...
@@ -23,10 +23,12 @@ type HistoryInfo struct {
FromChain
string
`json:"from_chain" bson:"from_chain"`
ToChain
string
`json:"to_chain" bson:"to_chain"`
TxHash
string
`json:"tx_hash" bson:"tx_hash"`
UrlSource
string
`json:"url_source" bson:"url_source"`
CreateTime
int64
`json:"create_time" bson:"create_time"`
Amount
string
`json:"amount" bson:"amount"`
Token
string
`json:"token" bson:"token"`
TokenSymbol
string
`json:"token_symbol" bson:"token_symbol"`
UrlTarget
string
`json:"url_target" bson:"url_target"`
Status
string
`json:"status" bson:"status"`
}
...
...
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