refactor(register): 添加注册服务接口说明注释
- 在 register.go 文件中添加了关于注册服务接口的使用说明注释 - 注释包含了 curl 命令示例和接口调用方式的说明
This commit is contained in:
parent
b6cb6875ae
commit
5c31af55db
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user