feat(i18n): 新增国际化消息实体与Mapper支持
新增 I18nMessage 实体、Mapper 接口及 XML 映射文件,移除 MyApplication 类上的 @MapperScan 注解,升级 MyBatis-Plus 与 MyBatis 版本至 3.0.3/3.5.5,为后续多语言功能提供数据层基础。
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user