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) {
}
params.Payload = req
if gameID != "" {
params.FuncName = pkt.FuncNameQueryGameById
params.FuncName = pkt.FuncNameQueryGameByID
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.FuncNameQueryGameListByIds
params.FuncName = pkt.FuncNameQueryGameListByIDs
var gameIDsS []string
gameIDsS = append(gameIDsS, gameIDs)
gameIDsS = append(gameIDsS, gameIDs)
......
......@@ -9,13 +9,13 @@ import (
pkt "github.com/33cn/plugin/plugin/dapp/pokerbull/types"
)
// Query_QueryGameListByIds 根据id列表查询游戏
func (g *PokerBull) Query_QueryGameListByIds(in *pkt.QueryPBGameInfos) (types.Message, error) {
// Query_QueryGameListByIDs 根据id列表查询游戏
func (g *PokerBull) Query_QueryGameListByIDs(in *pkt.QueryPBGameInfos) (types.Message, error) {
return Infos(g.GetStateDB(), in)
}
// Query_QueryGameById 根据id查询游戏
func (g *PokerBull) Query_QueryGameById(in *pkt.QueryPBGameInfo) (types.Message, error) {
// Query_QueryGameByID 根据id查询游戏
func (g *PokerBull) Query_QueryGameByID(in *pkt.QueryPBGameInfo) (types.Message, error) {
game, err := readGame(g.GetStateDB(), in.GetGameId())
if err != nil {
return nil, err
......
......@@ -41,9 +41,9 @@ var (
const (
// FuncNameQueryGameListByIds 根据id列表查询game列表
FuncNameQueryGameListByIds = "QueryGameListByIds"
FuncNameQueryGameListByIDs = "QueryGameListByIDs"
// FuncNameQueryGameById 根据id查询game
FuncNameQueryGameById = "QueryGameById"
FuncNameQueryGameByID = "QueryGameByID"
// FuncNameQueryGameByAddr 根据地址查询game
FuncNameQueryGameByAddr = "QueryGameByAddr"
// 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