Class ReqParameter

    • Constructor Detail

      • ReqParameter

        public ReqParameter()
      • ReqParameter

        public ReqParameter​(ReqParameter source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getName

        public String getName()
        Get API 的前端参数名称。
        Returns:
        Name API 的前端参数名称。
      • setName

        public void setName​(String Name)
        Set API 的前端参数名称。
        Parameters:
        Name - API 的前端参数名称。
      • getPosition

        public String getPosition()
        Get API 的前端参数位置,如 header。目前支持 header、query、path。
        Returns:
        Position API 的前端参数位置,如 header。目前支持 header、query、path。
      • setPosition

        public void setPosition​(String Position)
        Set API 的前端参数位置,如 header。目前支持 header、query、path。
        Parameters:
        Position - API 的前端参数位置,如 header。目前支持 header、query、path。
      • getType

        public String getType()
        Get API 的前端参数类型,如 String、int。
        Returns:
        Type API 的前端参数类型,如 String、int。
      • setType

        public void setType​(String Type)
        Set API 的前端参数类型,如 String、int。
        Parameters:
        Type - API 的前端参数类型,如 String、int。
      • getDefaultValue

        public String getDefaultValue()
        Get API 的前端参数默认值。
        Returns:
        DefaultValue API 的前端参数默认值。
      • setDefaultValue

        public void setDefaultValue​(String DefaultValue)
        Set API 的前端参数默认值。
        Parameters:
        DefaultValue - API 的前端参数默认值。
      • getRequired

        public Boolean getRequired()
        Get API 的前端参数是否必填,True:表示必填,False:表示可选。
        Returns:
        Required API 的前端参数是否必填,True:表示必填,False:表示可选。
      • setRequired

        public void setRequired​(Boolean Required)
        Set API 的前端参数是否必填,True:表示必填,False:表示可选。
        Parameters:
        Required - API 的前端参数是否必填,True:表示必填,False:表示可选。
      • getDesc

        public String getDesc()
        Get API 的前端参数备注。
        Returns:
        Desc API 的前端参数备注。
      • setDesc

        public void setDesc​(String Desc)
        Set API 的前端参数备注。
        Parameters:
        Desc - API 的前端参数备注。