package
0.0.0-20240919033358-cce434e5d354
Repository: https://github.com/codfrm/cago.git
Documentation: pkg.go.dev
# Functions
Handle 处理请求.
HandleError 处理错误 当err为nil时不做任何处理 否则根据err的类型进行处理,然后返回.
HandleResp 处理响应 1.
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
RequestID 获取请求ID.
# Structs
Error 错误返回,包含了状态码、错误码、错误信息、请求ID 请求id为trace链路追踪的id,需要配置trace组件才会有.
JSONResponse 返回json数据.
PageRequest 使用UnmarshalJSON的方法来反序列化,避免使用用户传递的page和limit.
PageResponse 分页返回.