Skip to content

this will contribute to go-zero integrate with kong

License

Notifications You must be signed in to change notification settings

micro-services-roadmap/api-template

Repository files navigation

biz

  1. GO-ZERO: 1.7.3
  2. 修改 go.mod 文件: 仓库地址
    • wordpress-plus/app-api --> wordpress-plus/kol-api
  3. 依赖 rpc-tracing 服务
    # 设置私有仓库
    go env -w GOPRIVATE="github.com/wordpress-plus"

develop

  1. 使用 .deploy/goctl 目录进行相关业务逻辑的生成

    rm -rf internal/types && rm -rf internal/handler && goctl api go -api ./doc/api/app.api -dir ./ --home=./.deploy/1.7.3
  2. 生成 swagger 文档

    # go install github.com/zeromicro/goctl-swagger@latest
    goctl api plugin -plugin goctl-swagger="swagger -filename ./doc/swagger/swagger.json" -api ./doc/api/app.api -dir .
  3. 填充相关业务逻辑

    • /internal/logic/xxx

About

this will contribute to go-zero integrate with kong

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •