Categorygithub.com/go-microservice/moment-service
repository
0.0.0-20240823020417-5c4e16dae1be
Repository: https://github.com/go-microservice/moment-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

moment-service

Features

  • post
  • comment
  • like

Layer

The application with the following layers:

    1. gRPC Layer: Responsible for handling incoming gRPC requests and returning responses.
    1. Service Layer: Responsible for handling business logic and communicating with the data layer.
    1. Data Layer: Responsible for handling communication with the database or nosql or other external service.

Run

# 运行
make run

Develop

如果中间有修改 proto 文件,需要重新生成 *.pb.go*_grpc.pb.go

# 生成 *.pb.go
make proto

# 生成 *_grpc.pb.go
make grpc

# 生成文档 在 api/index.html 可以直接浏览器查看
make doc

make run

Reference