package com.seer.teach.mall.response;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@Schema(description = "订单日志")
public class OrderLogResp {

    private Integer id;

    @Schema(description = "用户编号")
    private Integer userId;

    @Schema(description = "用户类型")
    private Integer userType;

    @Schema(description = "订单号")
    private Integer orderId;

    /**
     * 变更前状态
     */
    @Schema(description = "变更前状态")
    private Integer beforeStatus;

    /**
     * 变更后状态
     */
    @Schema(description = "变更后状态")
    private Integer afterStatus;

    @Schema(description = "物流状态")
    private Integer shippingStatus;

    @Schema(description = "评价状态")
    private Integer commentStatus;

    @Schema(description = "操作类型")
    private Integer operateType;

    /**
     * 商家Id
     */
    @Schema(description = "商家Id")
    private Integer merchantId;

    @Schema(description = "操作内容")
    @TableField("content")
    private String content;

    @Schema(description = "操作时间")
    private LocalDateTime createTime;
}
