diff --git a/pom.xml b/pom.xml index d214bf7..a3c336d 100644 --- a/pom.xml +++ b/pom.xml @@ -143,12 +143,12 @@ org.mybatis.spring.boot mybatis-spring-boot-starter - 2.2.2 + 3.0.3 com.baomidou mybatis-plus-boot-starter - 3.5.1 + 3.5.5 org.springframework.boot diff --git a/src/main/java/com/yolo/keyborad/MyApplication.java b/src/main/java/com/yolo/keyborad/MyApplication.java index de23dc7..ee5dcbb 100644 --- a/src/main/java/com/yolo/keyborad/MyApplication.java +++ b/src/main/java/com/yolo/keyborad/MyApplication.java @@ -10,7 +10,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties @Slf4j @SpringBootApplication -@MapperScan("com.yolo.keyborad.mapper") @EnableConfigurationProperties(AppleAppStoreProperties.class) public class MyApplication { public static void main(String[] args) { diff --git a/src/main/java/com/yolo/keyborad/mapper/I18nMessageMapper.java b/src/main/java/com/yolo/keyborad/mapper/I18nMessageMapper.java new file mode 100644 index 0000000..a6f1228 --- /dev/null +++ b/src/main/java/com/yolo/keyborad/mapper/I18nMessageMapper.java @@ -0,0 +1,15 @@ +package com.yolo.keyborad.mapper; + +/* +* @author: ziin +* @date: 2025/12/1 20:40 +*/ + +import com.yolo.keyborad.model.entity.I18nMessage; +import org.apache.ibatis.annotations.Select; + +import java.util.List; + +public interface I18nMessageMapper { + +} \ No newline at end of file diff --git a/src/main/java/com/yolo/keyborad/model/entity/I18nMessage.java b/src/main/java/com/yolo/keyborad/model/entity/I18nMessage.java new file mode 100644 index 0000000..4cc187b --- /dev/null +++ b/src/main/java/com/yolo/keyborad/model/entity/I18nMessage.java @@ -0,0 +1,55 @@ +package com.yolo.keyborad.model.entity; + +import io.swagger.v3.oas.annotations.media.Schema; + +/* +* @author: ziin +* @date: 2025/12/1 20:40 +*/ + +@Schema +public class I18nMessage { + @Schema(description="") + private Long id; + + @Schema(description="") + private String code; + + @Schema(description="") + private String locale; + + @Schema(description="") + private String message; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } +} \ No newline at end of file diff --git a/src/main/resources/mapper/I18nMessageMapper.xml b/src/main/resources/mapper/I18nMessageMapper.xml new file mode 100644 index 0000000..32a71bb --- /dev/null +++ b/src/main/resources/mapper/I18nMessageMapper.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + id, code, "locale", message + + \ No newline at end of file