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

import cn.axzo.msg.center.service.enums.MessageGroupNodeCategoryEnum;
import cn.axzo.msg.center.service.enums.StatusEnum;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description
 *
 * @author cold_blade
 * @date 2023/9/26
 * @version 1.0
 */
@Setter
@Getter
public class MessageGroupNodeUpdateRequest implements Serializable {

    private static final long serialVersionUID = -7719513661519986970L;

    /**
     * 操作者的自然人id
     */
    @NotNull(message = "operatorId is required")
    private Long operatorId;
    /**
     * 待添加结点编码
     */
    @NotEmpty(message = "nodeCode is required")
    private String nodeCode;
    /**
     * 待添加结点名称
     */
    private String nodeName;
    /**
     * 结点状态
     *   ENABLE: 启用
     *   DISABLE: 禁用
     */
    private StatusEnum status;
    /**
     * 待添加结点图标
     */
    private String icon;

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