mirror of
https://github.com/chaitin/SafeLine.git
synced 2026-01-31 13:53:33 +08:00
12 lines
211 B
Go
12 lines
211 B
Go
package api
|
|
|
|
// Response Common API response structure
|
|
type Response[T any] struct {
|
|
// Response data
|
|
Data T `json:"data"`
|
|
// Error message
|
|
Err any `json:"err"`
|
|
// Prompt message
|
|
Msg string `json:"msg"`
|
|
}
|