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

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yanglin
 */
@Setter
@Getter
public class CardPresetButtonPressedRequest implements CardPresetButtonRequest {

    /**
     * 业务消息id
     */
    @NotBlank(message = "bizMessageId 不能为空")
    private String bizMessageId;

    /**
     * 预设按钮类型
     *     AGREE: 同意
     *     REJECT: 驳回
     *     REVOKE: 撤销
     */
    @NotNull(message = "presetButtonType 不能为空")
    private PresetButtonType presetButtonType;

    private Long operatorId;

    private String operatorName;

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