Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
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
1
Merge Requests
1
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
szh
chain33-pai
Commits
c415be52
Commit
c415be52
authored
Oct 09, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update models
parent
a97db132
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
raspConfig.go
models/raspConfig.go
+2
-2
raspMinerStat.go
models/raspMinerStat.go
+2
-2
raspMinerTxs.go
models/raspMinerTxs.go
+2
-2
No files found.
models/raspConfig.go
View file @
c415be52
package
models
type
RaspConfig
struct
{
Model
//
Model
Height
int64
`json:"height"`
Config
string
`json:"config"`
Config
string
`json:"config"
;gorm:"PRIMARY_KEY"
`
}
// GetHeight get lastheight in chain33
...
...
models/raspMinerStat.go
View file @
c415be52
...
...
@@ -5,8 +5,8 @@ import (
)
type
RaspMinerStat
struct
{
Model
Addr
string
`json:"addr"`
//
Model
Addr
string
`json:"addr"
;gorm:"PRIMARY_KEY"
`
MinedAmount
int64
`json:"mined_amount"`
MinedTicketCount
int64
`json:"mined_ticket_count"`
MiningTicketCount
int64
`json:"mining_ticket_count"`
...
...
models/raspMinerTxs.go
View file @
c415be52
...
...
@@ -5,8 +5,8 @@ import (
)
type
RaspMinerTxs
struct
{
Model
Miner
string
`json:"miner"`
//
Model
Miner
string
`json:"miner"
;gorm:"INDEX"
`
ReturnAddr
string
`json:"return_addr"`
Amount
int64
`json:"amount"`
Height
int64
`json:"height"`
...
...
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