dayueba

Results 3 issues of dayueba

#### Description (what this PR does / why we need it): 使用consul作为注册中心时,`Watch` 是定时同步的方式,现在改为监听的方式,与其它配置中心插件的实现相同,可以减少consul压力。 #### Which issue(s) this PR fixes (resolves / be part of): #### Other special notes for the...

目前有个函数返回的是 `typeorm.EntityManager` ``` manager(): EntityManager { if (this.ctx.entityManager) { return this.ctx.entityManager; } const dataSource = this.dataSourceManager.getDataSource('default'); return dataSource.manager; } ``` https://github.com/midwayjs/midway/blob/main/packages/code-dye/src/middleware.ts#L52 此时的 reqInfo 是无法json序列化的 ![image](https://github.com/midwayjs/midway/assets/31641769/8b75ecad-e7ab-4d50-bf78-d538281435e7)

status: Holding

* **Node Version**: * 20.2.0 * **Midway Version(Decorator/Core)**: * 3.3.0 https://midwayjs.org/docs/extensions/swagger#泛型返回数据 文档里是这么说的 ``` export function SuccessWrapper(ResourceCls: T) { class Successed { @ApiProperty({ description: '状态码' }) code: number; @ApiProperty({ description: '消息'...