1
This commit is contained in:
parent
20fc3002c2
commit
a45233ee8b
@ -1,7 +1,35 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
|
import (
|
||||||
|
"f5"
|
||||||
|
"sync"
|
||||||
|
"main/constant"
|
||||||
|
)
|
||||||
|
|
||||||
type vip struct {
|
type vip struct {
|
||||||
|
lock sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *vip) init() () {
|
func (this *vip) init() () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *vip) Add(accountAddress string, val string, valField string, idxField string) bool {
|
||||||
|
this.lock.Lock()
|
||||||
|
defer this.lock.Unlock()
|
||||||
|
|
||||||
|
err, ds := f5.GetGoStyleDb().NewOrmSelect(
|
||||||
|
constant.BCNFT_DB,
|
||||||
|
"t_vip_user",
|
||||||
|
[][]string {
|
||||||
|
{"address", accountAddress},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if ds.Next() {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
2
third_party/f5
vendored
2
third_party/f5
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f3c6bd34599966b9d3724d3eb7f0703cdf0383bd
|
Subproject commit fe1b7e21eb37d5494ccf32347ff368a1f011ac02
|
Loading…
x
Reference in New Issue
Block a user