Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwin committed Feb 10, 2023
0 parents commit b9e14a0
Show file tree
Hide file tree
Showing 26 changed files with 8,080 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .hz
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Code generated by hz. DO NOT EDIT.

hz version: v0.5.0
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## 生成代码
`hz new -idl idl/core.thrift -module github.com/ClubWeGo/douyin`

> 扩展模块
> `hz new -idl idl/interaction.thrift -module github.com/ClubWeGo/douyin`
> `hz new -idl idl/relation.thrift -module github.com/ClubWeGo/douyin`
## 删除代码
`rm -r ./biz router.go router_gen.go main.go go.mod go.sum .hz .gitignore`

## 更新代码
`hz update -idl idl/core.thrift`

## 拉取依赖
`go mod tidy`

## 编译代码
`go build`

# list
- [ ] 基础功能publish视频还没有实现
- [ ] vd校验字段
- [ ] token登录(是否用jwt?)
- [ ] 可选功能(基础部分的isfollow与isFavourite)
- [ ] ...


依赖另外两个微服务的代码仓库

go get github.com/ClubWeGo/videomicro@latest

go get github.com/ClubWeGo/usermicro@latest
62 changes: 62 additions & 0 deletions biz/handler/core/feed_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions biz/handler/core/login_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions biz/handler/core/publish_action_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions biz/handler/core/publish_list_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions biz/handler/core/register_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions biz/handler/core/user_info_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions biz/handler/ping.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b9e14a0

Please sign in to comment.