Commit 4af6b2bfb17843073c7d4ec431ef0ee6a01b7fb6
1 parent
d5ea9767
review:【infra 基础设施】代码生成的批量操作建议
Showing
3 changed files
with
3 additions
and
3 deletions
yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/enums/codegen/CodegenFrontTypeEnum.java
| @@ -19,11 +19,10 @@ public enum CodegenFrontTypeEnum { | @@ -19,11 +19,10 @@ public enum CodegenFrontTypeEnum { | ||
| 19 | VUE3_VBEN2_ANTD_SCHEMA(30), // Vue3 VBEN2 + ANTD + Schema 模版 | 19 | VUE3_VBEN2_ANTD_SCHEMA(30), // Vue3 VBEN2 + ANTD + Schema 模版 |
| 20 | 20 | ||
| 21 | VUE3_VBEN5_ANTD_SCHEMA(40), // Vue3 VBEN5 + ANTD + schema 模版 | 21 | VUE3_VBEN5_ANTD_SCHEMA(40), // Vue3 VBEN5 + ANTD + schema 模版 |
| 22 | - | ||
| 23 | VUE3_VBEN5_ANTD_GENERAL(41), // Vue3 VBEN5 + ANTD 标准模版 | 22 | VUE3_VBEN5_ANTD_GENERAL(41), // Vue3 VBEN5 + ANTD 标准模版 |
| 24 | 23 | ||
| 24 | + // TODO @puhui999::50、51 会好点; | ||
| 25 | VUE3_VBEN5_EP_SCHEMA(42), // Vue3 VBEN5 + EP + schema 模版 | 25 | VUE3_VBEN5_EP_SCHEMA(42), // Vue3 VBEN5 + EP + schema 模版 |
| 26 | - | ||
| 27 | VUE3_VBEN5_EP_GENERAL(43), // Vue3 VBEN5 + EP 标准模版 | 26 | VUE3_VBEN5_EP_GENERAL(43), // Vue3 VBEN5 + EP 标准模版 |
| 28 | ; | 27 | ; |
| 29 | 28 |
yudao-module-infra/src/main/resources/codegen/vue3/views/components/form_sub_erp.vue.vm
| @@ -170,7 +170,7 @@ const submitForm = async () => { | @@ -170,7 +170,7 @@ const submitForm = async () => { | ||
| 170 | // 提交请求 | 170 | // 提交请求 |
| 171 | formLoading.value = true | 171 | formLoading.value = true |
| 172 | try { | 172 | try { |
| 173 | - const data = formData.value as unknown as ${subSimpleClassName} | 173 | + const data = formData.value as unknown as ${subSimpleClassName} |
| 174 | if (formType.value === 'create') { | 174 | if (formType.value === 'create') { |
| 175 | await ${simpleClassName}Api.create${subSimpleClassName}(data) | 175 | await ${simpleClassName}Api.create${subSimpleClassName}(data) |
| 176 | message.success(t('common.createSuccess')) | 176 | message.success(t('common.createSuccess')) |
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java
| @@ -120,6 +120,7 @@ public class OAuth2OpenController { | @@ -120,6 +120,7 @@ public class OAuth2OpenController { | ||
| 120 | 120 | ||
| 121 | // 2. 根据授权模式,获取访问令牌 | 121 | // 2. 根据授权模式,获取访问令牌 |
| 122 | OAuth2AccessTokenDO accessTokenDO = switch (grantTypeEnum) { | 122 | OAuth2AccessTokenDO accessTokenDO = switch (grantTypeEnum) { |
| 123 | + // TODO @xingyu:这里改了,可能会影响 jdk8 版本哈; | ||
| 123 | case AUTHORIZATION_CODE -> | 124 | case AUTHORIZATION_CODE -> |
| 124 | oauth2GrantService.grantAuthorizationCodeForAccessToken(client.getClientId(), code, redirectUri, state); | 125 | oauth2GrantService.grantAuthorizationCodeForAccessToken(client.getClientId(), code, redirectUri, state); |
| 125 | case PASSWORD -> oauth2GrantService.grantPassword(username, password, client.getClientId(), scopes); | 126 | case PASSWORD -> oauth2GrantService.grantPassword(username, password, client.getClientId(), scopes); |