Skip to content

Commit 1379d38

Browse files
authored
feat: add mgw stream types (#259)
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md --> ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] `npm test` passes - [ ] tests and/or benchmarks are included - [ ] documentation is changed or added - [ ] commit message follows commit guidelines ##### Affected core subsystem(s) <!-- Provide affected core subsystem(s). --> ##### Description of change <!-- Provide a description of the change below this comment. --> <!-- - any feature? - close https://github.com/eggjs/egg/ISSUE_URL --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new enum value to enhance the categorization of controller and method types. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent e37755b commit 1379d38

File tree

1 file changed

+2
-0
lines changed
  • core/types/controller-decorator/model

1 file changed

+2
-0
lines changed

core/types/controller-decorator/model/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export enum ControllerType {
1010
SOFA_RPC = 'SOFA_RPC',
1111
SOFA_RPC_STREAM = 'SOFA_RPC_STREAM',
1212
MGW_RPC = 'MGW_RPC',
13+
MGW_RPC_STREAM = 'MGW_RPC_STREAM',
1314
MESSAGE = 'MESSAGE',
1415
SCHEDULE = 'SCHEDULE',
1516
HEADERS = 'HEADERS',
@@ -24,6 +25,7 @@ export enum MethodType {
2425
SOFA_RPC = 'SOFA_RPC',
2526
SOFA_RPC_STREAM = 'SOFA_RPC_STREAM',
2627
MGW_RPC = 'MGW_RPC',
28+
MGW_RPC_STREAM = 'MGW_RPC_STREAM',
2729
MESSAGE = 'MESSAGE',
2830
SCHEDULE = 'SCHEDULE',
2931
}

0 commit comments

Comments
 (0)