GithubHelp home page GithubHelp logo

moxixuan / dollmachine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yxhsea/dollmachine

0.0 0.0 0.0 45.85 MB

基于 GoLang 编写的 IOT 物联网在线直播抓娃娃企业级项目

Shell 0.01% Go 99.89% Dockerfile 0.10%

dollmachine's Introduction

基于 GoLang 编写的 IOT 物联网在线直播抓娃娃企业级项目

引言

前几年,娱乐物联网的热度很高。我当时所在的公司启动了一个将线下娃娃机的玩法,迁移到线上的项目,因此公司决定开发一个在线直播抓娃娃的项目。近来,娱乐物联网的领域已经进入资本的寒冬,很多相关的行业都已经濒临倒闭,我们之前的公司也不例外。目前公司大势已去,所以我将相关非关键的项目代码开源,仅供大家参考学习。

项目介绍

这是一个基于 GoLang 编写的 IOT 物联网企业级项目,主要提供的功能是:在线直播抓娃娃的一个娱乐型项目。

  • 用户端

用户基于微信公众号的 H5 页面进行游戏,功能包括:画面直播、弹幕评论、基于富友支付的微信充值功能。

  • 商家端

商家进行设备的管理、用户的管理、充值流水的查看、数据统计、游戏房间管理。

  • 平台端

平台主要是对商家的管理,例如:创建商家、编辑商家信息。

  • 设备端

一个基于安卓主板的娃娃机硬件设备,服务端通过 Mqtt 协议与安卓主板进行通信,进而控制娃娃机爪子的行为动作。

架构图

image

服务介绍

  • DollBarrage

通过 WebSocket 协议实现娃娃机弹幕服务,主要提供:游戏房间内评论弹幕的即时交互的功能。

  • DollMerchant

基于 Gin 框架提供娃娃机商户平台 Restful Api 服务,可支持自动生成 Swagger Api 文档。

  • DollMqtt

服务端通过 Mqtt 协议与娃娃机设备进行通信,从而控制娃娃机设备爪子的行为动作。

  • DollPlatform

基于 Gin 框架提供娃娃机运营平台 Restful Api 服务,可支持自动生成 Swagger Api 文档。

  • DollRpc

Rpc 服务,主要提供了富友支付(微信支付)的功能。

  • DollUnique

主要提供了生成唯一 ID 的功能。

  • DollUser

基于 Gin 框架提供微信用户端的 Restful Api 服务,可支持自动生成 Swagger Api 文档。

  • DollWechat

主要提供微信菜单配置、微信授权登录、微信扫码登录并关注公众的功能。

  • LiveServer

主要为娃娃机直播设备与微信用户端 H5 页面进行直播推流的一个中间服务。

结尾

本项目为企业级项目,仅供参考学习,目前数据库文件已经遗失。

dollmachine's People

Contributors

yxhsea avatar

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.