package com.mortals.xhx.feign.runtime;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.mortals.framework.util.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 启动流程参数
 *
 * @author: zxfei
 * @date: 2021/8/26 10:45
 */
@Data
public class StartProcessInstanceReq implements Serializable {
    /**
     * 流程部署key 必填
     */
    @ApiModelProperty(value = "流程定义key" , required = true)
    private String processDefinitionKey;
    /**
     * 业务系统表单id 必填
     */
    @ApiModelProperty(value = "业务系统唯一标识" , required = true)
    private String businessKey;

    /**
     * 业务表单显示名称 必填（如请假单）
     */
    @ApiModelProperty(value = "表单显示名称" , required = true)
    private String formName;
    /**
     * 启动流程变量 选填
     */
    @ApiModelProperty(value = "启动流程变量")
    private Map<String, Object> variables;
    /**
     * 申请人id号 必填
     */
    @ApiModelProperty(value = "申请人id号")
    private String userCode;
    /**
     * 平台系统标识 必填
     */
    @ApiModelProperty(value = "平台系统标识" , required = true)
    private String platformSn;

    /**
     * 流程提交人工号 通常和申请人id一致即可 必填
     */
    @ApiModelProperty(value = "流程提交人工号 通常和申请人id一致即可" , required = true)
    private String creator;

    public static void main(String[] args) {

        DateTime dateTime = DateUtil.offsetMonth(new Date(), 2);



        System.out.println(DateUtils.getStrDate(dateTime));


    }

}
