package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Aug 20, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func EventToJson(event interface{}, summary string, m JSON)
func ToJson(path, method, summary string, group string, m JSON, req, resp interface{})
path: URL path
method: http method
summary: 综合性描述
m: 生成的json结构
req: 请求类型结构体
resp: 应答类型结构体
type JSON map[string]interface{}
type SliceJSON []interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.