RiderMessage.java 1.07 KB
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;
}