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

import org.dromara.payment.channel.domain.BusChannelAccountSyn;
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_channel_account_syn
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusChannelAccountSyn.class, reverseConvertGenerate = false)
public class BusChannelAccountSynBo extends BaseEntity {

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

    /**
     * 同步顺序（倒序）
     */
    @NotNull(message = "同步顺序（倒序）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 是否正在同步（0:否 1:是）
     */
    @NotNull(message = "是否正在同步（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long synLock;

    /**
     * 最近同步批次
     */
    @NotBlank(message = "最近同步批次不能为空", groups = { AddGroup.class, EditGroup.class })
    private String synBatch;

    /**
     * 最近同步的位置
     */
    @NotNull(message = "最近同步的位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long synPosition;


}
