Documentation ¶
Index ¶
- func NoResponse(_ *api.Context, _ int, _ any, _ error)
- func SendIDResponse(c *api.Context, statusCode int, id string, err error)
- func SendInfoResponse[T any](c *api.Context, statusCode int, info T, err error)
- func SendInfosResponse[T any](c *api.Context, statusCode int, data InfosData[T], err error)
- func SendMapResponse(c *api.Context, statusCode int, data map[string]any, err error)
- func SendMsgResponse(c *api.Context, statusCode int, _ any, err error)
- func SendString(c *api.Context, statusCode int, data string, err error)
- func SendWXOrderResponse(c *api.Context, statusCode int, _ any, err error)
- func StructToMap(originStruct any) map[string]any
- func WSSendMessage(groupID string, obj any)
- func WriteBytes(c *api.Context, statusCode int, bytes []byte, err error)
- type IDResponse
- type InfoResponse
- type InfosData
- type InfosResponse
- type MsgResponse
- type WXOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendInfoResponse ¶
func SendInfosResponse ¶
func SendMapResponse ¶
func SendWXOrderResponse ¶
func StructToMap ¶
func WSSendMessage ¶
Types ¶
type IDResponse ¶
type IDResponse struct { MsgResponse ID string `json:"id"` }
type InfoResponse ¶
type InfoResponse[T any] struct { MsgResponse Info T `json:"info"` }
type InfosResponse ¶
type InfosResponse[T any] struct { MsgResponse InfosData[T] }
type MsgResponse ¶
type WXOrderResponse ¶
Click to show internal directories.
Click to hide internal directories.