go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

how to return my own error type in logic

Open Shawn-fung opened this issue 2 years ago • 3 comments

怎么改模板文件,返回自定义的异常类型,方便统一生成代码

Shawn-fung avatar Aug 10 '23 08:08 Shawn-fung

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


How to change the template file and return a custom exception type to facilitate unified code generation

Issues-translate-bot avatar Aug 10 '23 08:08 Issues-translate-bot

Please check this doc: https://go-zero.dev/docs/tutorials/http/server/response/ext

kevwan avatar Aug 13 '23 04:08 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 14 '24 01:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 14 '24 02:11 github-actions[bot]