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

com.lk.api.domain.Param Maven / Gradle / Ivy

package com.lk.api.domain;

public class Param {
    public String value;
    /*入参model类型(如果设置该属性值,说明入参的是一个对象,其它属性就不用设置)*/
    public Class type;
    /*参数名称*/
    public String name;
    /*是否必须*/
    public boolean required;
    /*参数说明*/
    public String description;
    /*参数类型(基本类型和字符串)*/
    public Class dataType;
    /*测试数据*/
    public String testData;
    /*参数位置
     * header-请求头获取:@RequestHeader
     * query-请求对象获取:@RequestParam
     * rest-用于restful接口获取:@PathVariable*/
    public String paramType;
    /*是否是数组*/
    public boolean isArray;
    /*分组*/
    public String group;

    public String[] values;
    /*参数名称*/
    public String[] names;
    /*是否必须*/
    public boolean[] requireds;
    /*参数说明*/
    public String[] descriptions;
    /*参数类型(基本类型和字符串)*/
    public Class[] dataTypes;
    /*测试数据*/
    public String[] testDatas;
    /*参数位置
     * header-请求头获取:@RequestHeader
     * query-请求对象获取:@RequestParam
     * rest-用于restful接口获取:@PathVariable*/
    public String[] paramTypes;
    /*是否是数组*/
    public boolean[] isArrays;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy