RiderMessage.java
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.diligrp.rider.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 骑手消息表
*/
@Data
@TableName("rider_message")
public class RiderMessage {
@TableId(type = IdType.AUTO)
private Long id;
/** 城市ID(多租户隔离) */
private Long cityId;
/** 骑手ID,0表示全员消息 */
private Long riderId;
/** 消息类型:1=订单消息 2=系统通知 */
private Integer type;
/** 消息标题 */
private String title;
/** 消息内容 */
private String content;
/** 业务类型:order_assigned/order_timeout/system_notice */
private String bizType;
/** 关联业务ID(如订单ID) */
private Long bizId;
/** 扩展数据(JSON格式) */
private String extraData;
/** 已读状态:0=未读 1=已读 */
private Integer isRead;
/** 创建时间 */
private Long createTime;
/** 阅读时间 */
private Long readTime;
}