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.work.domain.TpStaffPay;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客服支出记录业务对象 tp_staff_pay
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = TpStaffPay.class, reverseConvertGenerate = false)
public class TpStaffPayBo {

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

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

    /**
     * 支出金额
     */
    @NotNull(message = "支出金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 操作内容
     */
    @NotBlank(message = "操作内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 操作人
     */
    @NotNull(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long addUser;

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


}
