-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from pupilcc/dev
v0.3.0
- Loading branch information
Showing
29 changed files
with
236 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 模板消息 | ||
|
||
--- | ||
|
||
## 一、现有模板消息样式 | ||
|
||
* templateId: 1 | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 7 additions & 34 deletions
41
src/main/java/com/pupilcc/pushbot/config/BotProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,24 @@ | ||
package com.pupilcc.pushbot.config; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* Bot 配置项 | ||
* | ||
* @author pupilcc | ||
*/ | ||
@Configuration | ||
@ConfigurationProperties(prefix = "bot") | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class BotProperties { | ||
private String token; | ||
private String domain; | ||
private String startHint; | ||
private String endHint; | ||
|
||
public BotProperties() {} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
} | ||
|
||
public String getDomain() { | ||
return domain; | ||
} | ||
|
||
public void setDomain(String domain) { | ||
this.domain = domain; | ||
} | ||
|
||
public String getStartHint() { | ||
return startHint; | ||
} | ||
|
||
public void setStartHint(String startHint) { | ||
this.startHint = startHint; | ||
} | ||
|
||
public String getEndHint() { | ||
return endHint; | ||
} | ||
|
||
public void setEndHint(String endHint) { | ||
this.endHint = endHint; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
/** | ||
* Docker WebHook 消息 | ||
* | ||
* @author pupilcc | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* Docker WebHook 消息 push_data 对象 | ||
* | ||
* @author pupilcc | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* Docker WebHook 消息 repository 对象 | ||
* | ||
* @author pupilcc | ||
*/ | ||
@Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
/** | ||
* 发送消息的参数 | ||
* | ||
* @author pupilcc | ||
*/ | ||
@Data | ||
|
27 changes: 27 additions & 0 deletions
27
src/main/java/com/pupilcc/pushbot/entity/TemplateMessageDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.pupilcc.pushbot.entity; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 模板消息 DTO | ||
* | ||
* @author pupilcc | ||
* @since 2022-06-23 | ||
*/ | ||
@Data | ||
public class TemplateMessageDTO { | ||
/** | ||
* 消息模板id | ||
*/ | ||
private Integer templateId; | ||
|
||
/** | ||
* 标题 | ||
*/ | ||
private String title; | ||
|
||
/** | ||
* 内容 | ||
*/ | ||
private String content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.