All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.dto.gateway.ParameterDTO Maven / Gradle / Ivy

There is a newer version: 2.3.8.RELEASE
Show newest version
package com.feingto.cloud.dto.gateway;

import com.feingto.cloud.domain.type.ParamPosition;
import com.feingto.cloud.domain.type.ParamType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 参数定义
 *
 * @author longfei
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ParameterDTO implements Serializable {
    private static final long serialVersionUID = -4173974187581227951L;

    private String name;

    private boolean required;

    private ParamPosition position;

    private ParamType type;

    private String defaultValue;

    /**
     * 正则表达式规则
     */
    private String regexRule;

    private String descript;

    /**
     * 对应入参名称
     */
    private String referenceName;

    /**
     * 对应入参位置
     */
    private ParamPosition referencePosition;

    /**
     * Mock规则
     */
    private String mockRule;

    /**
     * 文档可见
     */
    private boolean docVisible;

    /**
     * 文档中顺序
     */
    private Integer docOrder = 999;

    @Builder.Default
    private List children = new ArrayList<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy