package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpOrderPay;

/**
 * 订单支付记录业务对象 tp_order_pay
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpOrderPay.class, reverseConvertGenerate = false)
public class TpOrderPayBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属订单
     */
    @NotNull(message = "所属订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long oid;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderId;

    /**
     * 订单价格
     */
    @NotNull(message = "订单价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long price;

    /**
     * 状态(1待支付，2已支付)
     */
    @NotNull(message = "状态(1待支付，2已支付)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long state;

    /**
     * 下单时间
     */
    @NotNull(message = "下单时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addTime;

    /**
     * transaction_id
     */
    @NotBlank(message = "transaction_id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transactionId;


}
