refactor(register): 添加注册服务接口说明注释

- 在 register.go 文件中添加了关于注册服务接口的使用说明注释
- 注释包含了 curl 命令示例和接口调用方式的说明
This commit is contained in:
suyiiyii 2025-01-21 23:27:31 +08:00
parent b6cb6875ae
commit 5c31af55db
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85

View File

@ -21,6 +21,9 @@ func NewRegisterService(Context context.Context, RequestContext *app.RequestCont
return &RegisterService{RequestContext: RequestContext, Context: Context}
}
// curl -X POST 10.42.0.106:8080/register
// 使用POST请求即可看到效果
// 使用了 rpc 调用,并且使用 hertz 框架暴露出 http 接口
func (h *RegisterService) Run(req *facade.RegisterReq) (resp *facade.RegisterResp, err error) {
//defer func() {
// hlog.CtxInfof(h.Context, "req = %+v", req)