package com.usky.issue.service.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 手动同步请求
 *
 * @author fyc
 * @date 2026-06-29
 */
@Data
public class ManualSyncRequest {

    @NotBlank(message = "同步类型不能为空")
    private String type;

    /** 同步方向：UP=本地→云端，DOWN=云端→本地 */
    @NotBlank(message = "同步方向不能为空")
    @Pattern(regexp = "UP|DOWN", flags = Pattern.Flag.CASE_INSENSITIVE, message = "同步方向仅支持 UP 或 DOWN")
    private String direction;
}
