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

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

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

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

    private static final long serialVersionUID = 818483349559289586L;

    /**
     * 操作者的自然人id
     */
    @NotNull(message = "operatorId is required")
    private Long operatorId;
    /**
     * 模板编码
     */
    @NotBlank(message = "templateCode is required")
    private String templateCode;
    /**
     * 模板状态
     *   ENABLE: 启用
     *   DISABLE: 禁用
     */
    @NotNull(message = "status is required")
    private StatusEnum status;

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