New file |
| | |
| | | package com.oying.modules.message.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import java.sql.Timestamp; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author 李萌 |
| | | * @date 2025-05-20 |
| | | **/ |
| | | @Data |
| | | @TableName("message_order_buyer") |
| | | public class MessageOrderBuyer implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主键,自增 用户id") |
| | | private Integer id; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "订单ID") |
| | | private Integer orderId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "消息类型(订单状态变化、订单送达)") |
| | | private String messageType; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "消息内容") |
| | | private String messageContent; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "跳转链接") |
| | | private String link; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Timestamp createTime; |
| | | |
| | | public void copy(MessageOrderBuyer source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |