mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 11:17:58 +08:00
11 lines
153 B
Go
11 lines
153 B
Go
package server
|
|
|
|
func composeResponse(data interface{}) interface{} {
|
|
type R struct {
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
return R{
|
|
Data: data,
|
|
}
|
|
}
|