refactor: 重构目录结构统一规范
- shared/ → common/(constant、enums、model) - framework/cache/config/ → framework/cache/(扁平化) - framework/integration/captcha/ → framework/captcha/ - config/property/ → 各模块 config/ 下 - interfaces/ → module/(sse、mail、sms) - 移除冗余枚举 LogModuleEnum
This commit is contained in:
30
src/main/java/com/youlai/boot/common/model/KeyValue.java
Normal file
30
src/main/java/com/youlai/boot/common/model/KeyValue.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.youlai.boot.common.model;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
|
||||
/**
|
||||
* 键值对
|
||||
*
|
||||
* @author haoxr
|
||||
* @since 2024/5/25
|
||||
*/
|
||||
@Schema(description = "键值对")
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class KeyValue {
|
||||
|
||||
public KeyValue(String key, String value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Schema(description = "选项的值")
|
||||
private String key;
|
||||
|
||||
@Schema(description = "选项的标签")
|
||||
private String value;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user