Skip to content

maomao94/go-zero-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-zero-resource

前言

zero练手项目

  • master分支 微服务版本
  • mono分支 单体版本,其中db未使用zero 自带的orm,改为gorm 兼容zero db缓存

接口地址

https://www.apifox.cn/apidoc/shared-6c1c58fe-fc04-45f9-abac-a4b7b71bbc62/api-7148139

其他

  • go-stress-testing -c 1 -n 1 -p ossdetail.txt

模块

  • api 1001
  • sys 1002
  • resource 1003
  • message 1004
  • mgtw 1005 21005 (websocket 网关服务)

编译错误码

protoc errcode.proto --go_out=.

websocket 网关服务集成

  • 连接 ws://127.0.0.1:21005/wsx
  • 登录
{
  "seq": "12222",
  "cmd": "login",
  "data":{
    "token":"aaaaa",
    "appId": 12138,
    "userId": "10001"
  }
}
{
  "fromUserId": "12138",
  "toUserId": "10001",
  "msg": "测试websocket消息"
}

About

go-zero 练习项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages