package cn.axzo.msg.center.service.group.request;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author cold_blade
 * @date 2023/10/12
 * @version 1.0
 */
@Setter
@Getter
public class MessageTemplateGroupRelationMoveRequest implements Serializable {

    private static final long serialVersionUID = 8336083457743619246L;

    /**
     * 操作者的自然人id
     */
    @NotNull(message = "operatorId is required")
    private Long operatorId;
    /**
     * 模板当前所处的分类结点编码
     */
    @NotBlank(message = "curNodeCode is required")
    private String curNodeCode;
    /**
     * 模板将要移动到的目标分类结点编码
     */
    @NotBlank(message = "targetNodeCode is required")
    private String targetNodeCode;
    /**
     * 选中的模板编码列表
     */
    @NotEmpty(message = "templateCodes is required")
    private List<String> templateCodes;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
