# Functions
No description provided by the author
Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
AssignGenericModelPkg 为范型结构体重新指定一个包名.
BaseModelMetaFrom 反射结构体获得 BaseModelMeta.
CreateRouteIdentify 获得一个路由对象的唯一标识.
GetDefaultV 从Tag中提取字段默认值.
IsFieldRequired 从tag中判断此字段是否是必须的.
IsGenericModel 从 reflect.Type.String() 中判断是不是泛型结构体.
IsGenericModelByType 从反射信息中判断是不是泛型结构体.
No description provided by the author
No description provided by the author
No description provided by the author
MustAsset is like Asset but panics when Asset would return an error.
No description provided by the author
NewOpenApi 构造一个新的 OpenApi 文档.
No description provided by the author
ParseGenericModelName 解析范型类型的名称 如果模型是范型,则返回数组的长度 >=2
# Example:
*test.PageResp[*test.MemoryNote] => ["*test.PageResp", "*test.MemoryNote"] test.PageResp[int] => ["test.PageResp", "int"] test.PageResp[Sheet[int]] => ["test.PageResp", "Sheet", "int"].
ReflectCallSchemaDesc 反射调用结构体的 SchemaDesc 方法.
ReflectKindToType 转换reflect.Kind为swagger类型说明
@param ReflectKind reflect.Kind 反射类型,不进一步对指针类型进行上浮.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
StructToQModels 将一个结构体的每一个导出字段都转换为一个查询参数 对于结构体字段,仅支持基本的数据类型和time.Time类型,不支持数组类型和自定义结构体类型.
ToFastApiRoutePath 将 fiber.App 格式的路径转换成 FastApi 格式的路径
Example: 必选路径参数: Input: "/api/rcst/:no" Output: "/api/rcst/{no}" 可选路径参数: Input: "/api/rcst/:no?" Output: "/api/rcst/{no}" 常规路径: Input: "/api/rcst/no" Output: "/api/rcst/no".
# Constants
AnonymousModelNameConnector 为匿名结构体生成一个名称, 连接符.
No description provided by the author
No description provided by the author
对于数组类型,关联到一个新模型.
No description provided by the author
声明一个cookies参数.
CustomQueryNameConnector 为无法获得函数参数名称的入参生成一个参数名程,连接符.
No description provided by the author
No description provided by the author
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
No description provided by the author
No description provided by the author
No description provided by the author
声明一个header参数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
用于swagger的一些静态文件,来自FastApi.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
声明一个路径参数,不同与路由path{}定义混用.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
No description provided by the author
No description provided by the author
No description provided by the author
RouteMethodSeparator 路由分隔符,用于分割路由方法和路径.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
用于swagger的一些静态文件,来自FastApi.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
IllegalRouteParamType 不支持的参数类型.
InnerModelsName 特殊的内部模型名称.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidationErrorDefinition 422 表单验证错误模型.
ValidationErrorResponseDefinition 请求体相应体错误消息.
ValidatorLabelToOpenapiLabel validator 标签和 Openapi 标签的对应关系.
# Structs
No description provided by the author
BaseModelField 模型的字段元数据 基本数据模型, 此模型不可再分, 同时也是 ModelSchema 的字段类型 但此类型不再递归记录,仅记录一个关联模型为基本.
BaseModelMeta 所有数据模型 ModelSchema 的元信息.
Components openapi 的模型部分 需要重写序列化方法.
ComponentScheme openapi 的模型文档部分.
Contact 联系方式, 显示在 info 字段内部 无需重写序列化方法.
No description provided by the author
Info 文档说明信息 无需重写序列化方法.
License 权利证书, 显示在 info 字段内部 无需重写序列化方法.
OpenApi 模型类, 移除 FastApi 中不常用的属性.
Operation 路由HTTP方法: Get/Post/Patch/Delete 等操作方法.
Parameter 路径参数或者查询参数.
ParameterBase 各种参数的基类.
No description provided by the author
PathItem 路由选项,由于同一个路由可以存在不同的操作方法,因此此选项可以存在多个 Operation.
PathModelContent 路由中请求体 RequestBody 和 响应体中返回值 Responses 模型.
Paths openapi 的路由部分 需要重写序列化方法.
QModel 查询参数或路径参数元数据, 此类型对应于swagger中的: openapi.Parameter.
Reference 引用模型,用于模型字段和路由之间互相引用.
RequestBody 路由 请求体模型文档.
Response 路由返回体,包含了返回状态码,状态码说明和返回值模型.
RouteErrorOpt 错误处理函数选项.
RouteParam 路由参数的原始类型信息(由反射获得) 具体包含查询参数,路径参数,请求体参数和响应体参数.
RouteSwagger 路由文档定义,所有类型的路由均包含此部分.
UploadFileMeta 上传文件.
ValidationError 参数校验错误.
# Interfaces
No description provided by the author
ModelSchema 数据模型定义 作为路由请求体或响应体的数据模型都必须实现此方法.
SchemaIface 定义数据模型 对于泛型接口响应体模型必须实现此接口 对于接口体方法接口则通过反射判断是否实现了此接口.
# Type aliases
No description provided by the author
No description provided by the author
RouteParamType 路由参数类型.