app功能列表
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-24 11:06:13 +08:00
parent 1b522f2bbf
commit 15ccb7f0b9
7 changed files with 546 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
import type { FunListVO, FunListForm, FunListQuery } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询APP功能列表列表
* @param params
* @returns APP功能列表列表
*/
export function funListList(params?: FunListQuery) {
return requestClient.get<PageResult<FunListVO>>('/system/funList/list', { params });
}
/**
* 导出APP功能列表列表
* @param params
* @returns APP功能列表列表
*/
export function funListExport(params?: FunListQuery) {
return commonExport('/system/funList/export', params ?? {});
}
/**
* 查询APP功能列表详情
* @param id id
* @returns APP功能列表详情
*/
export function funListInfo(id: ID) {
return requestClient.get<FunListVO>(`/system/funList/${id}`);
}
/**
* 新增APP功能列表
* @param data
* @returns void
*/
export function funListAdd(data: FunListForm) {
return requestClient.postWithMsg<void>('/system/funList', data);
}
/**
* 更新APP功能列表
* @param data
* @returns void
*/
export function funListUpdate(data: FunListForm) {
return requestClient.putWithMsg<void>('/system/funList', data);
}
/**
* 删除APP功能列表
* @param id id
* @returns void
*/
export function funListRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/system/funList/${id}`);
}

View File

@@ -0,0 +1,84 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface FunListVO {
/**
* 主键
*/
id: string | number;
/**
* 角色id
*/
roleid: string | number;
/**
* 名称
*/
name: string;
/**
* icon
*/
icon: string;
/**
* url
*/
url: string;
}
export interface FunListForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 角色id
*/
roleid?: string | number;
/**
* 名称
*/
name?: string;
/**
* icon
*/
icon?: string;
/**
* url
*/
url?: string;
}
export interface FunListQuery extends PageQuery {
/**
* 角色id
*/
roleid?: string | number;
/**
* 名称
*/
name?: string;
/**
* icon
*/
icon?: string;
/**
* url
*/
url?: string;
/**
* 日期范围参数
*/
params?: any;
}