Coder Social home page Coder Social logo

chat's Introduction

项目介绍

实现简易即时通讯,与好友聊天本质也是建立聊天室,在添加好友时就创建聊天室。

技术栈

  • websocket
  • mongodb
  • gin
  • jwt

数据字典

用户集合

{
    "account":"账号",
    "password":"密码",
    "nickname":"昵称",
    "sex" : 1, // 0-未知 1-男 2-女
    "email": "邮箱",
    "avatar":"头像",
    "created_at": 1, // 创建时间
    "updated_at": 1, // 更新时间
}

消息集合

{
    "user_identity": "用户的唯一标识",
    "room_identity": "房间的唯一标识",
    "data": "发送的数据",
    "created_at": 1, // 创建时间
    "updated_at": 1, // 更新时间
}

房间集合

{
    "number":"房间号",
    "name":"房间名称",
    "info":"房间简介",
    "user_identity": "房间创建者的唯一标识",
    "created_at": 1, // 房间的创建时间
    "updated_at": 1, // 房间的更新时间
}

用户房间关联集合

{
    "user_identity": "用户的唯一标识",
    "room_identity": "房间的唯一标识",
    "message_identity": "消息的唯一标识",
    "created_at": 1, // 创建时间
    "updated_at": 1, // 更新时间
}

chat's People

Contributors

codecodify 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.