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

import cn.axzo.msg.center.service.enums.PresetButtonType;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author yanglin
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PresetButtonPressedRequest {
    /**
     * 消息的唯一标识
     */
    @NotBlank
    private String identityCode;

    /**
     * 预设按钮类型
     *     AGREE: 待办同意
     *     REJECT: 待办驳回
     */
    @NotNull
    private PresetButtonType presetButtonType;

    private Long operatorId;

    private Long operatorName;

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