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

import cn.axzo.msg.center.service.enums.RouterCategoryEnum;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author yanglin
 */
@Setter
@Getter
public class WorkflowSyncButtonsRequest {

    @NotEmpty(message = "buttons不能为空")
    private List<WorkflowButton> buttons;

    @Setter
    @Getter
    public static class WorkflowButton {
        private String name;
        private String code;
        private RouterCategoryEnum category;
        private String url;

        @Override
        public String toString() {
            return code;
        }
    }

}