Skip to content

Commit

Permalink
add ES config
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderYellow committed Feb 3, 2025
1 parent b874cb2 commit f4b3ba1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions natives/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
<native.type.classifier>_invalid_</native.type.classifier>
<buildDirectory>${project.basedir}/target-${native.type.classifier}</buildDirectory>
</properties>

<dependencies>

<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>5.4.0</version>
<!-- <scope>runtime</scope>-->
</dependency>

</dependencies>

<distributionManagement>
<repository>
<id>mchv-release-distribution</id>
Expand Down
7 changes: 7 additions & 0 deletions natives/src/main/java/it/tdlight/jni/TdApi.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package it.tdlight.jni;

import org.springframework.data.elasticsearch.annotations.Field;

public class TdApi {
static {
try {
Expand Down Expand Up @@ -972,6 +974,7 @@ public static class Background extends Object {
public boolean isDefault;
public boolean isDark;
public String name;
@Field("document")
public Document document;
public BackgroundType type;

Expand Down Expand Up @@ -12050,6 +12053,8 @@ public int getConstructor() {
}

public static class MessageCustomServiceAction extends MessageContent {

@Field("actionText")
public String text;

public MessageCustomServiceAction() {
Expand Down Expand Up @@ -16769,6 +16774,8 @@ public int getConstructor() {
}

public static class PushMessageContentText extends PushMessageContent {

@Field("pushText")
public String text;
public boolean isPinned;

Expand Down

0 comments on commit f4b3ba1

Please sign in to comment.