package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Oct 15, 2017
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ReqDate 将客户端提交的日期(比如搜索时的日期范围选择),换算成UTC日期
func ResAPIError(c *gin.Context, errcode int, errmsg string)
ResAPIError 返回后端api间调用错误,status始终为200
func ResError(c *gin.Context, status int, errcode int, errmsg string)
ResError 返回错误,JSON格式,例{ "errcode": 000001, "errmsg": "参数错误" }
ResTime 返回UTC时间,用ISO8601格式化。YYYY-MM-DDTHH:MM:SSZ
Source Files
¶
Click to show internal directories.
Click to hide internal directories.