Skip to content

eyebluecn/sc-bff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装环境

如果首次运行,需要先安装thriftgo和kitex,参考kitex官网

# 安装thriftgo 会将thriftgo命令安装至GOPATH.
go install github.com/cloudwego/hertz/cmd/hz@latest
# 验证是否安装好了thriftgo  eg:thriftgo 0.3.12
thriftgo --version

# 安装hz 会将kitex命令安装至GOPATH.
go install github.com/cloudwego/hertz/cmd/hz@latest
# 验证是否安装好了hz  eg:hz version v0.9.0
hz --version

IDL

# 生成idl中定义的模型
hz model -module github.com/eyebluecn/sc-bff --idl idl/smart_classroom_bff.thrift --model_dir ./idl_gen

安装依赖

go get github.com/eyebluecn/sc-misc-idl@master
go get github.com/eyebluecn/sc-subscription-idl@master