mirror of
https://github.com/usememos/memos.git
synced 2024-12-22 10:41:30 +03:00
12 lines
153 B
Go
12 lines
153 B
Go
|
package server
|
||
|
|
||
|
func composeResponse(data interface{}) interface{} {
|
||
|
type R struct {
|
||
|
Data interface{} `json:"data"`
|
||
|
}
|
||
|
|
||
|
return R{
|
||
|
Data: data,
|
||
|
}
|
||
|
}
|