MCPcopy Index your code
hub / github.com/RaymondCode/simple-demo

github.com/RaymondCode/simple-demo @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
45 symbols 105 edges 16 files 13 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

simple-demo

抖音项目服务端简单示例

具体功能内容参考飞书说明文档

工程无其他依赖,直接编译运行即可

go build && ./simple-demo

功能说明

接口功能不完善,仅作为示例

  • 用户登录数据保存在内存中,单次运行过程中有效
  • 视频上传后会保存到本地 public 目录中,访问时用 127.0.0.1:8080/static/video_name 即可

测试

test 目录下为不同场景的功能测试case,可用于验证功能实现正确性

其中 common.go 中的 serverAddr 为服务部署的地址,默认为本机地址,可以根据实际情况修改

测试数据写在 demo_data.go 中,用于列表接口的 mock 测试

Core symbols most depended-on inside this repo

newExpect
called by 7
test/common.go
getTestUserToken
called by 7
test/common.go
genChatKey
called by 2
controller/message.go
initRouter
called by 1
router.go
RunMessageServer
called by 1
service/message.go
process
called by 1
service/message.go
main
called by 0
main.go
MessageAction
called by 0
controller/message.go

Shape

Function 30
Struct 15

Languages

Go100%

Modules by API surface

controller/common.go7 symbols
controller/user.go5 symbols
controller/relation.go5 symbols
controller/message.go4 symbols
controller/comment.go4 symbols
test/base_api_test.go3 symbols
controller/publish.go3 symbols
test/social_api_test.go2 symbols
test/interact_api_test.go2 symbols
test/common.go2 symbols
service/message.go2 symbols
controller/feed.go2 symbols

For agents

$ claude mcp add simple-demo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact