package com.bcxin.requests;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.bcxin.enums.ActionStep;
import com.bcxin.runtime.apis.requests.AbstractRequest;
import lombok.Data;


@Data
public class DocumentRequest extends AbstractRequest {
    private String applicationId;
    private String formId;
    private String id;
    private String parentId;
    private String sign;
    private String versions;
    private String docId;
    private String viewId;
    private String templateForm;
    private JSONArray subDocuments;
    private DocumentBody document;
    private ActionStep step;

    @Data
    public static class DocumentBody extends AbstractRequest {
        private String applicationId;
        private String formId;
        private String id;
        private JSONObject items;
        private String parentId;
        private String sign;
        private String versions;
        private String templateForm;
        private JSONArray subDocuments;
    }
}
