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

import org.dromara.payment.sys.domain.SysSydAccountSyn;
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.*;

/**
 * 服务商账户同步业务对象 sys_syd_account_syn
 *
 * @author LionLi
 * @date 2024-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSydAccountSyn.class, reverseConvertGenerate = false)
public class SysSydAccountSynBo 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;


}
