build: continew-starter 2.13.3 => 2.13.4

1.移除 continew-starter-security-password 模块依赖及相关配置(已融合到 security-crypto 模块)
2.更新 continew-starter-security-crypto 模块配置
3.BaseController 增加跳过 DICT、DICT_TREE 接口权限处理
4.EnableCrudRestController => EnableCrudApi
5.调整 CRUD 相关 Controller API 接口配置,增加 DICT 或 DICT_TREE 接口,移除原 CommonController 接口
This commit is contained in:
2025-07-27 09:36:29 +08:00
parent d95bb15beb
commit e6169bdb6c
21 changed files with 97 additions and 134 deletions

View File

@@ -22,5 +22,5 @@ import ${packageName}.service.${classNamePrefix}Service;
*/
@Tag(name = "${businessName}管理 API")
@RestController
@CrudRequestMapping(value = "/${apiModuleName}/${apiName}", api = {Api.PAGE, Api.GET, Api.CREATE, Api.UPDATE, Api.BATCH_DELETE, Api.EXPORT})
@CrudRequestMapping(value = "/${apiModuleName}/${apiName}", api = {Api.PAGE, Api.GET, Api.CREATE, Api.UPDATE, Api.BATCH_DELETE, Api.EXPORT, Api.DICT})
public class ${className} extends BaseController<${classNamePrefix}Service, ${classNamePrefix}Resp, ${classNamePrefix}DetailResp, ${classNamePrefix}Query, ${classNamePrefix}Req> {}

View File

@@ -1,4 +1,5 @@
import http from '@/utils/http'
import type { LabelValueState } from '@/types/global'
const BASE_URL = '/${apiModuleName}/${apiName}'
@@ -64,3 +65,8 @@ export function delete${classNamePrefix}(id: string) {
export function export${classNamePrefix}(query: ${classNamePrefix}Query) {
return http.download(`${'$'}{BASE_URL}/export`, query)
}
/** @desc 查询${businessName}字典 */
export function list${classNamePrefix}Dict(query?: ${classNamePrefix}Query) {
return http.get<LabelValueState[]>(`${BASE_URL}/dict`, query)
}

View File

@@ -1,5 +1,5 @@
<template>
<div class="gi_table_page">
<GiPageLayout>
<GiTable
title="${businessName}管理"
row-key="id"
@@ -102,7 +102,7 @@
<${classNamePrefix}AddModal ref="${classNamePrefix}AddModalRef" @save-success="search" />
<${classNamePrefix}DetailDrawer ref="${classNamePrefix}DetailDrawerRef" />
</div>
</GiPageLayout>
</template>
<script setup lang="ts">