Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cache
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
Odysseus
cache
Commits
f2131b98
Commit
f2131b98
authored
Mar 11, 2024
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update field
parent
a45cecdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
whiteList.go
model/whiteList.go
+8
-8
No files found.
model/whiteList.go
View file @
f2131b98
...
@@ -6,12 +6,12 @@ import (
...
@@ -6,12 +6,12 @@ import (
)
)
type
Whitelist
struct
{
type
Whitelist
struct
{
ID
int64
`orm:"column(id)" db:"id" json:"id" form:"id"`
ID
int64
`orm:"column(id)" db:"id" json:"id" form:"id"`
Character
string
`orm:"column(character)" db:"character" json:"character" form:"character
"`
ProfitAddress
string
`orm:"column(profit_address)" db:"profit_address" json:"profit_address" form:"profit_address
"`
NodeNum
int64
`orm:"column(node_num)" db:"node_num" json:"node_num" form:"node_num"`
NodeNum
int64
`orm:"column(node_num)" db:"node_num" json:"node_num" form:"node_num"`
CreatedTime
time
.
Time
`orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"`
CreatedTime
time
.
Time
`orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"`
UpdatedTime
time
.
Time
`orm:"column(updated_time)" db:"updated_time" json:"updated_time" form:"updated_time"`
UpdatedTime
time
.
Time
`orm:"column(updated_time)" db:"updated_time" json:"updated_time" form:"updated_time"`
Deleted
int64
`orm:"column(deleted)" db:"deleted" json:"deleted" form:"deleted"`
Deleted
int64
`orm:"column(deleted)" db:"deleted" json:"deleted" form:"deleted"`
}
}
func
(
Whitelist
)
TableName
()
string
{
func
(
Whitelist
)
TableName
()
string
{
...
@@ -59,8 +59,8 @@ func (repo *whiteListRepositoryImpl) GetListByFilter(filters ...interface{}) []*
...
@@ -59,8 +59,8 @@ func (repo *whiteListRepositoryImpl) GetListByFilter(filters ...interface{}) []*
//}
//}
func
(
repo
*
whiteListRepositoryImpl
)
GetByCharacter
(
addr
string
)
(
*
Whitelist
,
error
)
{
func
(
repo
*
whiteListRepositoryImpl
)
GetByCharacter
(
addr
string
)
(
*
Whitelist
,
error
)
{
wh
:=
Whitelist
{
Character
:
addr
}
wh
:=
Whitelist
{
ProfitAddress
:
addr
}
err
:=
repo
.
o
.
Read
(
&
wh
,
"
character
"
)
err
:=
repo
.
o
.
Read
(
&
wh
,
"
profit_address
"
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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