Documentation ¶
Index ¶
- Variables
- func FromSessionContext(ctx context.Context) (session string, ok bool)
- func NewSessionContext(parent context.Context, session string) context.Context
- func RespDecode(httpResp *http.Response, v any) error
- func Sign(params Parameter, appSecret string) string
- type Client
- type Error
- type Option
- type Options
- type Parameter
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTypeIsNil = errors.New("类型为Nil") ErrTypeUnknown = errors.New("未处理到的数据类型") )
Functions ¶
func NewSessionContext ¶
Types ¶
type Error ¶
type Error struct { Code int `json:"code" swaggo:"true,错误码"` Message string `json:"message" swaggo:"true,错误信息"` }
Error HTTP响应错误项
type Option ¶
type Option func(*Options)
Option 为可选参数赋值的函数
func WithJSONSimplify ¶
WithJSONSimplify 设置是否开启JSON返回值的简化模式
Click to show internal directories.
Click to hide internal directories.