leomon
2025-05-14 3387f6754a07694dda1307849a3ab6fe8a24d7c5
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
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 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-14
**/
@Data
@TableName("message_customer")
public class MessageCustomer implements Serializable {
 
    @TableId(value = "customer_message_id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键,自增")
    private Long customerMessageId;
 
    @NotNull
    @ApiModelProperty(value = "外键,关联 `message_info` 表")
    private Long messageId;
 
    @NotNull
    @ApiModelProperty(value = "关联的订单ID")
    private Long orderId;
 
    @NotBlank
    @ApiModelProperty(value = "顾客的评价内容")
    private String reviewContent;
 
    @ApiModelProperty(value = "商户的回复内容")
    private String replyContent;
 
    public void copy(MessageCustomer source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}