forked from ZhongFuCheng3y/austin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
788 additions
and
81 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
18 changes: 18 additions & 0 deletions
18
austin-common/src/main/java/com/java3y/austin/common/constant/CommonConstant.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,18 @@ | ||
package com.java3y.austin.common.constant; | ||
|
||
public class CommonConstant { | ||
public final static String PERIOD = "."; | ||
public final static String COMMA = ","; | ||
public final static String COLON = ":"; | ||
public final static String SEMICOLON = ";"; | ||
public final static String POUND = "#"; | ||
public final static String SLASH = "/"; | ||
public final static String BACKSLASH = "\\"; | ||
public final static String EMPTY_STRING = ""; | ||
// | ||
public final static String ONE = "1"; | ||
public final static String ZERO = "0"; | ||
public final static String MINUS_ONE = "-1"; | ||
public final static String YES = "Y"; | ||
public final static String NO = "N"; | ||
} |
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
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
37 changes: 37 additions & 0 deletions
37
austin-support/src/main/java/com/java3y/austin/support/dao/ChannelAccountDao.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,37 @@ | ||
package com.java3y.austin.support.dao; | ||
|
||
|
||
import com.java3y.austin.support.domain.ChannelAccount; | ||
import com.java3y.austin.support.domain.MessageTemplate; | ||
import com.java3y.austin.support.domain.SmsRecord; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 渠道账号信息 Dao | ||
* | ||
* @author 3y | ||
*/ | ||
public interface ChannelAccountDao extends CrudRepository<ChannelAccount, Long> { | ||
|
||
|
||
/** | ||
* 查询 列表(分页) | ||
* | ||
* @param deleted 0:未删除 1:删除 | ||
* @param channelType 渠道值 | ||
* @return | ||
*/ | ||
List<ChannelAccount> findAllByIsDeletedEqualsAndSendChannelEquals(Integer deleted, Integer channelType); | ||
|
||
|
||
/** | ||
* 统计未删除的条数 | ||
* | ||
* @param deleted | ||
* @return | ||
*/ | ||
Long countByIsDeletedEquals(Integer deleted); | ||
} |
61 changes: 61 additions & 0 deletions
61
austin-support/src/main/java/com/java3y/austin/support/domain/ChannelAccount.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,61 @@ | ||
package com.java3y.austin.support.domain; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
|
||
/** | ||
* @author 3y | ||
* 渠道账号信息 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Entity | ||
public class ChannelAccount { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
/** | ||
* 账号名称 | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* 发送渠道 | ||
* 枚举值:com.java3y.austin.common.enums.ChannelType | ||
*/ | ||
private Integer sendChannel; | ||
|
||
/** | ||
* 账号配置 | ||
*/ | ||
private String accountConfig; | ||
|
||
/** | ||
* 是否删除 | ||
* 0:未删除 | ||
* 1:已删除 | ||
*/ | ||
private Integer isDeleted; | ||
|
||
/** | ||
* 创建时间 单位 s | ||
*/ | ||
private Integer created; | ||
|
||
/** | ||
* 更新时间 单位s | ||
*/ | ||
private Integer updated; | ||
|
||
} |
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
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
Oops, something went wrong.