-
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
1 parent
40ea0d6
commit 2d8acad
Showing
6 changed files
with
114 additions
and
20 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/io/walkers/planes/fundhelper/dao/WebsiteNoticeDao.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,21 @@ | ||
package io.walkers.planes.fundhelper.dao; | ||
|
||
import io.walkers.planes.fundhelper.entity.model.WebsiteNoticeModel; | ||
import org.apache.ibatis.annotations.Mapper; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
/** | ||
* Dao of {@link WebsiteNoticeModel} | ||
* | ||
* @author planeswalker23 | ||
*/ | ||
@Mapper | ||
public interface WebsiteNoticeDao { | ||
|
||
/** | ||
* 插入 WebsiteNoticeModel 数据 | ||
* | ||
* @param websiteNotice 待插入数据 | ||
*/ | ||
void insert(@Param("websiteNotice") WebsiteNoticeModel websiteNotice); | ||
} |
50 changes: 50 additions & 0 deletions
50
src/main/java/io/walkers/planes/fundhelper/entity/model/WebsiteNoticeModel.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,50 @@ | ||
package io.walkers.planes.fundhelper.entity.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 网页通知模型 | ||
* | ||
* @author planeswalker23 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class WebsiteNoticeModel implements Serializable { | ||
/** | ||
* 主键 | ||
*/ | ||
private Long id; | ||
/** | ||
* 用户ID | ||
*/ | ||
private Long virtualUserId; | ||
/** | ||
* 通知标题 | ||
*/ | ||
private String title; | ||
/** | ||
* 通知内容 | ||
*/ | ||
private String content; | ||
/** | ||
* 阅读状态 | ||
* False-0-未读 | ||
* True-1-已读 | ||
*/ | ||
private Boolean readStatus; | ||
/** | ||
* 创建时间 | ||
*/ | ||
private java.util.Date createDate; | ||
/** | ||
* 更新时间 | ||
*/ | ||
private java.util.Date updateDate; | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* 通知方式枚举类 | ||
* | ||
* @author 范逸东 | ||
* @author planeswalker23 | ||
*/ | ||
public interface NoticeMethod { | ||
|
||
|
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="io.walkers.planes.fundhelper.dao.WebsiteNoticeDao"> | ||
<insert id="insert" parameterType="io.walkers.planes.fundhelper.entity.model.WebsiteNoticeModel" useGeneratedKeys="true" keyProperty="id"> | ||
insert into website_notice (virtual_user_id, title, content, read_status, create_date, update_date) | ||
values (#{websiteNotice.virtualUserId}, #{websiteNotice.title}, #{websiteNotice.content}, #{websiteNotice.readStatus}, now(), now()) | ||
</insert> | ||
</mapper> |