mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 14:17:33 +00:00
[Move] Core, Event-API(Event), Framework-API, Template-API(Template) 更改模块名以规范命名;
[Move] :Event-API 更改模块名(原 'Event'); [Move] :Template-API 更改模块名(原 'Template'); [Change] Project/pom.xml 适配更改; [Change] :Core, :Framework-API 适配更改;
This commit is contained in:
parent
612956b594
commit
711c80175e
@ -26,7 +26,7 @@
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ContentGrabbingJi-Event</artifactId>
|
||||
<artifactId>ContentGrabbingJi-Event-api</artifactId>
|
||||
|
||||
|
||||
</project>
|
@ -26,7 +26,7 @@
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ContentGrabbingJi-Template</artifactId>
|
||||
<artifactId>ContentGrabbingJi-Template-api</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
@ -46,7 +46,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.lamgc</groupId>
|
||||
<artifactId>ContentGrabbingJi-Event</artifactId>
|
||||
<artifactId>ContentGrabbingJi-Event-api</artifactId>
|
||||
<version>3.0.0-alpha-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>net.lamgc</groupId>
|
||||
<artifactId>ContentGrabbingJi-Event</artifactId>
|
||||
<artifactId>ContentGrabbingJi-Event-api</artifactId>
|
||||
<version>3.0.0-alpha-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -20,6 +20,7 @@ package net.lamgc.cgj.bot.framework.message;
|
||||
import net.lamgc.cgj.bot.event.AbstractEventObject;
|
||||
import net.lamgc.cgj.bot.framework.Platform;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
@ -50,7 +51,7 @@ public abstract class AbstractMessageEvent extends AbstractEventObject {
|
||||
* <p> 如果激活 i18n 的话就会使用到该属性, Bot 将使用对应的消息模板构建回复消息内容.
|
||||
* <p> 当 Framework 不提供时将使用内置默认语言包.
|
||||
*/
|
||||
private ResourceBundle resourceBundle = null;
|
||||
private Locale locale = null;
|
||||
|
||||
protected AbstractMessageEvent(
|
||||
Platform fromPlatform,
|
||||
@ -87,12 +88,12 @@ public abstract class AbstractMessageEvent extends AbstractEventObject {
|
||||
return content;
|
||||
}
|
||||
|
||||
public ResourceBundle getResourceBundle() {
|
||||
return resourceBundle;
|
||||
public Locale getLocale() {
|
||||
return locale;
|
||||
}
|
||||
|
||||
public void setResourceBundle(ResourceBundle resourceBundle) {
|
||||
this.resourceBundle = resourceBundle;
|
||||
public void setLocale(Locale locale) {
|
||||
this.locale = locale;
|
||||
}
|
||||
|
||||
public MessageSender getSender() {
|
||||
|
4
pom.xml
4
pom.xml
@ -35,11 +35,11 @@
|
||||
<module>ContentGrabbingJi-CacheStore-redis</module>
|
||||
<module>ContentGrabbingJi-CacheStore-local</module>
|
||||
<module>ContentGrabbingJi-common</module>
|
||||
<module>ContentGrabbingJi-Event</module>
|
||||
<module>ContentGrabbingJi-Event-api</module>
|
||||
<module>ContentGrabbingJi-Command-api</module>
|
||||
<module>ContentGrabbingJi-Command-pixiv</module>
|
||||
<module>ContentGrabbingJi-framework-telegrambots</module>
|
||||
<module>ContentGrabbingJi-Template</module>
|
||||
<module>ContentGrabbingJi-Template-api</module>
|
||||
<module>ContentGrabbingJi-framework-OneBot</module>
|
||||
</modules>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user