-
Notifications
You must be signed in to change notification settings - Fork 975
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 #218 from rememberber/develop
Develop
- Loading branch information
Showing
38 changed files
with
2,652 additions
and
177 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Project exclude paths | ||
/target/ | ||
/.idea/ | ||
/logs/ |
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,34 @@ | ||
package com.fangxuele.tool.push.bean; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <pre> | ||
* 钉钉消息 | ||
* </pre> | ||
* | ||
* @author <a href="https://github.com/rememberber">RememBerBer</a> | ||
* @since 2019/9/5. | ||
*/ | ||
@Getter | ||
@Setter | ||
@ToString | ||
public class DingMsg implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private String content; | ||
|
||
private String title; | ||
|
||
private String picUrl; | ||
|
||
private String url; | ||
|
||
private String btnTxt; | ||
|
||
private String btnUrl; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/fangxuele/tool/push/dao/TDingAppMapper.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,25 @@ | ||
package com.fangxuele.tool.push.dao; | ||
|
||
import com.fangxuele.tool.push.domain.TDingApp; | ||
|
||
import java.util.List; | ||
|
||
public interface TDingAppMapper { | ||
int deleteByPrimaryKey(Integer id); | ||
|
||
int insert(TDingApp record); | ||
|
||
int insertSelective(TDingApp record); | ||
|
||
TDingApp selectByPrimaryKey(Integer id); | ||
|
||
int updateByPrimaryKeySelective(TDingApp record); | ||
|
||
int updateByPrimaryKey(TDingApp record); | ||
|
||
List<TDingApp> selectByAppName(String appName); | ||
|
||
List<TDingApp> selectAll(); | ||
|
||
TDingApp selectByAgentId(String agentId); | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/fangxuele/tool/push/dao/TMsgDingMapper.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,26 @@ | ||
package com.fangxuele.tool.push.dao; | ||
|
||
import com.fangxuele.tool.push.domain.TMsgDing; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
import java.util.List; | ||
|
||
public interface TMsgDingMapper { | ||
int deleteByPrimaryKey(Integer id); | ||
|
||
int insert(TMsgDing record); | ||
|
||
int insertSelective(TMsgDing record); | ||
|
||
TMsgDing selectByPrimaryKey(Integer id); | ||
|
||
int updateByPrimaryKeySelective(TMsgDing record); | ||
|
||
int updateByPrimaryKey(TMsgDing record); | ||
|
||
List<TMsgDing> selectByMsgTypeAndMsgName(@Param("msgType") int msgType, @Param("msgName") String msgName); | ||
|
||
int updateByMsgTypeAndMsgName(TMsgDing tMsgDing); | ||
|
||
List<TMsgDing> selectByMsgType(int msgType); | ||
} |
77 changes: 77 additions & 0 deletions
77
src/main/java/com/fangxuele/tool/push/domain/TDingApp.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,77 @@ | ||
package com.fangxuele.tool.push.domain; | ||
|
||
import java.io.Serializable; | ||
|
||
public class TDingApp implements Serializable { | ||
private Integer id; | ||
|
||
private String appName; | ||
|
||
private String agentId; | ||
|
||
private String appKey; | ||
|
||
private String appSecret; | ||
|
||
private String createTime; | ||
|
||
private String modifiedTime; | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public String getAppName() { | ||
return appName; | ||
} | ||
|
||
public void setAppName(String appName) { | ||
this.appName = appName == null ? null : appName.trim(); | ||
} | ||
|
||
public String getAgentId() { | ||
return agentId; | ||
} | ||
|
||
public void setAgentId(String agentId) { | ||
this.agentId = agentId == null ? null : agentId.trim(); | ||
} | ||
|
||
public String getAppKey() { | ||
return appKey; | ||
} | ||
|
||
public void setAppKey(String appKey) { | ||
this.appKey = appKey == null ? null : appKey.trim(); | ||
} | ||
|
||
public String getAppSecret() { | ||
return appSecret; | ||
} | ||
|
||
public void setAppSecret(String appSecret) { | ||
this.appSecret = appSecret == null ? null : appSecret.trim(); | ||
} | ||
|
||
public String getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(String createTime) { | ||
this.createTime = createTime == null ? null : createTime.trim(); | ||
} | ||
|
||
public String getModifiedTime() { | ||
return modifiedTime; | ||
} | ||
|
||
public void setModifiedTime(String modifiedTime) { | ||
this.modifiedTime = modifiedTime == null ? null : modifiedTime.trim(); | ||
} | ||
} |
107 changes: 107 additions & 0 deletions
107
src/main/java/com/fangxuele/tool/push/domain/TMsgDing.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,107 @@ | ||
package com.fangxuele.tool.push.domain; | ||
|
||
import java.io.Serializable; | ||
|
||
public class TMsgDing implements Serializable { | ||
private Integer id; | ||
|
||
private Integer msgType; | ||
|
||
private String msgName; | ||
|
||
private String dingMsgType; | ||
|
||
private String agentId; | ||
|
||
private String webHook; | ||
|
||
private String content; | ||
|
||
private String createTime; | ||
|
||
private String modifiedTime; | ||
|
||
private String radioType; | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getMsgType() { | ||
return msgType; | ||
} | ||
|
||
public void setMsgType(Integer msgType) { | ||
this.msgType = msgType; | ||
} | ||
|
||
public String getMsgName() { | ||
return msgName; | ||
} | ||
|
||
public void setMsgName(String msgName) { | ||
this.msgName = msgName == null ? null : msgName.trim(); | ||
} | ||
|
||
public String getDingMsgType() { | ||
return dingMsgType; | ||
} | ||
|
||
public void setDingMsgType(String dingMsgType) { | ||
this.dingMsgType = dingMsgType == null ? null : dingMsgType.trim(); | ||
} | ||
|
||
public String getAgentId() { | ||
return agentId; | ||
} | ||
|
||
public void setAgentId(String agentId) { | ||
this.agentId = agentId == null ? null : agentId.trim(); | ||
} | ||
|
||
public String getWebHook() { | ||
return webHook; | ||
} | ||
|
||
public void setWebHook(String webHook) { | ||
this.webHook = webHook == null ? null : webHook.trim(); | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content == null ? null : content.trim(); | ||
} | ||
|
||
public String getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(String createTime) { | ||
this.createTime = createTime == null ? null : createTime.trim(); | ||
} | ||
|
||
public String getModifiedTime() { | ||
return modifiedTime; | ||
} | ||
|
||
public void setModifiedTime(String modifiedTime) { | ||
this.modifiedTime = modifiedTime == null ? null : modifiedTime.trim(); | ||
} | ||
|
||
public String getRadioType() { | ||
return radioType; | ||
} | ||
|
||
public void setRadioType(String radioType) { | ||
this.radioType = radioType == null ? null : radioType.trim(); | ||
} | ||
} |
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.