Skip to content

kingchary/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##LeanChat 云代码

Leanchat 项目构成

Cloud code project for ChatDemo. Cloud Code Guide: https://leancloud.cn/docs/cloud_code_guide.html

云代码部署

请看

服务端接口:

  • addFriend ,双向添加好友,需要参数fromUserId,toUserId
  • removeFriend,双向移除好友,参数同上
  • tryCreateAddRequest,尝试发出添加好友的请求,若已存在等待验证的请求,返回Error("已经发过请求了"),否则创建一条AddRequest记录
  • sign,对单聊的watch进行签名
  • group_sign,对群组操作进行签名

或者见main.js

Releases

No releases published

Packages

No packages published