refactor: 统一系统枚举接口入参与返回体

This commit is contained in:
zhiye.sun
2026-05-19 16:21:30 +08:00
committed by bruce
parent 603c006c49
commit fc97c3998d
6 changed files with 114 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
package com.bruce.common.dto.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "系统枚举查询请求")
public class SysEnumQueryRequest {
@Schema(description = "模块目录")
private String catalog;
@Schema(description = "枚举类型")
private String type;
}

View File

@@ -0,0 +1,33 @@
package com.bruce.common.dto.request;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "系统枚举保存请求")
public class SysEnumSaveRequest {
@Schema(description = "主键ID")
private Long id;
@Schema(description = "模块目录")
private String catalog;
@Schema(description = "枚举类型")
private String type;
@Schema(description = "枚举名称")
private String name;
@Schema(description = "整型值")
private Integer value;
@Schema(description = "字符串值")
private String strvalue;
@Schema(description = "排序")
private Integer sort;
@Schema(description = "备注")
private String remark;
}