tegg
tegg copied to clipboard
Strong Type framework with eggjs.
是否可以引入 https://github.com/xiekw2010/egg-typebox-validate 成为默认的 validate 插件,之前的 egg-validate 在 ts 下其实不太满足。 cc @xiekw2010
- 开始时间: 2021/12/16 - RFC PR: - tegg Issue: ## 背景 参照: [提供更加简单化请求方法的修饰器](https://github.com/eggjs/tegg/issues/18)的讨论 ## 思路 ### 所有Controller 类型会通过namespace进行区分 - 为了方便区分`Controller`,`RestController`,`HttpController`,`RpcControlle`需要单独划分命名空间以方便归类。 将HttpController和简化后的Controller将会被划分到 http namespace, RestController 会被划分到rest namespace,`RpcControlle`会被划分到 rpc namespace。 - 以下将通过`import`的形式具体描述:...
现在的HTTPMethod 虽然足够满足业务需求,但是不够简练,是否能提供 常用的 Get,Post等方法的修饰器 ```ts @Controller('/') export class HomeController { @Get('/') async home() { return 'Hello tegg!'; } } ``` 顺带补充,能否提供修改全局route的前缀 ,类似于在配置文件提供 ```ts export default config={ tegg:{ root:"/hello" } }...
- fix(core/lifecycle): typo ##### Checklist - [x] `npm test` passes - [ ] tests and/or benchmarks are included - [ ] documentation is changed or added - [x] commit message...
A TODO comment in indicates that the 'diff' functionality is missing. This issue tracks the implementation of this functionality as discussed in PR https://github.com/eggjs/tegg/pull/192 and the specific comment https://github.com/eggjs/tegg/pull/192#discussion_r1532284028. Please...
There's a TODO comment in the method of the class, indicating the need for implementing index left matching. This enhancement is related to the Data Access Layer (DAL) features introduced...
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 当我下载完tegg相关插件后,运行项目,本地启动太慢,希望官方解决 ### 可复现问题的仓库地址(Reproduction Repo) 无 ### Node 版本号: 18.0.0 ### TEgg 版本号: 3.12.0 ### 相关插件名称与版本号: 3.12.0 ### 操作平台与版本号: 3.12.0
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): octet-stream 怎么支持前端传输的octet-stream类型的数据,tegg怎么获取并保存 ### 可复现问题的仓库地址(Reproduction Repo) octet-stream 怎么支持前端传输的octet-stream类型的数据,tegg怎么获取并保存 ### Node 版本号: 18.0.0 ### TEgg 版本号: 3.12.0 ### 相关插件名称与版本号: 3.12.0 ### 操作平台与版本号: 3.12.0
### 请详细告知你的新点子: 我希望给出使用simple创建js项目再切换ts,和使用tegg的相同点和不同点。 为什么官网没有给出相关的说明?只看readme没看出个所以然来,希望有个与官网文档类似的指导。 我的困惑是,现在推荐使用tegg还是这个方式? https://www.eggjs.org/zh-CN/tutorials/typescript#%E6%8E%A7%E5%88%B6%E5%99%A8controller