cloudwego / cwgo

An all-in-one code generation tool for CloudWeGo
Apache License 2.0
102 stars 52 forks source link

feat:a restful api template #191

Closed yuxialuozi closed 3 months ago

yuxialuozi commented 3 months ago

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:

yuxialuozi commented 3 months ago

rpc还是和原来一样,限定了只有http能够使用新模板

li-jin-gou commented 3 months ago

这个模板没办法目前没办法做到严格 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: @.***>