Closed yuxialuozi closed 3 months ago
rpc还是和原来一样,限定了只有http能够使用新模板
这个模板没办法目前没办法做到严格 rest 🤡,后面还会有黑子找刺
---Original--- From: @.> Date: Sun, Jun 2, 2024 16:00 PM To: @.>; Cc: @.**@.>; Subject: Re: [cloudwego/cwgo] feat:a restful api template (PR #191)
@yuxialuozi commented on this pull request.
In pkg/consts/const.go:
> @@ -73,6 +73,7 @@ const ( DefaultDocModelOutDir = "biz/doc/model" DefaultDocDaoOutDir = "biz/doc/dao" Standard = "standard" + RestApi = "restApi"
rest_api 休息API
叫这个更好些吧。sandard并没有很好的说明模板是做啥的
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
What type of PR is this?
feat
What this PR does / why we need it (en: English/zh: Chinese):
en: A new template for restful has been added, and the status code 200 will not all be returned in handler. zh:增加了一个restful的新模板,在handler里面不会全部返回200。
Which issue(s) this PR fixes: