Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
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
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
link33
plugin
Commits
23f25d3e
Commit
23f25d3e
authored
Nov 21, 2018
by
pengjun
Committed by
vipwzw
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linter warning
parent
a02e3273
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
game.go
plugin/dapp/pokerbull/commands/game.go
+2
-2
query.go
plugin/dapp/pokerbull/executor/query.go
+4
-4
const.go
plugin/dapp/pokerbull/types/const.go
+2
-2
No files found.
plugin/dapp/pokerbull/commands/game.go
View file @
23f25d3e
...
...
@@ -176,7 +176,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) {
}
params
.
Payload
=
req
if
gameID
!=
""
{
params
.
FuncName
=
pkt
.
FuncNameQueryGameByI
d
params
.
FuncName
=
pkt
.
FuncNameQueryGameByI
D
var
res
pkt
.
ReplyPBGame
ctx
:=
jsonrpc
.
NewRpcCtx
(
rpcLaddr
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
...
...
@@ -191,7 +191,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) {
ctx
:=
jsonrpc
.
NewRpcCtx
(
rpcLaddr
,
"Chain33.Query"
,
params
,
&
res
)
ctx
.
Run
()
}
else
if
gameIDs
!=
""
{
params
.
FuncName
=
pkt
.
FuncNameQueryGameListByI
d
s
params
.
FuncName
=
pkt
.
FuncNameQueryGameListByI
D
s
var
gameIDsS
[]
string
gameIDsS
=
append
(
gameIDsS
,
gameIDs
)
gameIDsS
=
append
(
gameIDsS
,
gameIDs
)
...
...
plugin/dapp/pokerbull/executor/query.go
View file @
23f25d3e
...
...
@@ -9,13 +9,13 @@ import (
pkt
"github.com/33cn/plugin/plugin/dapp/pokerbull/types"
)
// Query_QueryGameListByI
d
s 根据id列表查询游戏
func
(
g
*
PokerBull
)
Query_QueryGameListByI
d
s
(
in
*
pkt
.
QueryPBGameInfos
)
(
types
.
Message
,
error
)
{
// Query_QueryGameListByI
D
s 根据id列表查询游戏
func
(
g
*
PokerBull
)
Query_QueryGameListByI
D
s
(
in
*
pkt
.
QueryPBGameInfos
)
(
types
.
Message
,
error
)
{
return
Infos
(
g
.
GetStateDB
(),
in
)
}
// Query_QueryGameByI
d
根据id查询游戏
func
(
g
*
PokerBull
)
Query_QueryGameByI
d
(
in
*
pkt
.
QueryPBGameInfo
)
(
types
.
Message
,
error
)
{
// Query_QueryGameByI
D
根据id查询游戏
func
(
g
*
PokerBull
)
Query_QueryGameByI
D
(
in
*
pkt
.
QueryPBGameInfo
)
(
types
.
Message
,
error
)
{
game
,
err
:=
readGame
(
g
.
GetStateDB
(),
in
.
GetGameId
())
if
err
!=
nil
{
return
nil
,
err
...
...
plugin/dapp/pokerbull/types/const.go
View file @
23f25d3e
...
...
@@ -41,9 +41,9 @@ var (
const
(
// FuncNameQueryGameListByIds 根据id列表查询game列表
FuncNameQueryGameListByI
ds
=
"QueryGameListById
s"
FuncNameQueryGameListByI
Ds
=
"QueryGameListByID
s"
// FuncNameQueryGameById 根据id查询game
FuncNameQueryGameByI
d
=
"QueryGameById
"
FuncNameQueryGameByI
D
=
"QueryGameByID
"
// FuncNameQueryGameByAddr 根据地址查询game
FuncNameQueryGameByAddr
=
"QueryGameByAddr"
// FuncNameQueryGameByStatus 根据status查询game
...
...
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