package com.backendsys.entity.Tencent;

import com.backendsys.entity.validator.RangeStringArray;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class TencentCustomserviceConfirmPlayloadDTO {

    @NotEmpty(message="任务ID不能为空")
    private String task_id;

    @NotEmpty(message="操作不能为空")
    @RangeStringArray(message="操作有误，范围应是(AGREE：认同, REJECT：驳回)", value = {"AGREE", "REJECT"})
    private String operate;

    // 驳回原因，当 Operate:REJECT 时必填，最多300字
    @Size(max = 300, message = "驳回原因长度不超过 {max} 字符")
    private String reason;
}
