package org.dromara.payment.common.domain.bo;

import org.dromara.payment.common.domain.BusOperLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 业务操作日志业务对象 bus_oper_log
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusOperLog.class, reverseConvertGenerate = false)
public class BusOperLogBo extends BaseEntity {

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

    /**
     * 日志描述
     */
    @NotBlank(message = "日志描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logDesc;

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

    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createRoleName;

    /**
     * 业务id(任务id或账单批次id)
     */
    @NotNull(message = "业务id(任务id或账单批次id)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busId;

    /**
     * 业务类型（1：项目 2：账单批次）
     */
    @NotNull(message = "业务类型（1：项目 2：账单批次）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer busType;


}
