package
1.0.1
Repository: https://github.com/cube-group/golib.git
Documentation: pkg.go.dev

# README

gin server

# Packages

Date: 2021-02Author: linyang.
No description provided by the author
gin redis session middleauthor: linyangmail: [email protected]: 2019-08.
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
是否选中select.
是否选中select.
调试打印.
新建错误对象.
错误模板.
新建强提示错误.
获取用户真实ip.
获取当前上下文的domain.
直接返回layui的map.
No description provided by the author
纯算法从上下文中获取分页信息.
No description provided by the author
获取当前上下文的根域.
检测信任通道检测是否来自统一认证系统.
严格检测信任通道严格检测是否来自统一认证系统.
No description provided by the author
显示HTML,加上头部公共信息(如登录用户).
防xss攻击从get或post获取.
请求是否为ajax.
是否选中select.
如果err不为nil,输入JsonError,否则输出JsonSuccess,msg为successMsg.
获取json数据结构.
json转换 将struct/map/slice转换为json字符串 @param target interface{} 为struct/map/slice实例 @return string.
* * 输出错误json * @param c gin请求实例 * @param msg 错误信息 * @param data 返回数据 * @code 返回code码,如果为空,返回3000 */.
No description provided by the author
设置消息.
No description provided by the author
输出漂亮的json.
获取请求参数.
将query参数转换为map.
不转义输出.
是否选中select.
封装gin ShouldBind可进行多次bind解析.
获取公共文件.
模板函数.

# Constants

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

# Structs

自定义错误.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author