build: 调整 JaCoCo 覆盖率检查配置 #7

Merged
zhangxiang merged 29 commits from dev into main 2026-05-06 19:43:41 +08:00
Showing only changes of commit 6b5f7a517b - Show all commits
@@ -6,6 +6,7 @@ import { roleApi } from '@/api/role.api'
import type { Role, CreateRoleRequest, UpdateRoleRequest, RolePageRequest, Permission } from '@/api/role.api'
import type { PageResponse } from '@/api/user.api'
import { RoleStatus, roleStatusMap } from '@/constants/status'
import { VALIDATION } from '@/constants/validation-rules'
import PermissionGuard from '@/components/PermissionGuard'
export default function RoleManagement() {
@@ -158,13 +159,13 @@ export default function RoleManagement() {
width={600}
>
<Form form={form} layout="vertical">
<Form.Item name="roleName" label="角色名称" rules={[{ required: true, message: '请输入角色名称' }]}>
<Form.Item name="roleName" label="角色名称" rules={VALIDATION.roleName.rules}>
<Input />
</Form.Item>
<Form.Item name="roleKey" label="角色标识" rules={[{ required: true, message: '请输入角色标识' }]}>
<Form.Item name="roleKey" label="角色标识" rules={VALIDATION.roleKey.rules}>
<Input />
</Form.Item>
<Form.Item name="roleSort" label="排序" initialValue={1} rules={[{ type: 'number' as const, min: 1, message: '排序必须大于0' }]}>
<Form.Item name="roleSort" label="排序" initialValue={VALIDATION.roleSort.initialValue} rules={VALIDATION.roleSort.rules}>
<InputNumber min={1} style={{ width: '100%' }} />
</Form.Item>
<Form.Item name="status" label="状态" initialValue={RoleStatus.ACTIVE}>