用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
[TOC] ## response 语法 ``` swagger:response [?response name] ``` 选项 | Annotation | Description | | --- | --- | | **In** | where to find the field | | **Collection Format** | when a slice the formatter for the collection when serialized on the request | | **Maximum** | specifies the maximum a number or integer value can have | | **Minimum** | specifies the minimum a number or integer value can have | | **Multiple of** | specifies a value a number or integer value must be a multiple of | | **Minimum length** | the minimum length for a string value | | **Maximum length** | the maximum length for a string value | | **Pattern** | a regular expression a string value needs to match | | **Minimum items** | the minimum number of items a slice needs to have | | **Maximum items** | the maximum number of items a slice can have | | **Unique** | when set to true the slice can only contain unique items | | **Example** | an example value, parsed as the field's type (objects and slices are parsed as JSON) | code ``` // swagger:response ok type swaggScsResp struct { // in:body Body struct { // HTTP status code 200 - OK Code int `json:"code"` } } ``` or ``` type swaggScsResp struct { Code int `json:"code"` } ``` 都可以