Commit 23f25d3e authored by pengjun's avatar pengjun Committed by vipwzw

fix linter warning

parent a02e3273
...@@ -176,7 +176,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) { ...@@ -176,7 +176,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) {
} }
params.Payload = req params.Payload = req
if gameID != "" { if gameID != "" {
params.FuncName = pkt.FuncNameQueryGameById params.FuncName = pkt.FuncNameQueryGameByID
var res pkt.ReplyPBGame var res pkt.ReplyPBGame
ctx := jsonrpc.NewRpcCtx(rpcLaddr, "Chain33.Query", params, &res) ctx := jsonrpc.NewRpcCtx(rpcLaddr, "Chain33.Query", params, &res)
ctx.Run() ctx.Run()
...@@ -191,7 +191,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) { ...@@ -191,7 +191,7 @@ func pokerbullQuery(cmd *cobra.Command, args []string) {
ctx := jsonrpc.NewRpcCtx(rpcLaddr, "Chain33.Query", params, &res) ctx := jsonrpc.NewRpcCtx(rpcLaddr, "Chain33.Query", params, &res)
ctx.Run() ctx.Run()
} else if gameIDs != "" { } else if gameIDs != "" {
params.FuncName = pkt.FuncNameQueryGameListByIds params.FuncName = pkt.FuncNameQueryGameListByIDs
var gameIDsS []string var gameIDsS []string
gameIDsS = append(gameIDsS, gameIDs) gameIDsS = append(gameIDsS, gameIDs)
gameIDsS = append(gameIDsS, gameIDs) gameIDsS = append(gameIDsS, gameIDs)
......
...@@ -9,13 +9,13 @@ import ( ...@@ -9,13 +9,13 @@ import (
pkt "github.com/33cn/plugin/plugin/dapp/pokerbull/types" pkt "github.com/33cn/plugin/plugin/dapp/pokerbull/types"
) )
// Query_QueryGameListByIds 根据id列表查询游戏 // Query_QueryGameListByIDs 根据id列表查询游戏
func (g *PokerBull) Query_QueryGameListByIds(in *pkt.QueryPBGameInfos) (types.Message, error) { func (g *PokerBull) Query_QueryGameListByIDs(in *pkt.QueryPBGameInfos) (types.Message, error) {
return Infos(g.GetStateDB(), in) return Infos(g.GetStateDB(), in)
} }
// Query_QueryGameById 根据id查询游戏 // Query_QueryGameByID 根据id查询游戏
func (g *PokerBull) Query_QueryGameById(in *pkt.QueryPBGameInfo) (types.Message, error) { func (g *PokerBull) Query_QueryGameByID(in *pkt.QueryPBGameInfo) (types.Message, error) {
game, err := readGame(g.GetStateDB(), in.GetGameId()) game, err := readGame(g.GetStateDB(), in.GetGameId())
if err != nil { if err != nil {
return nil, err return nil, err
......
...@@ -41,9 +41,9 @@ var ( ...@@ -41,9 +41,9 @@ var (
const ( const (
// FuncNameQueryGameListByIds 根据id列表查询game列表 // FuncNameQueryGameListByIds 根据id列表查询game列表
FuncNameQueryGameListByIds = "QueryGameListByIds" FuncNameQueryGameListByIDs = "QueryGameListByIDs"
// FuncNameQueryGameById 根据id查询game // FuncNameQueryGameById 根据id查询game
FuncNameQueryGameById = "QueryGameById" FuncNameQueryGameByID = "QueryGameByID"
// FuncNameQueryGameByAddr 根据地址查询game // FuncNameQueryGameByAddr 根据地址查询game
FuncNameQueryGameByAddr = "QueryGameByAddr" FuncNameQueryGameByAddr = "QueryGameByAddr"
// FuncNameQueryGameByStatus 根据status查询game // FuncNameQueryGameByStatus 根据status查询game
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment