- shared/ → common/(constant、enums、model) - framework/cache/config/ → framework/cache/(扁平化) - framework/integration/captcha/ → framework/captcha/ - config/property/ → 各模块 config/ 下 - interfaces/ → module/(sse、mail、sms) - 移除冗余枚举 LogModuleEnum
31 lines
539 B
Java
31 lines
539 B
Java
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;
|
|
|
|
}
|