feat: 字典实时同步和首页添加在线用户统计

This commit is contained in:
Ray.Hao
2025-04-22 22:15:15 +08:00
parent cad57b3dc0
commit fdf66164d8
14 changed files with 1275 additions and 70 deletions

View File

@@ -40,7 +40,7 @@ const DictAPI = {
* @returns 字典表单数据
*/
getFormData(id: string) {
return request<any, ResponseData<DictForm>>({
return request<any, DictForm>({
url: `${DICT_BASE_URL}/${id}/form`,
method: "get",
});
@@ -130,7 +130,7 @@ const DictAPI = {
* @returns 字典项表单数据
*/
getDictItemFormData(dictCode: string, id: string) {
return request<any, ResponseData<DictItemForm>>({
return request<any, DictItemForm>({
url: `${DICT_BASE_URL}/${dictCode}/items/${id}/form`,
method: "get",
});
@@ -303,12 +303,8 @@ export interface DictItemForm {
* 字典项下拉选项
*/
export interface DictItemOption {
/** 字典数据值 */
value: string;
/** 字典数据标签 */
value: number | string;
label: string;
/** 标签类型 */
tagType: string;
tagType?: "" | "success" | "info" | "warning" | "danger";
[key: string]: any;
}