Coder Social home page Coder Social logo

go-tiktok's Introduction

go-tiktok

极简版抖音项目(字节跳动青训营)

架构图(初)

架构图

APIs

基础接口:

Method Path Description
GET /douyin/feed 返回视频列表,可不登陆
POST /douyin/user/register 注册接口,提供用户名和密码
POST /douyin/user/login 登录接口,提供用户名和密码,返回用户id和token
GET /douyin/user 获取登录用户的 id、昵称,关注数和粉丝数
POST /douyin/publish/action 视频投稿
GET /douyin/publish/list 登录用户发布的视频列表

互动接口:

Method Path Description
POST /douyin/favorite/action 登录用户对视频的点赞和取消点赞操作。
GET /douyin/favorite/list 登录用户的所有点赞视频
POST /douyin/comment/action 评论操作
GET /douyin/comment/list 查看视频的所有评论,按发布时间排序

社交接口:

Method Path Description
POST /douyin/relation/action 登陆用户或其他用户进行关注或取消关注
GET /douyin/relation/follow/list 登陆用户关注的所有用户列表
GET /douyin/relation/follower/list 所有关注登陆用户的粉丝列表
GET /douyin/relation/friend/list 所有关注登录用户的粉丝列表及聊天消息。
GET /douyin/message/chat 当前登录用户和其他指定用户的聊天消息记录
POST /douyin/message/action 登录用户对消息的相关操作,目前只支持消息发送

go-tiktok's People

Contributors

kuan525 avatar

Stargazers

HaiGe avatar  avatar  avatar

Watchers

 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.