Documentation ¶
Index ¶
- func ApiPost(ctx context.Context, api string, req, resp any) (err error)
- func Batch[T any, V any](fn func(T) V, ts []T) []V
- func CallApi[T any](ctx context.Context, api string, req any) (*T, error)
- func GetPageAll[A interface{ ... }, B, C any](ctx context.Context, api string, req A, fn func(resp *B) []C) ([]C, error)
- func NoticeChange[T any](fn func(data string)) func(ctx context.Context, state int, value T) error
- type ApiResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageAll ¶
Types ¶
type ApiResponse ¶
type ApiResponse struct { ErrCode int `json:"errCode"` ErrMsg string `json:"errMsg"` ErrDlt string `json:"errDlt"` Data json.RawMessage `json:"data"` }
Click to show internal directories.
Click to hide internal directories.