Git Product home page Git Product logo

ballgame's Introduction

#上传接口

##1.创建游戏 creategame

http://139.224.67.24:8002/creategame POST { "userid":"100" }

返回参数:error == null 表示无错误,否则有错 { "error":null, "gameid":7 }

##2.设置步数 setGameUserSteps

http://139.224.67.24:8002/setGameUserSteps POST { "gameid":7, "userid":"100", "steps":100 }

返回参数:error == null 表示无错误,否则有错 { "error":null }

##3.添加投篮记录 shotIn:0 表示没投进,1表示投进, 为1时必须有angle和distance参数

http://139.224.67.24:8002/addusershot

POST { "gameid":7, "userid":"100", "shotIn":1, "angle":120, "distance":100 }

返回参数:error == null 表示无错误,否则有错 { "error":null }

#查询接口

##1.查询最近场次的比赛

http://139.224.67.24:8002/recentgame

{ error:null gameid:7, createTime:"147xxxxxx" }

##2.查询某用户某个比赛的步数 http://139.224.67.24:8002/userSteps?gameid=7&userid=100 { error:null, steps:100 }

ballgame's People

Contributors

rayshen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

oldprogram

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.