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.TpIntegralDetail;

/**
 * 积分明细业务对象 tp_integral_detail
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpIntegralDetail.class, reverseConvertGenerate = false)
public class TpIntegralDetailBo extends BaseEntity {

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

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

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

    /**
     * 类型（1为加，2为减）
     */
    @NotNull(message = "类型（1为加，2为减）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

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

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


}
